c/gamedev · by CodiUnicorn@programming.dev · 55dSetting timers in simple games (feat. the frame rule) https://lynn.github.io/blog/pico-timers/11 points · 2 comments · view on lemmy.world
2 Comments
MurrayL@lemmy.world · 4 pts · 55d
Great tip! I use PICO-8 a lot for little fun projects but never thought to put timers in a table before.
brisk@aussie.zone · 2 pts · 55d
If you store your timers in absolute time and keep them sorted, you only ever need to check the first timer rather than decrementing every timer every step.