Search found 246 matches

by RNavega
Tue Dec 26, 2023 4:16 pm
Forum: General
Topic: I used ChatGPT
Replies: 16
Views: 216685

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...
by RNavega
Tue Dec 26, 2023 3:43 pm
Forum: General
Topic: I Imagine A Color Picker Has Been Done A Thousand Times
Replies: 5
Views: 20901

Re: I Imagine A Color Picker Has Been Done A Thousand Times

pgimeno wrote: Mon Dec 25, 2023 12:53 pm Edit: Sorry, I missed the other thread. I always read threads in chronological order. But the bit about avoiding isDown still applies.
I would've quoted you in that thread in any case heh. Thanks.
by RNavega
Sun Dec 24, 2023 3:56 pm
Forum: General
Topic: Best usecases for love.keypressed/keyreleased vs love.keyboard.isDown
Replies: 6
Views: 12741

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...
by RNavega
Sat Dec 23, 2023 4:35 pm
Forum: General
Topic: I Imagine A Color Picker Has Been Done A Thousand Times
Replies: 5
Views: 20901

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...
by RNavega
Thu Dec 21, 2023 3:37 pm
Forum: Support and Development
Topic: [SOLVED] Top Down Character Animation in 4 Different Directions
Replies: 6
Views: 10304

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...
by RNavega
Sun Dec 17, 2023 9:38 pm
Forum: Support and Development
Topic: Justified text displaying one character at a time
Replies: 13
Views: 63294

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...
by RNavega
Sun Dec 17, 2023 1:45 pm
Forum: Support and Development
Topic: Justified text displaying one character at a time
Replies: 13
Views: 63294

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...
by RNavega
Sat Dec 16, 2023 6:25 pm
Forum: Support and Development
Topic: Justified text displaying one character at a time
Replies: 13
Views: 63294

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 ...
by RNavega
Sat Dec 16, 2023 4:24 pm
Forum: Support and Development
Topic: [REQUESTING HELP] Optimization issues
Replies: 5
Views: 15364

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...
by RNavega
Mon Dec 11, 2023 5:58 pm
Forum: General
Topic: text game
Replies: 4
Views: 8610

Re: text game

I had to try implementing part of what I said, just to get it off my system. You need a conf.lua file in your directory with this content, to enable the raw console to pop up when you start Löve: function love.conf(t) t.console = true t.window = false end Then your main.lua code would be the demo be...