Lorenzo’s Portfolio
AI enablement
← Video games

Browser game

Runoff

Lorenzo Colombani

A first-person shooter that runs in your browser: hold one wet underground hall against three waves of drones. Every texture, model, sound and note of the score is generated in code.

Play game

Plays on a computer with a keyboard and mouse. The first load can take about 20 seconds while your graphics card prepares the scene.

Behind the game

One room. Three waves. Nothing loaded from a file.

Runoff is a first-person shooter that runs in the browser. You hold a wet underground sump hall against three waves of drones, eleven in all, with a carbine, a weapon light and whatever cover the room gives you. Clear the last wave and the blast door opens.

Every texture, model, sound effect and note of the music is generated in code when the page loads: there are no image, model or audio files. The score follows the fight, bringing in drums, bass and strings as the waves build.

Lorenzo Colombani designed and directed the game; AI coding tools built it to his brief. He played each version as it was built and asked for the changes.

By
Lorenzo Colombani
Format
Browser game · first-person shooter
Built with
Three.js, WebGL, Web Audio
Controls
Keyboard and mouse, QWERTY or AZERTY
Status
Public, free to play
Preview
recorded gameplay

Project notes

How one room carries a whole game.

The room

A sump hall 26 by 16 metres: a fan shaft with a shaft of daylight, a control deck with stairs and monitors, a reactor with a glowing core, tanks, ducts and crates, and two hatches the drones drop from. Puddles on the floor reflect the room around them.

Made in code

Each surface is painted on a canvas from noise, so one pattern gives a material its colour, its bumps and its shine. About sixty sounds, each with several takes, are computed sample by sample while the page loads, along with the hall's own echo.

The fight

Drones drop from the hatches, bank, strafe, charge and fire bolts you can sidestep; a hit drone spins out and crashes before it blows. The carbine kicks, sways and reloads on a timeline: the magazine drops, bounces, and a new one goes in.

Built to adapt

Quality runs from Low to Ultra, with an automatic setting that steps down quickly when frames slow and climbs back slowly. Keys are bound by their position, so Z Q S D on a French keyboard work as W A S D do, and the menu shows your keyboard's own letters.

Tested by a bot

A scripted player runs the whole game, all three waves, as the logic test. The preview clip and the frames on this page come from that bot playing the published game, recorded one step at a time.

Gameplay frames

Runoff — the sump hall before the first wave, the reactor glowing between two columns
Hatches cycling: the hall before the first wave.
Runoff — an orange drone dropping from a ceiling hatch under a red beam, the carbine raised
A drone drops in through a hatch.
Runoff — a drone with a glowing red eye close in, red light along the carbine
Up close with a drone in wave two.
Runoff — wave three in warm light, a red damage arc on screen, health at 88
Wave three, taking hits.