I'll build a complete zombie shooter game with progressive upgrades, particles, screen shake, and polished controls. Let me start by examining the project structure.
Now I'll build the full game. Let me create the directory structure and all game files.
Now let me create the main game engine - this is the heart of the game:
Let me fix those TypeScript issues:
Now let me create the React components and update the App:
Now the main App with all screens and UI:
Let me fix the game instance communication between components:
Now update the index.html title and CSS:
Let me try building the project to check for errors:
The build succeeded! Let me now review the game and make a few improvements to ensure it's polished. Let me also check that touch controls work well and add some missing features:
Let me add a wave announcement feature to make the game feel more polished:
Let me add a wave announcement and also fix a few subtle issues I noticed:
Let me also add a welcome wave announcement when the game starts:
Let me make wave announcements last longer so they're more visible:
Now update the wave announcements to use larger, more prominent text:
Let me also make the level-up text more visible:
Now let me build and verify everything compiles:
Build successful. Let me verify the game handles window resizing and add a final improvement to the game canvas sizing:
Let me do the final build:
The build succeeded! Here's a complete summary of the zombie shooter game I've built:
🧟 Zombie Outbreak — Game Summary
Files Created/Modified
| File | Purpose |
|---|
src/game/types.ts | Game types, weapon definitions, upgrade definitions, color theme |
src/game/entities.ts | Entity classes — Zombie, Bullet, Particle, Pickup + factory functions |
src/game/Game.ts | Main game engine — game loop, physics, AI, rendering, audio, input |
src/components/GameCanvas.tsx | React wrapper for the HTML5 Canvas |
src/App.tsx | Main app with all screen overlays (start, pause, upgrade, game over) |
src/index.css | Global styles — fullscreen, no scroll, no user-select |
index.html | Updated title to "Zombie Outbreak" |
Game Features
Core Loop — Kill zombies → earn XP → level up → choose upgrade → harder waves
Controls
- Keyboard: WASD/Arrow keys to move, mouse to aim/shoot, P/ESC to pause, R/Enter to restart
- Touch: Left side drag to move, right side tap to shoot
- Mobile: Responsive canvas, touch-action disabled
Juicy Feedback
- Screen shake on zombie hits, kills, and damage taken
- Particle explosions on zombie death (green blood splatter)
- Muzzle flash and bullet trails
- Floating XP text and level-up announcements
- Wave announcements with center-screen text
- Procedural audio via Web Audio API (different sounds per weapon type)
Weapons (4 unlockable)
- Pistol (starter) — balanced
- Shotgun — spread shot, high knockback
- SMG — high fire rate, auto-fire
- Rifle — high damage, pierce, long range
Upgrades (choice of 3 per level)
- Damage, Fire Rate, Move Speed, Max Health, Bullet Speed, Pierce, Accuracy, Medkit
Progression
- Zombies get faster, tougher, and more numerous each wave
- New zombie types: Normal → Fast → Tank → Swarm
- New weapons unlock every 3 levels
- XP scales exponentially per level
Visual Theme — Dark cyberpunk/grunge with neon accents, grid floor, glow effects, custom-drawn characters
Performance — Canvas 2D rendering with requestAnimationFrame, delta-time physics, FPS counter, object pooling-friendly design
Files built: src/game/types.ts, src/game/entities.ts, src/game/Game.ts, src/components/GameCanvas.tsx, src/App.tsx, index.html, src/index.css