The bottom part is the waterfall demo and some generic particle emitter code.
You can save a few more cycles if you hardcode the gravity constant. Otherwise I believe that this is close to optimal.
More information at my github
I wrote Brick Breaker as a full-featured, polished PICO-8 sample program. It was an opportunity for me to learn the PICO-8 Lua variant and now stands as a good example program for other programmers new to PICO-8.
It demonstrates (commented) use of:
- create & destroy objects
- local vars
- multiple levels
- sprite animation
- map usage
- title screen & game over
- sound effects
- sprite packing
- basic physics
as well as some techniques for reducing token count, a limited resource on PICO-8.