Fire Nation Attacked

Fire Nation Attacked is a Reachy Mini app that turns the robot into a predictive water-cannon operator. The head pose steers an orbital hose across a 2D battlefield while each antenna controls a different action:

Gameplay loop

  1. Waves begin the instant you spray the glowing START glyph—no prep countdown—so you can (and should) paint even while “waiting.”
  2. Enemy cues appear on the far-left margin three seconds before a unit enters, and a thin neon path projects the next five seconds of its movement so you can pre-draw their demise.
  3. Waves contain three custom archetypes:
    • Ember Scouts – fast, straight runners with low HP.
    • Flare Serpents – sinusoidal movers with medium HP.
    • Basalt Guardians – heavy units that march in angular, continuous square waves.
  4. To launch the first wave, spray the glowing START glyph on the ground. The local leaderboard (persisted in leaderboard.json) is printed on the start screen and disappears once combat begins.
  5. Water splashes persist until an enemy consumes them; perfect play means every drop is used. Any leftover puddles are aggregated into a single penalty circle that must be vacuumed before the next wave can start.
  6. Scores are granted per wave. Taking base damage and leaving waste will deduct points, while vacuuming unused water grants a bonus. Grades range from D→S, with S+ reserved for perfect, damage-free, zero-waste clears.

Controls & shortcuts

Action Robot control Dev shortcut
Spray predictive water Pull/push the left antenna past ~0.18 rad Press Space (after pressing M to enable dev override)
Vacuum puddles Move the right antenna past ~0.18 rad Hold Shift (dev override only)
Aim Move Reachy Mini’s head (roll/pitch) Press M to toggle mouse aim in the browser for debugging
Start run Spray/push the glowing “Start” glyph Spray it

Mouse/keyboard overrides are meant strictly for browser-only development sessions; keep them disabled when the real robot is connected to avoid conflicting inputs.

Running the app

cd fire_nation_attacked
poetry install  # or pip install -e .
poetry run reachy-mini-app fire_nation_attacked

Then open the Reachy Mini dashboard (or the URL printed in the logs) to load the custom UI served at http://0.0.0.0:8042.

Developer notes