Skip to content

Local Pong

Loading…

Local multiplayer Pong with player-scoped keyboard input and score kept as game state, not entity data.

Controls: Player 1 W/S, Player 2 Arrow Up/Down, R restart

Source: examples/local-pong

Exercises: collision, input, math, motion, render-canvas2d, tick, transform.