Get the latest tech news

Bouncing Beholder, my winning JS1K entry (2012)


My winning JS1K entry---a JavaScript platform game that fits in 1024 bytes. I gave a talk on this at the November Berlin JS user group.

Compression algorithms, such as Google's Closure Compiler and UglifyJS, and various eval/replace hacks suggested for the JS1K contest, don't really do much on properly hand-compressed code. This heightmap array (plus the player's position, speed, and a time counter for animation) represents pretty much the whole game state. Player movement needs to be restricted in two ways---you can't walk through the sides of blocks, and you shouldn't fall through the top.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of JS1k entry

JS1k entry

Photo of Bouncing Beholder

Bouncing Beholder

Photo of JS1k

JS1k