Log In  

Cart [#44897#] | Copy | Code | 2017-10-03 | Link

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:

PRs welcome!

P#44898 2017-10-03 23:42


Cart [#42459#] | Copy | Code | 2017-07-13 | Link

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.

math filtering euro
P#42460 2017-07-13 23:39 ( Edited 2017-07-13 23:49)


Cart [#40479#] | Copy | Code | 2017-05-11 | Link

0.6: fixed invincibility bug

Cart [#40275#] | Copy | Code | 2017-05-07 | Link

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

Feedback welcome!

action grid
P#40276 2017-05-07 12:09 ( Edited 2017-05-11 20:58)

:: More
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-09-19 17:07 | 0.349s | 1572k | Q:45