Games

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

KeyAction
W A S D or arrow keyswalk
Spacejump; press twice to fly
Shiftfly down
Ctrl or Rsprint
Left clickbreak a block
Right clickplace a block or light TNT
1–9 or mouse wheelchoose a block
Eall blocks
Fflying on/off
Mmusic on/off
Escpause and settings

Credits

By
MarketKernel
Licence
MIT
Source code
github.com/MarketKernel/html-minecraft
Changes for this site
SOURCE.txt
Size
74 kB