Build a complete Zombie Survival game from scratch using TypeScript and HTML5 Canvas.
Difficulty: Advanced Episodes: 7 Time: ~1h 45min total Prerequisites: Racing
A top-down survival game where zombies swarm from all directions. Shoot them, build barricades, and survive as many nights as possible. Scavenge resources between waves.
- Horde AI with flocking/swarming behavior
- Barricade placement and destruction mechanics
- Resource management (ammo, health, materials)
- Day/night cycle affecting gameplay
- Spatial partitioning for many-entity collision
| # | Title | Time | What You'll Build |
|---|---|---|---|
| 1 | Project Setup & Arena | ~15min | Draw the arena, player, and basic movement |
| 2 | Shooting Mechanics | ~15min | Aim and shoot at zombies with limited ammo |
| 3 | Zombie Spawning & AI | ~15min | Zombies spawn at edges and swarm toward the player |
| 4 | Barricades & Building | ~15min | Place barricades that slow and block zombies |
| 5 | Resource Management | ~15min | Ammo crates, health packs, building materials |
| 6 | Day/Night Waves | ~15min | Zombies attack at night, scavenge during the day |
| 7 | Upgrades & Polish | ~15min | Weapon upgrades, wave counter, death screen |
The complete source code is at src/games/zombie-survival/.
Continue to City Builder — where you'll learn grid placement, resource economies, and simulation loops →