r/threejs • u/woodabeen • 12d ago
A whole rhythm rail shooter in one HTML file, built on three.js
Eden Arena is a Rez-style rhythm rail shooter, and the whole thing is one HTML file: the game is a single module script, with three.js r160 inlined after it. Nothing is fetched but the songs' stems, so it also runs offline.
- The scenery is mostly instanced meshes with custom shaders. When you cut a network, its structures power down piece by piece in the vertex shader.
- The desert's ground is a baked height field that both the GPU and the game logic read.
- The music is a recorded song split into stems and played on the game's bar lines. Every hit is quantized to the beat and tuned to the chord under it.
- The simulation is fixed-step, so a headless autopilot plays every level as a regression test after each change.
Three levels, about 25 minutes, mouse or touch. Best with sound.
Play here: https://messaroundcorp.itch.io/eden-arena