# Shootout

**Shootout** is the shared-display half of a bright multiplayer penalty shootout game. Open the viewer on a television, projector, signage screen, laptop, or tablet, then join with one or more phones at `/shootout-c/` in the same RCWeb room.

![icon](pwa-512x512.png "Shootout App Icon")

## How to play

1. Open `/shootout/?r=<room>` on the shared display.
2. Scan the QR code or open `/shootout-c/?r=<room>` on each player's phone.
3. Each phone joins the turn queue. The active player taps or drags in the goal to choose an aim point.
4. A five-second countdown starts with the target still adjustable.
5. At zero, the ball flies toward the chosen spot and the AI goalkeeper attempts a save.
6. Goals, saves, and shots wide are recorded per player before play passes to the next connected player.

## Features

- One player takes each turn while the others wait.
- Supports many players with automatic reconnect.
- Five-second synchronized countdown with live aim updates.
- Animated goalkeeper dives, slides and catches, plus a spinning ball.
- Large-to-small ball flight animation with simple position-aware goalkeeper AI.
- Per-player score table for goals, saves, and misses.
- Landscape and portrait shared-display layouts.
- Lean-paint styling for older or low-powered signage browsers.
- Stadium sound effects, spoken reactions and applause.

## Screenshots

![ready state](screenshot01.png)

![shot result](screenshot02.png)

![second shot result](screenshot03.png)
