Search found 249 matches
- Mon Jan 01, 2024 8:04 pm
- Forum: General
- Topic: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
- Replies: 6
- Views: 13077
Re: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
Hi. After trying to write something based only on keypressed/keyreleased to be used with a simple finite state machine, which was very educational, I noticed that my impressions were off! Despite a key having 4 possible events (first press / continued press / first release / continued release), what...
- Sat Dec 30, 2023 2:16 pm
- Forum: General
- Topic: New User / Game Idea Help
- Replies: 5
- Views: 25250
Re: New User / Game Idea Help
One of the reasons to use a library is to save time, yeah? If your game won't have a lot of screens with different UI layouts, I don't think you need a library for it. The time spent learning that new library could be better used by you setting up your UI using Löve's built-in drawing functions. I d...
- Tue Dec 26, 2023 7:19 pm
- Forum: General
- Topic: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
- Replies: 6
- Views: 13077
Re: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
Thanks a lot guys, great comments. I was also looking into the best ways of plugging the input component into the player update component. That is, connecting the two and letting things happen in the game because of input. While you can of course have a bunch of tests in the player update code like ...
- Tue Dec 26, 2023 4:16 pm
- Forum: General
- Topic: I used ChatGPT
- Replies: 16
- Views: 222566
Re: I used ChatGPT
To be honest, in your first question I think it answered properly. There's an ambiguity to "delta x and delta y calculated for 1/60th of a second". I don't think ChatGPT is programmed to respond with another question that asks for clarification, it's always affirmative. So it must've tried...
- Tue Dec 26, 2023 3:43 pm
- Forum: General
- Topic: I Imagine A Color Picker Has Been Done A Thousand Times
- Replies: 5
- Views: 21407
- Sun Dec 24, 2023 3:56 pm
- Forum: General
- Topic: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
- Replies: 6
- Views: 13077
Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
Some thoughts on the differences between these functions for reacting on key presses. If you have anything useful to add, don't keep it to yourself =) When you look in the source code of Löve, both love.keypressed() / keyreleased() as well as love.keyboard.isDown() are very fast functions, so the ma...
- Sat Dec 23, 2023 4:35 pm
- Forum: General
- Topic: I Imagine A Color Picker Has Been Done A Thousand Times
- Replies: 5
- Views: 21407
Re: I Imagine A Color Picker Has Been Done A Thousand Times
When it comes to reacting to keys you have love.keyboard.isDown(), as well as the love.keypressed() / love.keyreleased() handlers. Using milon's great example, I wanted to test if the same can be done with those handlers. I mean, how they compare to using isDown(). What I found was: there's more cod...
- Thu Dec 21, 2023 3:37 pm
- Forum: Support and Development
- Topic: [SOLVED] Top Down Character Animation in 4 Different Directions
- Replies: 6
- Views: 10463
Re: [SOLVED] Top Down Character Animation in 4 Different Directions
Looking at your code, two things I think would help you a lot: - To separate responsibilities better. The love.draw() function should not be the one to find out what frame to draw based on the joystick buttons pressed. Like on that last line that you have in love.draw(), it should just grab whatever...
- Sun Dec 17, 2023 9:38 pm
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 64278
Re: Justified text displaying one character at a time
No problem! If I had to choose, I think the best solution is the one that you were using, manipulating the string itself by adding each character in sequence. It works with both monospace and non-monospace fonts, and is also easier to modify in the future. Technically, using a static Text object and...
- Sun Dec 17, 2023 1:45 pm
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 64278
Re: Justified text displaying one character at a time
Shaders are not so easy, can you please make the .love file with the simplest realization? Okay. I noticed a couple of things: 1) It actually needs 3 rays, not just 2: one to progressively reveal characters on the same line, one to show all previous lines, and one to hide all lines below. 2) This t...