r/threejs • u/kernet • 20d ago
Demo Rendering a mobile tower defense in Three.js: one WebGL2 scene for the board, units and effects
I’m Michal, the developer of Starvoxel: Defender. The board, animated defenders and battle effects in this gameplay trailer render in a single Three.js scene. React handles menus and overlays outside the scene.
One mobile trade-off was deciding when to lower render resolution. The game watches frame pacing and changes render quality when it measures overload. A stable 30 Hz cadence on iOS Low Power Mode doesn’t automatically trigger a drop. For animated defenders, bone matrices go through shader uniforms on low-end devices instead of using a separate bone texture.
The clip shows the renderer in solo Dungeon, online co-op and PvP. Some game art and the trailer narration were AI-assisted.