Skip to content
Learn // examples

Examples

Patterns taken from real games built on GameRelay, each with the code that does it and why it's done that way. For a game from scratch, start with the starters; for the full API, see the docs.

From Chess

Two-player chess: quick match or a room code, full rules, draw offers, rematches and chat. About 900 lines in one HTML file. Play chess

From racecar

An arcade street racer for up to 8 players: lobbies, AI rivals, traffic and takedowns. Open source, on the public SDK only. Source on GitHub How its online play works

Built a game on GameRelay with a pattern worth sharing? Tell us.