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:
leaderboard.json) is printed on the start screen and disappears once combat begins.| 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.
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.
/reset_session clears scoring data if you want a fresh run./sensor_data streams roll/pitch/yaw plus normalized fire/vacuum strengths. /wave_report lets the UI persist scores/grades (also shown on the HUD), while /play_sound triggers simple hardware sounds hosted in fire_nation_attacked/fire_nation_attacked/assets.canvas scene (static/main.js) with responsive HUD, predictive path rails, Web Audio flourishes (pink-noise spray, triangle vacuum), and keyboard fallbacks (press M to toggle mouse aim, Space/Shift to simulate sprays/vacuums without the hardware).static/main.js so balancing can be done without touching the rest of the logic. The end-of-wave summary is rendered directly beside the center puddle to avoid covering gameplay—cleaning the puddle automatically queues the next wave.