2 ms·
I made a new game called Driftways: a free-to-play 3D game that runs in the browser with no signup, at least for now. Long story short: every day, one seed gen
by DriftTechnologi 4mo ago
I made a new game called Driftways: a free-to-play 3D game that runs in the browser with no signup, at least for now.
Long story short: every day, one seed generates the same sky archipelago for everyone. There, you can drift, jump, slide... wall-run and grapple through it, and when the UTC day changes, that world is gone forever (kinda)!
I built the game on my own 100% custom WebGL2 engine, written in strict TypeScript, with a custom WebGL2 renderer and GLSL shaders, rather than using Unity or Three.js. I created a new engine specifically for the game and called it DriftEngine. It is kept separate from the game and contains no Driftways-specific concepts. The engine handles rendering, procedural geometry, collision, input, audio with dedicated mixing channels and kick detection, DSP-based rhythm analysis, and deterministic fixed-step simulation.
On the nerdier side, the collision system uses a spatial hash and convex hulls, resolving against the geometry as it is actually drawn rather than only against bounding boxes. The renderer supports directional and point lights, shadows, procedural materials, Gerstner water with planar reflections, volumetric smoke and plumes, while fire, sea, wind, and storms are mixed as continuous ambient sources with distance and stereo placement. The visuals use vertex colours and procedural shaders, with zero texture files.
Also, runs are recorded as compact input streams and can be replayed bit-identically. The game itself can later analyse the music, cut the replay using a cinematic camera with several other camera modes available, and export a clip.
The current build is playable on desktop and mobile. I’d really appreciate feedback on loading time, browser/GPU compatibility, controls, and performance, especially on ordinary Android or low-end devices.