I'll build a polished top-down zombie extraction shooter. Let me start by exploring the project structure.
Let me check the existing setup files.
Now I have a clear picture. Let me build the game. First, I'll update the HTML title and set up the CSS for a full-screen game canvas.
Now let me build the game engine. I'll structure it into modules: types, the core game engine (canvas-based), and the React UI wrapper. Let me start with the types and core utilities.
Now the core game engine. This is the heart of the game — a canvas-based engine with fixed timestep, entities, particles, screen shake, and input handling.
Minor unused variable. Let me fix it by actually using it (to hide the mouse cursor detection).
Now let me create the touch joystick component and the high-score storage helper.
Now the virtual joystick component for touch controls:
Now the main App component that ties everything together with the UI states (start, playing, paused, game over, extracted), HUD, and high-score table.
Now let me build the project to confirm everything compiles.
The build succeeds. Let me review one subtle issue: when the game is over, the engine sets paused = true but keeps running = true, so the canvas keeps rendering the last frame under the overlay (good for a frozen backdrop). However, on restart, the touch joysticks only mount during state === "playing", which is correct.
Let me verify the game-over rendering behavior stops the loop properly and check one edge case — the reload button position overlapping the right joystick zone. Let me also double check the mobile pause button visibility. The build is clean, so let me do a final review of the key interaction flow in the engine's game-over to ensure it doesn't get stuck.
The logic looks correct. When the player restarts via start(), resetState() is called and the loop restarts cleanly. The reload button is at bottom-40 right-6, above the FIRE joystick base area, which is fine since joysticks appear on first touch anywhere in their half.
The game is complete and builds successfully. Here's what I built:
DEAD ZONE — Top-Down Zombie Extraction Shooter
Core loop (fun in <10s): You spawn in the center of an arena with zombies immediately closing in. Shoot to survive, build kill combos for bonus points, and a 30-second countdown ticks toward the extraction pad opening. Once open, fight your way to the 🚁 pad and hold position to extract for a big score bonus.
Tight dual controls:
- Desktop: WASD/arrows to move, mouse to aim, click/hold to auto-fire, R to reload, Esc/P to pause.
- Mobile: Floating dual virtual joysticks — left stick moves, right stick aims and fires simultaneously — plus a dedicated reload button. The engine auto-detects touch devices.
Juicy feedback:
- Screen shake on firing, hits, kills, and extraction opening
- Particle systems: muzzle flashes, blood spray, gib explosions, ejecting shell casings, movement dust, and pickup bursts
- Additive-glow bullets with tracer trails, hit-flash on enemies, knockback physics
- Floating damage/score/combo text, persistent blood decals, damage screen-flash + invulnerability blink
- Pulsing extraction pad with off-screen directional arrows
Systems:
- Score with survival trickle + combo multipliers; three enemy types (walker, runner, brute) with escalating waves
- Ammo/reload system with visual bullet magazine, ammo & health pickups
- Start screen, pause, game-over, and win (extracted) states — all with instant restart
- Persistent local top-5 high-score table with "New Best" celebration
Performance: Fixed 60Hz timestep with interpolated rendering, capped DPR, throttled HUD updates (React only re-renders ~20fps while canvas runs at 60fps), particle pooling caps, and cheap spatial separation — keeping it smooth on both desktop and mobile.
The cohesive dark neon-military theme (red danger accents, cyan player, amber ammo, emerald extraction) ties it all together with a flickering title and vignette.
Files built: index.html, src/index.css, src/game/types.ts, src/game/engine.ts, src/game/storage.ts, src/game/Joystick.tsx, src/App.tsx