Log In  
5

Cart [#37437#] | Copy | Code | 2017-02-13 | Link
5
A fast single-pixel particle system using bitwise operations and constant-time addition and removal. The top part of the program is the reusable particle system. It features acceleration, velocity, particle colors, and particle lifetimes. Please reuse, but please also keep my name attached to the code.

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

particle fast bitwise


P#37439 2017-02-13 23:08

6

Cart [#36160#] | Copy | Code | 2017-01-20 | Link
6

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:

  • loops
  • create & destroy objects
  • local vars
  • text
  • multiple levels
  • sprite animation
  • powerups
  • particles
  • map usage
  • title screen & game over
  • sound effects
  • music
  • sprite packing
  • basic physics
  • assertions

as well as some techniques for reducing token count, a limited resource on PICO-8.

I did most of this work in parallel with the 2017 Global Game Jam. The PICO-8 version of Brick Breaker is based on my JavaScript Brick Breaker sample program, which you can play here.

arkanoid pong breakout


P#36161 2017-01-20 21:58


:: More
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:
Generated 2017-03-23 20:04 | 0.156s | 1835k