Tap, click, or press a key on the canvas to start browser audio.
# Menu Pause Overlay

A small game-flow and state-machine example demonstrating title, playing, paused, and game-over states with bitmap text, centered menu labels, keyboard navigation, and an overlay drawn into the CPU pixel buffer.

Controls:

- Arrow Up / Arrow Down or Physical W / S: move menu selection.
- Enter or Space: activate the selected menu item.
- Escape: pause while playing, resume while paused, or return to the title from game over.
- Arrow keys or Physical W / A / S / D: move the player square while playing.
- Quit from a menu exits the app.

Collect gems before the timer runs out. The pause screen keeps the current playfield visible and draws a dark patterned overlay with menu text on top.