Inspiration

In 2024 Nigeria's national grid collapsed 12 times. On a night like that, a family in a flat has a small inverter battery, a fridge that must stay cold and a child who can't sleep without the fan. The generator outside can save the night, but only if the house is cut off from the street first: a generator wired without a changeover can backfeed the line and kill the person repairing it.

I live in Lagos, and the power goes most days. At home we run the inverter first and the generator when the battery runs out, and when it goes at night, the first thing we save is the fridge. Changeover is that night, on a table in front of you.

What it does

You sit at a lap-sized table holding the flat's appliances, a board with four circuits and the changeover switch.

  • Pinch an appliance onto a circuit to switch it on; put it back to switch it off. The panel shows the load and how long the battery lasts at that load.
  • Keep the fridge cold, serve what the flat asks for, and don't overload the inverter: fridge plus iron is 2,042 W against 1,500 W, and everything trips.
  • From Night 3 the battery can't reach dawn alone. Hold the isolator, throw the changeover lever, pull the cord. Start the generator without the changeover and it is refused, because that is the backfeed that kills line workers.
  • Your eyes can hold the isolator. On a headset with eye tracking, keep looking at it and it glows: your eyes are holding it, and one hand throws the lever. Look away before the lever latches and it springs back with nothing energised. The eyes can never throw the lever themselves, and gaze alone never energises anything. It's a dead-man's switch made from where you look.
  • Dawn. Win and the flat on the table opens into the room around you as the sun comes up: the fridge, the fan over the sleeping child. What you kept on is what you see, so the fan turns only if it was on at dawn.
  • Five nights, then every day. Each fixed night adds one idea. After that, the Daily Outage gives everyone the same new night each date, in three tiers, with a streak saved on your device.

Designed for every Meta VR view

  • Meta VR Glasses field of view: every critical object sits inside the Glasses view mask at the seated pose with at least 1.5° to spare, and stays inside at ±3° of head pitch. This is a unit test (src/fov.test.ts), not a guess.
  • Look and pinch, no reaching: look at an appliance or the cord and pinch with either hand. Without eye tracking (Quest 3), the hand's ray does the same job, and the changeover needs two hands.
  • Safe failures: lose hand tracking mid-throw and the lever springs back; lose it while holding an appliance and the appliance goes home unplugged; a hand that has just come back can't pull the cord until it has been tracked for 0.3 s.

How I built it

  • IWSDK 1.0.1 (ECS on three.js r181), TypeScript, Vite. Every shape is generated in code and every sound is synthesised with Web Audio: no models, samples or music files.
  • The power model, nights, Daily Outage, interlock and look-to-hold live in pure TypeScript with no engine imports, so they're tested directly: 298 unit tests, an interlock fuzz of 6,000 trials and a look-to-hold fuzz of 5,000 trials against an independent reference, with 0 violations.
  • The interlock only energises in a frame where two different tracked holders are on the isolator and the lever: two hands, or the eyes plus a hand.

Tested without a headset

I didn't have a headset, so every interaction claim comes from IWSDK's emulator (IWER), driven by scripts that move emulated hands and eyes, or from unit tests. Each one reruns from a command in the repo:

  • Hands: 160/160. Interlock: 80/80 on the Glasses and 80/80 on Quest 3. Look-to-hold: 140/140. Look and pinch: 160/160. Hand ray: 60/60. Nights: 60/60. Dawn: 20/20.
  • Render budget, inside XR on the emulated Glasses from night start to the end of dawn: at most 71 draw calls and 12,276 triangles per eye pass.

The video's footage and sound are the game's own, recorded in IWER; its narration is a synthetic text-to-speech voice, as its closing card says.

Not claimed: frame rate or comfort on a real headset, mixed reality, or how look-to-hold feels with real eyes. The emulator's gaze is perfectly steady and real eyes aren't.

Challenges

  • A lost pinch. In IWSDK 1.0.1 a ray release that lands on nothing is dropped. Every select in Changeover moves its target, so the release always landed on nothing and the next pinch was swallowed. Plug-then-unplug by ray passed 0/20. Holding the pointer on the target until release fixed it: 20/20.
  • The gaze stops when you need it. IWSDK's gaze hover pauses while a hand is grabbing, which is exactly when the other hand is on the lever. Look-to-hold reads the raw eye pose instead.

What's next

Put it on a real Quest as soon as I can get one: tune look-to-hold for real, jittery eyes and check the frame rate. Then more nights and homes: new flats, appliances and outage patterns. I'd like to work with electricians and safety groups on the backfeed lesson, and put the game in front of family and friends who live with power cuts, and learn from how they play it.

For judges

Add ?daily to the link to reach the generator, the changeover and the eyes straight away: osiyomeoh.github.io/changeover/?daily. The Daily Outage always has them; the campaign reaches them on Night 3, about 8½ minutes in if Nights 1–2 are won first time.

Code, tests and the evidence for every number: github.com/Osiyomeoh/changeover (MIT); each number above has a row in CLAIMS.md.

Built With

Share this project:

Updates

Submission history