Search found 576 matches

by ReFreezed
Mon Sep 19, 2022 1:20 pm
Forum: Support and Development
Topic: Calling Function from Collided Object in Windfield?
Replies: 8
Views: 335

Re: Calling Function from Collided Object in Windfield?

All require() does is run the code in the specified module/file if it hasn't already run, and returns whatever the module returned (if anything). Since your code (in the posted snippets, at least) defines global functions, anyone can access those functions as long as those modules were required at s...
by ReFreezed
Sun Sep 18, 2022 8:46 pm
Forum: General
Topic: Coroutines are awesome
Replies: 26
Views: 6721

Re: Coroutines are awesome

The comparison to threads was mostly a joke - of course they have significant differences. I've also used coroutines more than threads, but I've seldom needed to use either. Using coroutines does make sense when decoding streaming data one chunk at a time, like can be done with gifload (though when ...
by ReFreezed
Sun Sep 18, 2022 5:56 pm
Forum: Support and Development
Topic: Calling Function from Collided Object in Windfield?
Replies: 8
Views: 335

Re: Calling Function from Collided Object in Windfield?

queryCircleArea() returns a list of colliders, not yarrows, so for each collider you'll have to look through your list of yarrows to find the one with the relevant collider (yarrow.collider).
by ReFreezed
Sun Sep 18, 2022 12:38 pm
Forum: Support and Development
Topic: Wraparound a Table of Tables [Solved]
Replies: 9
Views: 238

Re: Wraparound a Table of Tables

What isn't working? The logic seem to wrap around fine. I tried drawing this on the right edge:

Code: Select all

   |
 x |
 xx|
  x|
  x|
   |
Running the simulation shows it wrapping around to the left side. Same happens vertically.
by ReFreezed
Sun Sep 18, 2022 12:19 pm
Forum: General
Topic: Coroutines are awesome
Replies: 26
Views: 6721

Re: Coroutines are awesome

Meh. Coroutines have their uses, but really, they just wish they were Real Threads™.
by ReFreezed
Sun Sep 18, 2022 12:07 pm
Forum: Support and Development
Topic: Moving sprite is jitter.
Replies: 11
Views: 411

Re: Moving sprite is jitter.

dt sometimes being that low is really strange. Have you updated your graphics drivers to the latest version?

Subpixel rendering is just a thing you can do to make movement smoother when you have low resolution (pixel art) graphics. It's not relevant here.
by ReFreezed
Sat Sep 17, 2022 9:49 pm
Forum: Games and Creations
Topic: Maple, the Magic Squirrel
Replies: 11
Views: 584

Re: Maple, the Magic Squirrel

Sammm wrote: Sat Sep 17, 2022 9:26 pm @Refreezed, do you mean that I take the .dll files along with the exe and just zip all those together for it to work?
Yes.
by ReFreezed
Sat Sep 17, 2022 8:28 pm
Forum: Games and Creations
Topic: Maple, the Magic Squirrel
Replies: 11
Views: 584

Re: Maple, the Magic Squirrel

So many spiked squirrels.

Note that for the Windows version to work it needs the .dll files too - not just an exe.
by ReFreezed
Sat Sep 17, 2022 8:15 pm
Forum: Support and Development
Topic: Moving sprite is jitter.
Replies: 11
Views: 411

Re: Moving sprite is jitter.

updateCounter = love.timer.getTime() And then I did this at the end updateCounter = updateCounter - love.timer.getTime() Not sure if I did it right but according to this, it takes 1-6 ms for love.update to finish. The moment the first sprite show up, it is drop to 1 ms and then it is around 2 ms bu...
by ReFreezed
Sat Sep 17, 2022 7:17 pm
Forum: General
Topic: Coroutines are awesome
Replies: 26
Views: 6721

Re: Coroutines are awesome

10 years later...