Toby Jaffey https://mastodon.me.uk/@tobyjaffey
Play at: https://ringtailsoftware.github.io/zero-jetpack
A game built on https://github.com/ringtailsoftware/zig-wasm-audio-framebuffer
Fly Zero the Ziguana through space, collect the eggs and deposit them carefully in the basket.
zig build && zig build serve -- zig-out -p 8000
Browse to http://localhost:8000
This project is a mess, I’ve been working on for fun and education. I’m sharing the code because it might help others who are trying to figure out similar things.
getTimeUs()
, it doesn’t call out to anything in the host. The host polls the code for sound and pixel buffersassets/
. Each png is a bitmap with a colour for each thing in the game. White is empty, black is rock, red is an egg (redness dictates egg size). Blue is the player start position and green is the basket locationassets/sprites.json