Log In  
Follow
Shifty

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


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.

9
3 comments



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


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.

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

v3
Properly constrained paddle to play area.

2
1 comment