-
-
The haunting teaches: on the wrong side of the road the fog closes in, the heartbeat quickens and a carved line says Keep left.
-
Four lanes under a photographed night sky; brass speed dial with the limit on the rim, candle fuel gauge, antique mirrors.
-
The headstone: every rule broken, with its road sign, cost, legal source and an evidence photo.
-
Day mode: sun, sky and textured hills. Settings > Time of day.
-
The garage: helmet, vest, tyres, headlight, driving permit and insurance, bought with points.
-
The menu: nine lanterns, mist and a flickering title. Every screen fits phones without scrolling.
Play now (no install): https://9lives-nightboda.pages.dev — phone or desktop, headphones on.
Nine Lives: Night Boda is a 3D road-safety game that teaches boda motorcycle-taxi riders Ugandan traffic law through a haunted night ride. Every ghost marks a real black spot. Every scare names a real fix. Nine lanterns. One passenger. A road that remembers.

Inspiration
In Kampala you do not take a taxi, you take a boda. Motorcycle taxis carry students to school, mothers to the market, patients to the clinic, and they are how most of us get home after dark. They are also how many of us get hurt.
In 2025 the Uganda Police recorded 26,044 road crashes, 4,602 of them fatal. In Kampala, people on foot, on bicycles and on motorcycles made up 94% of road deaths, and motorcyclists alone half of them. Almost everyone here knows a rider who did not come home, or a passenger who now walks with a limp. The causes are painfully ordinary: speed at junctions, overtaking on the wrong side, no helmet, riding against traffic, no licence, no insurance.
The primary audience is boda riders and their passengers in Uganda and East Africa. A secondary audience is road-safety educators and rider-training schools, who need a tool that is free, runs on any phone without an install, and teaches the Traffic and Road Safety Act in a way that sticks.
Road-safety campaigns tell riders these rules. We wanted a game that makes you feel them. Kiroween gave us the frame: a haunted night ride where the ghosts are not monsters but memorials, standing at the black spots where people died, and where the haunting itself is the lesson.
What it does
You carry one passenger home through three four-lane Ugandan roads (Stage Night, Rainy Ridge, Dawn Highway) with nine lanterns for nine lives.

The haunting teaches. One function scores how close you are to death right now: time to hit whatever is in your path, speed over the limit or the safe speed for the bend ahead, a red light or speed hump coming up, riding on the wrong side, a black spot. Every scare reads from that one number. The fog closes in and turns ghost-teal, the colour drains from the night, a heartbeat quickens from about 60 to 140 beats a minute, pale hands reach in from the edges, and close to death the whispers start. A carved line always names the danger and the fix: "Too fast for the bend / Brake before it." "Wrong side of the road / Keep left." Ride safely and the dead fall quiet.
Black spots. At each haunted junction a ghost walks into your headlight. Come in under the limit and it bows and steps aside: "They let you pass." Come in fast and it rushes you.

The road as Ugandan law asks it.
- Keep left, overtake only on the right, stop at red lights and zebra crossings, slow near schools, walk the bike over speed humps.
- Police checkpoints close the road with a boom until your permit and insurance are checked; riding into it throws you off.
- Matatus stop without warning, taxis cut in, trucks crawl, cows, goats and dogs cross, traffic queues behind brake lights.
- Highway crime with real remedies: flash your headlight at a snatcher, never stop at a fake roadblock, reach a lit safe zone, call SOS.
Every mistake has a cost. Each rule broken and each crash costs points. The ride ends on a headstone that lists every mistake with its road sign, its cost, its legal source and an evidence photo captured the moment it happened. Score too low and you go to a short rider-school quiz and a slow learner ride.

A haunted dashboard. A brass speed dial with the zone limit marked in red on the rim, lanterns that smoke when one goes out, a candle that burns down as the fuel gauge, antique mirrors where a faceless shape rides with any vehicle closing fast.
Day or night. Prefer to learn in daylight? Switch to day mode in settings: real sun, textured hills, the same rules.

