Log In  
:: Unfold ::

Cart #52208 | 2018-05-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

An example implementation of automatically-calculated delta time in Pico-8, allowing for framerate-independent game logic.
It's not much to look at, but a detailed description is available in the code comments.

Example use case:
You've built a project targeting 30FPS, but it turns out to be optimized enough to run at 60FPS.

Normally, switching from using _update to _update60 after the fact would be a painful job involving a lot of manual number editing, and you'd be screwed. However, if you had built your project with delta time in mind from the start, you could simply rename and everything will continue to move at the 'correct' rate.

P#52209 2018-04-30 20:19 ( Edited 2018-05-01 19:30)

:: Unfold ::

Cart #52201 | 2018-04-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

My first Pico-8 cart, a dumb little twist on bat-and-ball games that involves keeping a juggle combo going so the game will say nice things about you.

Made as an exercise in tool-learning and object-oriented programming.

Updated with sounds, refined physics and a couple of new mechanics. Bounce the ball off the ceiling or floor for style!

Properly constrained paddle to play area.

P#52136 2018-04-29 14:02 ( Edited 2018-04-30 21:02)

Follow Lexaloffle:          
Generated 2023-11-30 20:54:40 | 0.060s | Q:11