Log In  

Cart [#38807#] | Copy | Code | 2017-03-28 | Link

This entire cart is 243 characters (plus six sprites). The code is just:

x,y=k,k::a::cls(12)for j=3,k do
goto a

It was a successful attempt to code the basics of a game in two tweets. There's actually enough room to clamp x and y to the screen. I hope someone will use this as a starter to make a real game.

P#38808 2017-03-28 01:54


Cart [#37437#] | Copy | Code | 2017-02-13 | Link
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


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

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
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2017-04-25 06:40 | 0.231s | 1572k | Q:28