Example games
Each game is one HTML file from threejam export, and each picture is a frame threejam shot draws at a fixed seed and tick. Every game plays with a keyboard, or on a phone or tablet with its on-screen keys.
-
Pong
Two players at one keyboard, first to 7 points.
W and S move the left paddle, Up and Down the right; Space starts.
Keyboard or on-screen keysCode
-
Breakout
Clear every brick with three lives.
Left and Right, or A and D, move the paddle; Space serves.
Keyboard or on-screen keysCode
-
Snake
Eat apples to grow, and don't hit a wall or yourself.
An arrow key starts the snake, and the arrow keys turn it; Space plays again.
Keyboard or on-screen keysCode
-
Flappy
Flap through the gaps between the pipes.
Space starts a run, and each press flaps.
Keyboard or on-screen keysCode
-
Invaders
Clear the wave before the invaders reach the bottom.
Left and Right move the cannon; Space starts and fires, and holding it keeps firing.
Keyboard or on-screen keysCode
-
Tetris
Fill rows to clear them, until a new piece has no room.
Left and Right move the piece, Up rotates it, and Down drops it faster; Space starts.
Keyboard or on-screen keysCode
-
Asteroids
Shoot the rocks, which split when hit, and don't let them hit you.
Left and Right turn, Up thrusts, and Space fires; or hold the mouse, or a finger on the game, to aim and fire, and the right button to thrust. Space, a click, or a tap on the game starts.
Keyboard or on-screen keysCode
-
Racer
Weave through traffic to the finish line before the clock runs out, on 2D rules drawn in 3D.
Left and Right steer, and Space starts. A crash spins the car out, and each coin adds a second.
Keyboard or on-screen keysCode
Make your own
Install ThreeJam in your project:
npm install -D threejam
Give your coding agent the skill that teaches it to build and test games with ThreeJam:
npx skills add https://github.com/aksheyd/threejam/tree/v0.0.7/skills/threejam
Or register ThreeJam's MCP server with your coding agents, so they get the same commands as tools:
npx threejam mcp add