# RCWeb Bomberman Controller

The **Bomberman Controller** app (`app/bomberman-c`) is the phone companion for `app/bomberman`. Each connected phone owns one player and keeps working after death by switching the action button from bomb placement to ghost hazards.

![icon](pwa-512x512.png "Bomberman Controller Icon")

## What it does

- **Simple input model**: Four directional buttons drive movement and one large action button places bombs or ghost hazards.
- **Per-player feedback**: The controller receives targeted updates for player name, mode, score, wins, blast range, available bombs, and cooldown state.
- **Fast room joining**: It is designed to be opened from the QR code on the main `bomberman` screen, automatically joining the same RCWeb room.

## How it works

- **Thin controller, smart viewer**: The controller only sends movement direction changes, join presence pings, and action presses to the `bomberman` viewer.
- **Targeted UI updates**: The viewer sends back `assignPlayer`, `updateState`, and `showPulse` calls addressed directly to the matching `rc.client`.
