Ok, it isn't pretty but sometimes you just want to know what the CPU cost of something is. I've started this cart just to see what things cost. This runs at 60fps, so if you're using a 30fps cart, you can divide the CPU cost by 2.
Its structured to be really easy to add more tests to, if you're curious. Let me know if you have any questions! This lives on github at:
I needed a filter for something on another project, so I implemented the very cool 1 euro filter from:
The parameters are tuned in this gif to make it very obvious, but its controllable.
The code for the filter is at the top of the cart, if you want to see the source. It has a :filter() method that can filter the incoming noisy value.
In the cart: if you click it draws lines. Green line is the input signal, yellow is the filtered signal.
Based on stdlib.p8, built with @stevelavieties.
0.6: fixed invincibility bug
Pushback is a simple action game based on the Ludum Dare theme "One Room".
How to play:
You are the center yellow block. Use the green blocks to push the red monsters back and squish them against the walls.
If the red monsters get next to you, they'll attack you, and you'll get progressively bloodier. Lose all your health and you lose.
Squish all the monsters and you progress. See how many levels you can clear!
arrow keys move the green blocks, you can't move yourself.
Made in collaboration with @stevel