Optimised for all devices. Hold anywhere to ride, swipe to change lane, swipe down to brake; FLASH and SOS sit under your thumbs. Every screen fits without scrolling, from a 360 px phone to a desktop.
Built with intention. Design tokens keep the haunted palette — ghost-teal fog, bone-white carved text, brass-and-candle dashboard — consistent across every screen. Captions cover every voice line and ambient sound; reduced motion removes the dread animation while keeping the mechanical rules; a Playwright script confirmed every screen fits without scrolling at eight viewport sizes from 360 px to 1920 px.
How we built it
Kiro IDE (not CLI, Web or Crew) was used from first scaffold to final polish. The difference between spec-driven and vibe coding was stark: the first scaffold was free-form prompting, and it produced working code but no guarantees. Every later feature started from a spec — seven in total (ride engine, Ugandan world, haunted world, spooky UI, audio system, performance, levels and lessons), each with EARS requirements, a design with correctness properties, and a task list Kiro implemented task by task. The rules stopped being vague and became tests Kiro ran and fixed on every change.
- A pure, deterministic core. The whole ride is
step(state, input, dt): seeded RNG, swept collisions, traffic, rules, penalties and the dread score. A single steering rule — "the simulation core must have no three.js, DOM, Math.random or Date.now" — kept the entire game logic pure, which made headless bot balancing, replays and evidence frames almost free. - Property-based testing. 36 fast-check properties among 119 tests: determinism and replay, bounds on lives and speed, fair spawns, swept collisions, "nothing hits the rider from behind in their own lanes, on any road, for any rider". PBT found a horn rule that teleported vehicles into overlaps (kept as a regression seed) and a voice line that was queued and playing at once.
- Custom agents. Three: a haunt designer (UI in the haunted design system), a game balancer (seeded bot simulations), a grave keeper (tone and ethics review).
- Hooks as guard rails. 12 hooks: tests and a purity check when core files change, a licence guard and CREDITS.md regeneration for every asset, stats refresh, a .gitignore guard for the /.kiro rule, doc upkeep, and a type check plus tests when an agent turn ends.
- MCP. The Devpost MCP server let Kiro read the rules, judging criteria and dates and fill in this very submission; the agentmemory MCP server carried decisions across sessions. Both replaced manual copy-paste and repeated context. Screen-fit checks and screenshots ran through playwright-core scripts the agent wrote and ran from the shell.
- Kiro Powers. The ElevenLabs Power generated every narrator line and sound effect inside the IDE without leaving Kiro.
- Rendering. three.js and WebGL2: instanced roadside props on recycled 40 m segments, photographed CC0 skies, a textured moon, noise-shaped grassy hills, ground mist and will-o'-the-wisps from CC0 sprites, a quality tier chosen by a 2 s benchmark and a frame-time governor. Capped at 150 draw calls.
- Sound. ElevenLabs voice and sound effects first, CC0 recordings next, the Web Audio synthesiser only as a last fallback.
- Budgets. 60 KB first-load menu, 350 KB game, 12 MB 3D, 1.5 MB audio, 150 draw calls. The build fails if they are exceeded.

Challenges we ran into
- Scary without being cruel. The first black-spot line said the dead died "going that fast". That blames the victims. Every line now points at the rider's speed, never at the dead — and a tone-check hook reviews every content change for it.
- Fear that teaches, not fear that tricks. Early on, cars could rear-end you with no warning, which taught nothing. Now nothing hits you from behind in your own lanes, a property test proves it on every road and for any rider, and every danger on screen is one you can fix.
- When the spec met the road, the spec lost. Balance bots showed a junction zone could be crossed in 1.3 seconds — under the 1.6-second drain timer the requirement was built around. The requirement was rewritten, and the tests with it. That is the spec discipline in one sentence: the game got fixed, not the test weakened.
- A tiny world that still feels real. Photographed skies, textured hills and four-lane roads had to fit a phone budget; draw calls, texture sizes and particle fill-rate were measured on every change.
- Sound that must be heard to teach. Phones stay silent until the first tap, and a rider's phone is often on silent. Every voice line and sound is captioned, the narrator speaks and writes at once, and a gentle hint asks for the silent switch on the first ride.
- Bugs that only screenshots found: a negative first frame time that threw the camera off the road, glTF vertices truncated when merged, a cow on screen while a dog barked.
Accomplishments that we're proud of
- The haunting is the safety system: one tested function drives every scare, so the game never frightens you without telling you why — and every danger on screen is one you can fix.
- The headstone: a full, honest record of a ride, each mistake with its sign, its cost, its legal source and an evidence photo captured at the moment it happened.
- It runs on the phones riders already own. 119 automated tests (36 property tests), every asset licence-checked, and the whole game inside hard budgets — 60 KB first load, 350 KB game code, 1.5 MB audio, 150 draw calls — with a quality tier chosen by a two-second benchmark on the rider's own phone.
- Accessible from the start: captions for every voice line and ambient sound, reduced motion, and a day mode for riders who learn better without the horror.
- Every rule is cited to the Uganda Traffic and Road Safety Act, Cap. 361, or to a WHO road-safety guideline. The dread score's speed thresholds are the actual posted limits in Ugandan law, not approximations.
What we learned
- Writing correctness properties into the design doc changed how we built. Rules stopped being vague and became tests Kiro ran on every change. When a property caught a horn rule that teleported vehicles into each other, we kept the failing seed as a permanent regression test.
- Keeping the simulation pure made everything else almost free: difficulty balancing, replays and the evidence photos on the headstone all reuse one deterministic core.
- Horror and education fit when every frightening thing is true — and an ethics steering file kept the dead mourned, never mocked.
- Specs made the agent trustworthy. With EARS requirements and properties to satisfy, Kiro stopped being a code generator and became a collaborator we could challenge with tests.
What's next for Nine Lives: Night Boda
- Play-testing with boda riders and road-safety groups in Kampala, and a Ugandan review of the signs, voice and Luganda phrases.
- A classroom mode for rider-training schemes: a lightweight build for low-end Android phones, with clean-ride statistics an instructor can read at the end of a session.
- Luganda and Swahili narration.
- A shared leaderboard for boda stages, so clean rides become something stages compete on.
Play: https://9lives-nightboda.pages.dev | Code (MIT): https://github.com/drkNsubuga/nine-lives
Sources: Uganda Police, Uganda Road Traffic Report 2025; KCCA, Kampala Road Safety Report 2025.
Built With
- ambientcg
- elevenlabs
- fast-check
- ffmpeg
- github
- github-actions
- gltfpack
- indexeddb
- kenney
- kiro
- playwright
- poly-haven
- svelte
- three.js
- typescript
- vite
- vitest
- web-audio-api
- web-speech-api
- webgl2