I'll build a polished canvas-based game about a parasitic creature that possesses enemies. Let me first look at the project structure.
Now I'll build the game. First, the core engine — a parasitic creature that possesses enemies with a decaying host timer. This is a large canvas-based engine for smooth 60fps.
Let me fix the unused variables.
All type errors resolved. Now let me build the React UI with start screen, pause, game-over, high scores, and touch controls.
Now the main App with canvas, keyboard/touch controls, and all screens.
Now update the page title and build.
Build succeeded. Let me add global styles to prevent mobile scroll/overscroll and ensure full-screen layout.
I've built PARASITE, a complete, polished possession-combat arena game. It builds cleanly. Here's what's included:
Core loop (fun in the first 10 seconds)
- You start as a fragile glowing creature surrounded by weak enemies — dash into one to possess it instantly, then rip apart the rest.
- Every host dissolves over time from your acid. Stronger hosts (brutes) deal huge damage but rot fast (~6s); weak grunts last ~15s. This forces the constant "possess → rampage → jump to a new body" rhythm.
- When a host expires it explodes in an acid burst damaging nearby enemies; if a host is killed by damage you're ejected vulnerable and must re-possess fast.
Host archetypes
- Grunt (blob, melee, durable control), Zipper (fast triangle), Shooter (ranged diamond), Brute (heavy hexagon, big knockback) — each with distinct shape, color, stats, and decay speed.
Juicy feedback
- Screen shake, hit-stop/slow-mo on kills, screen flashes, additive particle bursts, expanding glow rings, floating score/combo text, dissolving-host cracks, blob wobble animations, motion trails, vignette, and an animated grid background.
Systems
- Start screen with theme + controls + high-score preview
- Score system with escalating combo multipliers
- Wave spawning that scales difficulty
- Pause (Esc/P or button) and game-over with instant retry
- Local high-score table (localStorage, top 8, name entry on new records)
Controls
- Keyboard: WASD/Arrows move, Space/J/Enter dash-possess & attack, Esc/P pause
- Touch: floating left-half virtual joystick + large ACT button + pause button
Performance
- Single canvas with
requestAnimationFrame, delta-time clamping, capped DPR (≤2), pooled particle arrays, and shadowBlur used sparingly — designed to hold 60fps on desktop and mobile.
The game is architected across src/game/Game.ts (engine), src/App.tsx (screens/input), src/components/Joystick.tsx (touch), and src/game/useHighScores.ts (persistence).
Files built: src/game/Game.ts, src/game/useHighScores.ts, src/components/Joystick.tsx, src/App.tsx, index.html, src/index.css