The idea
A fast, mobile-first 3D endless runner that runs straight in the browser, with nothing to install. You play an otter swimming down a river. Swipe or use the arrow keys to switch lanes, jump over rocks and dive under logs and bridges, and collect fish along the way.
What I built
I built the whole game with Three.js, without a game engine:
- Gameplay: lanes, jumping and diving with input buffering, side bumps instead of instant deaths, and a pattern-based obstacle generator that always leaves a way through and gets harder as the speed goes up.
- Obstacles and power-ups: floating logs, rock towers, fallen trees, low bridges and crocodiles that swim towards you, plus a magnet, a bubble shield and double points.
- Animation: a custom blending layer over the rigged otter’s skeletal animations, plus procedural touches like a dolphin arc on jumps, mid-air spins and squash & stretch.
- World: a day → sunset → night cycle, animated water made with procedural normal maps, river banks with low-poly scenery, and particle effects for splashes, bubbles and sparkles.
- Audio: all music and sound effects are generated live with the Web Audio API, so the game ships with no audio files.
- UI: loading, menu, pause and game-over screens, a high score saved in the browser, and a layout tuned for portrait phones.
