A single-file HTML implementation of the classic Blockout-style 3D falling-block puzzle.
The game runs entirely in the browser from index.html. It uses a perspective pit renderer with a green wireframe shaft, colored settled cuboids, and a white wireframe falling piece.
Open index.html in a browser, or serve the folder locally:
python -m http.server 4173 --bind 127.0.0.1Then visit:
http://127.0.0.1:4173/index.html
| Key | Action |
|---|---|
Number keys / numpad 1-9 |
Move around the pit, including diagonals |
| Arrow keys | Move on the pit floor |
Q, W, E |
Rotate counter-clockwise around X, Y, Z |
A, S, D |
Rotate clockwise around X, Y, Z |
Space |
Drop the current block |
P |
Pause or resume |
Enter |
Restart after game over |
- Flat Fun:
5x5x12, flat block set - 3-D Mania:
3x3x10, basic block set - Out of Control:
5x5x12, extended block set
index.htmlcontains all markup, styles, and game logic.