Search found 257 matches
- Tue Dec 26, 2023 7:19 pm
- Forum: General
- Topic: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
- Replies: 6
- Views: 13432
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: 228382
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: 21950
- Sun Dec 24, 2023 3:56 pm
- Forum: General
- Topic: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
- Replies: 6
- Views: 13432
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: 21950
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: 10684
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: 65290
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: 65290
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...
- Sat Dec 16, 2023 6:25 pm
- Forum: Support and Development
- Topic: Justified text displaying one character at a time
- Replies: 13
- Views: 65290
Re: Justified text displaying one character at a time
I'm trying to implement the effect you see in many games where text is printed a character at a time. (...) have it start out covered by black rectangles over each line, then shrink the rectangles a character at a time until all the text is revealed. This should work, but it seems a bit convoluted ...
- Sat Dec 16, 2023 4:24 pm
- Forum: Support and Development
- Topic: [REQUESTING HELP] Optimization issues
- Replies: 5
- Views: 15673
Re: [REQUESTING HELP] Optimization issues
What OS is it? I borrowed a notebook for some time and it came with Win10 -- I could not stand it after a couple of days, so much bloat and so many little processes that suddenly eat up huge amounts of CPU. I had to downgrade to 8.1, which is my favourite. Then everything turned out great. How did y...