Search found 1169 matches
- Sun Dec 17, 2023 7:47 pm
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 61533
Re: Justified text displaying one character at a time
Thanks RNavega! It's awesome! Now I need to understand it and get how to do the DIY-justification.
- Sun Dec 17, 2023 9:21 am
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 61533
Re: Justified text displaying one character at a time
Just for academic interest, instead of using black rectangles, you can totally mask with transparency using a shader: you have 2 float uniforms, both in screen-space, which represent 2 "rays" that divide the screen: one being a horizontal ray that moves from top to bottom and above which ...
- Thu Dec 14, 2023 7:49 pm
- Forum: Support and Development
- Topic: Displaying (or Drawing) Coordinates
- Replies: 3
- Views: 17887
Re: Displaying (or Drawing) Coordinates
cords.coordinates not defined;
Also
Also
Code: Select all
local k = shiftPressed and 2 or 1
player.x = player.x + dx*k*player.speed
player.y = player.y + dy*k*player.speed
- Thu Dec 14, 2023 11:18 am
- Forum: Support and Development
- Topic: Love tutorial about input
- Replies: 3
- Views: 21208
Re: Love tutorial about input
https://love2d.org/wiki/KeyConstant
Code: Select all
love.keyboard.isDown( "space" ) then
- Thu Dec 14, 2023 8:19 am
- Forum: Support and Development
- Topic: Can I create an engine on top of Love?
- Replies: 7
- Views: 37543
- Tue Dec 12, 2023 11:15 am
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 61533
Re: Justified text displaying one character at a time
The fake and self made justification: blackString = [[I'm trying to implement the effect you see in many games where text is printed a character at a time. (See the original Dragon Quest for an example.) On its own this is easy: all one needs to do is keep a counter then use string.sub and utf8.offs...
- Tue Dec 12, 2023 8:45 am
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 61533
Re: Justified text displaying one character at a time
Not justification, but you cannot see it: blackString = [[I'm trying to implement the effect you see in many games where text is printed a character at a time. (See the original Dragon Quest for an example.) On its own this is easy: all one needs to do is keep a counter then use string.sub and utf8...
- Mon Dec 11, 2023 4:28 pm
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 61533
Re: Justified text displaying one character at a time
I don't like how the line "about it" looks out:
- Mon Dec 11, 2023 1:01 pm
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 61533
Re: Justified text displaying one character at a time
Try to make it with love.graphics.print( coloredtext) https://love2d.org/wiki/love.graphics.print table coloredtext A table containing colors and strings to add to the object, in the form of {color1, string1, color2, string2, ...}. table color1 A table containing red, green, blue, and optional alpha...
- Fri Dec 08, 2023 8:07 am
- Forum: Support and Development
- Topic: How to make Portable Version?
- Replies: 2
- Views: 10745
How to make Portable Version?
Hi all!
Is it possible to make a portable game, like C:/games/myGame/ with C:/games/myGame/saves/ so all saved data are in the folder near of fused .exe file?
Is it possible to make a portable game, like C:/games/myGame/ with C:/games/myGame/saves/ so all saved data are in the folder near of fused .exe file?