Ilias Mouatacim / Terrain
Cube Crafter
A browser game where players can dig, build, and share a world.
Project Lab
Try a small interactive model of the system behind this project.
What you can do
A player starts in generated terrain, collects blocks and crafts items, then places the blocks back into the world. A second player can join the same room and see changes made by the first.
Share the seed, then the edits
The seed gives both clients the same starting point. Synchronizing block edits handles what players change after generation. The lab shows the seed side of that split with a small height map.
How it fits together
- World seedSets the starting terrain
- Three.js sceneRenders terrain and placed blocks
- PeerJS roomShares the seed and block edits