Build your own open-world city game
Pixelport: a city you can walk, drive, rob and run from, built from the server up in TypeScript.
This is how real online games and web backends are built: a server holds the world, clients send requests, a router sends each one to the right code, a game loop moves time forward, and the client only draws what the server says. The same shape runs shops, ride-hailing apps and multiplayer games.
About 1500 minutes across 20 stages. Skills: HTTP APIs, Routing, Game loops, State & saves, BFS pathfinding, Seeded randomness, Rate limiting, Clean architecture.
The guides are part of licode Club.
Stages
- Make the server answer GET /health, and say 404 for anything else.
- Turn a raw request line into method, path, query and body.
- Read the map: tiles, counts, and one tile at a time.
- Draw the city as text: the client's first screen.
- Let players join, with safe names and unique ids.
- Route patterns: /players/:id finds one player.
- Walk around the city, step by step, without walking through walls.
- Show the players on the map.
- Cars: list them, get in, get out.
- Drive: two tiles per step, on roads only.
- Spend money at shops.
- Missions: start one, reach the target, get paid.
- An event log of everything that happens.
- Crimes give wanted stars.
- The game loop: time moves forward.
- Police chase the most wanted, using BFS.
- Seeded randomness and coins on the street.
- Save the whole world and load it back.
- The HUD and the leaderboard: the client's text screens.
- Production hardening: rate limits, leaving, resets.