← All work
Game

Space Miner

A one-screen arcade game where you dig asteroids for ore before your oxygen runs out.

Play it

Arrow keys to move, space to mine, R to restart

This game is played with a keyboard, so it works best on a computer. On a phone you can still watch it run, but you won't be able to move.

Open the game in a new tab

What was hard, what I learned

The mining physics broke every time I changed the grid size, so I rewrote it three times before I stopped hard-coding numbers. The version that finally worked is the one where the grid knows its own cell size instead of me guessing. I also learned that playtesting with my sister finds bugs faster than reading my own code.

Tools
Vanilla JS + Canvas
Pixel art in Aseprite
Sound effects in Bfxr
Tags
arcadejavascriptpixel-art