Blockcraft
A Minecraft-style voxel sandbox in one 70 KB HTML file: an endless world grown from a seed, caves, a day–night cycle and TNT.
Open in its own tab
The game only loads when you start it (74 kB). Needs a keyboard.
About the game
Everything in Blockcraft is made by code: the textures are painted pixel by pixel, the sounds and music are synthesised, and the terrain grows from a seed — plains, forests, deserts, snowy mountains, oceans and caves with lava at the bottom.
Your changes are saved in your browser, so the world is still there next time. Best played on a computer with keyboard and mouse.
Under the hood
TypeScript, WebGL 2, Perlin noise, ambient occlusion and light propagation — no libraries, no image files.
Controls
| Key | Action |
|---|---|
| W A S D or arrow keys | walk |
| Space | jump; press twice to fly |
| Shift | fly down |
| Ctrl or R | sprint |
| Left click | break a block |
| Right click | place a block or light TNT |
| 1–9 or mouse wheel | choose a block |
| E | all blocks |
| F | flying on/off |
| M | music on/off |
| Esc | pause and settings |
Credits
- By
- MarketKernel
- Licence
- MIT
- Source code
- github.com/MarketKernel/html-minecraft
- Changes for this site
- SOURCE.txt
- Size
- 74 kB