Controllers are read directly, and the two co-op ships can be told apart at a glance.
Controllers straight through the Gamepad API. An Xbox controller didn’t control anything. The game now reads navigator.getGamepads() itself instead of going through Phaser’s gamepad module: the first connected controller flies ship 1, the second ship 2, regardless of the browser’s index, and the assignment stays until a controller is disconnected.
- A short message appears at the bottom when a controller connects or disconnects. Browsers only expose a controller after the first button press while the window is open — the message shows whether the game has recognized it.
- Confirmed with a real Xbox 360 controller: it controls menus and ship.
Player colors. Each ship has its own color, right down to projectiles, muzzle flash, engine flame, laser, drones and the ring around the ship, with a label beneath every ship.