Search found 3091 matches

by zorg
Tue Apr 27, 2021 5:29 pm
Forum: Support and Development
Topic: Smoothly rotate to face the cursor
Replies: 15
Views: 6042

Re: Smoothly rotate to face the cursor

At least you did contribute something to the thread. :3
by zorg
Mon Apr 26, 2021 7:26 pm
Forum: General
Topic: [SOLVED] with making an OLD project work again
Replies: 8
Views: 1506

Re: [HELP] with making an OLD project work again

- (love.)math.random(1) does not do what you think it does; just because the colors needed to be scaled from 0-255 to 0-1, the random function given an argument will always give an integer back... between 1 and 1 in that case, so... always 1; just use 255 there and then divide by 256 outside of the...
by zorg
Mon Apr 26, 2021 1:07 pm
Forum: General
Topic: [SOLVED] with making an OLD project work again
Replies: 8
Views: 1506

Re: [HELP] with making an OLD project work again

- the keycode for spacebar is now 'space' instead of ' '. - use love.math.random instead of math.random, the latter is not actually seeded at game startup so it'll always give you the same sequence of numbers. - (love.)math.random(1) does not do what you think it does; just because the colors needed...
by zorg
Mon Apr 26, 2021 5:18 am
Forum: General
Topic: Is it possible to run android studio *on* Android
Replies: 4
Views: 1376

Re: Is it possible to run android studio *on* Android

Gunroar:Cannon() wrote: Sun Apr 25, 2021 6:56 pm Hahah this is one of my dumb questions again... I see
Image
Any way to delete this topic :P ?
You can probably do it yourself; your original post should have a delete button somewhere.
by zorg
Tue Apr 20, 2021 7:14 pm
Forum: Support and Development
Topic: [SOLVED] Changing frequency while synthesising sine wave
Replies: 7
Views: 2409

Re: [SOLVED] Changing frequency while synthesising sine wave

I checked the post of mine from the thread you linked, and i got it wrong there as well... guess i'll take the blame fair and square. :D
by zorg
Tue Apr 20, 2021 5:34 am
Forum: Support and Development
Topic: [SOLVED] Changing frequency while synthesising sine wave
Replies: 7
Views: 2409

Re: Changing frequency while synthesising sine wave

>Would that just be replacing the x declaration in the returned function with <code> Yes, it would... i feel like something else is amiss, but again, i'd need to dwelve into it, and due to me working today, that's not gonna happen. I did notice that you did multiply with sound.rate in your code, so ...
by zorg
Tue Apr 20, 2021 3:47 am
Forum: Support and Development
Topic: [SOLVED] Changing frequency while synthesising sine wave
Replies: 7
Views: 2409

Re: Changing frequency while synthesising sine wave

Haven't had time yet to look at it too much, but one thing you might try is to limit the phase in the returned generator function to the range/domain (i get these mixed up) of [0,1] with something like: phase = (phase + increment) % 1.0 ...that said, i haven't noticed you dividing x by the sample ra...
by zorg
Sat Apr 17, 2021 8:07 am
Forum: Support and Development
Topic: Why doesn't Font.getHeight() work the same as Font.getWidth()?
Replies: 3
Views: 1551

Re: Why doesn't Font.getHeight() work the same as Font.getWidth()?

The difference is a basic property of typography. The font size actually is the height of a capital letter in points (...) the height is fixed. On the other hand, the width of a line of text is based on the characters typed (...) Just as an aside, this is only true for LtR and RtL languages (and i ...
by zorg
Sun Apr 11, 2021 11:44 am
Forum: General
Topic: Checking if anyone has got JUMPER to work recently?
Replies: 8
Views: 1120

Re: Checking if anyone has got JUMPER to work recently?

What you described sounds right and it was a pathway I serially considered before finding the love wiki version worked immediately for reasons I still don't understand. ... Edit: I've tested the program in README and the ones in the examples/ subdirectory. They all work for me. By contrast, the one...
by zorg
Sun Apr 11, 2021 9:40 am
Forum: Support and Development
Topic: If statement and Goto
Replies: 38
Views: 11440

Re: If statement and Goto

Yeah, I probably would not use this either. This certainly works, but this example suffers from " magic values ", and it adds a level of indirection that doesn't add to readability or reliability. At the very least, if you wanted to use a system like this, you should add some constants fo...