A clone of MEGABONK's snake-walk terrain generation method. Real-time parameter tweaking, dynamic elevation, grass and water. One HTML file. Three.js powered.
Everything in a single file. Zero build tools. Zero dependencies beyond Three.js CDN.
Map size, hilliness, gap chance, floor depth, water level, grass density. All real-time.
Canvas-generated grass, dirt, and cap textures. No image files needed.
Every parameter change rebuilds the terrain. Infinite exploration from one algorithm.
Procedural terrain generation in your browser.
A random-walking snake carves terrain paths across a grid. Corridor momentum keeps it moving with 70% straight-line probability.
Variable-height ramps with multi-cell slopes. Dead-end ramp cleanup cascades backward through chains until all slopes lead somewhere.
Adjustable water plane fills low areas. Tweakable water level lets you flood or drain the terrain in real time.
lil-gui parameter panel. Every slider regenerates terrain instantly. Map size, hilliness, gap chance, floor depth, and more.
Scattered grass blade sprites on terrain tops. Bilinear height interpolation for slope placement. Adjustable density.
Three.js standard materials with shadow casting, atmospheric fog, and third-person orbit camera.
No download. No install. Procedural worlds await.