Inspiration

Electronics is easier to learn when something real depends on it. We wanted fixing a circuit to feel like helping a neighborhood: on Halloween night, a porch lamp, a door chime, a desk fan and a jack-o'-lantern need repairs.

What it does

Deon is a first-person game set in an original miniature city.

  • Four repair calls, each teaching one idea: open circuits, polarity, current limits and series resistors
  • A breadboard workbench with LEDs, resistors, capacitors, transistors, ICs, sensors, relays, motors and a bench power supply
  • Probes for voltage, continuity and DC readings, plus a Problems panel
  • Help that escalates after failed tests: hint, schematic, then a ghost of the fix
  • Challenges, example circuits, a loft bed with sudden nightmares
  • Fully playable in English and Mexican/Latin American Spanish

For the jack-o'-lantern, Ohm's law decides the resistor: $I = \frac{V_s - V_f}{R}$. A bare wire lets too much current through, and 10 kΩ leaves it too dim.

How we built it

TypeScript, Three.js and Vite, with no backend. The city is handcrafted geometry, and progress is saved in the browser. A custom circuit solver uses component models based on datasheets. Kiro specs, steering and hooks guide the work, and 87 automated tests, including property-based tests with fast-check, check it.

Challenges

  • Making readings believable: nonlinear parts, transients, and checking Kirchhoff's current law before reporting a value
  • Keeping each repair consistent across circuit, checks, hints, schematic, 3D device and two languages
  • Fitting a detailed breadboard into desktop and touch screens

What we learned

A teaching game has to be honest about its model: we document what the simulation omits. Writing project rules down as steering files and hooks makes consistency something you can check.

Built With

Share this project:

Updates

Submission history