I'll build a polished Smash-style platform fighter with two distinct characters, a Battlefield layout, full combat mechanics (tilts, aerials, specials, grabs, shields, knockback %), and a CPU opponent. Let me first look at the project setup.
Tailwind v4 with a Vite build. I'll install lucide-react for icons and set up the HTML shell with fonts in parallel.
Now the game foundation. First, the shared types and the character/stage data (move tables for both fighters).
Data layer done. Next: keyboard input handling (with the requested key mapping) and the WebAudio synth for sound effects.
Now the particle/FX system and the projectile class.
The lint error is expected — fighter.ts doesn't exist yet. Now creating the heart of the game: the fighter state machine (movement, jumps, attacks, specials, shields, rolls, grabs, knockback physics).
Fixing the reported issues — the switch narrowing error and the unused param. Let me check line 733 first.
The fighter fixes landed; only the pending ./game module error remains. Adding the ringAt helper to fx.ts with proper context.
fx helper added. Now the CPU brain — an AI controller that approaches, spaces, attacks, shields, edge-guards and recovers when knocked off stage.
Now the game orchestrator — fixed-timestep loop, hit resolution, projectiles, quake waves, KOs, stocks, countdown, slow-mo, and match flow.
Now updating fighter.ts to support the game API — projectileDir, lastHitBy tracking, and a cleaner physics skip for grabbed/respawn states.
Now the takeHit signature update for projectile-direction support and attacker tracking.
Only the renderer remains. Creating render.ts — the full visual layer: dusk battlefield backdrop, the floating island stage, animated character rigs, projectiles, particles, and the Smash-style percent/stocks HUD.
Renderer built. Now cleaning a leftover dead-code block, then building the React shell (title screen, pause, game over overlays) and themed CSS.
Now the React shell with the title screen, pause menu, and game-over overlay.
All files are in place. Let me run the build to verify everything compiles.
Build succeeds on the first pass. Since I can't playtest directly, let me do a critical gameplay-logic review pass. I found two real issues while re-reading: knockback downward velocity gets hard-clamped to terminal fall speed the very first frame (which would neuter spikes/meteors), and the CPU's edgeguard can fling itself off stage with its lunge special. Fixing both.
A few more polish fixes from review: respawning should clear the last-attacker tag (so self-destructs don't credit the wrong player), and dead projectiles should be removed immediately instead of lingering.
Fixing a typo I introduced (grabVictictim) and completing the projectile cleanup.
All errors cleared. Two final gameplay-feel fixes: shield/defensive states should ground-friction to a stop (not glide), and non-lunge attacks should kill most ground momentum.
Rebuilding to confirm everything is clean.
SKYBOUND CLASH is built and compiling — a full Smash-style platform fighter on a golden-hour Battlefield arena. Here's what's in the game:
The Match
- You play KAZE — a fast, light blade fighter with a flowing scarf and katana swooshes
- CPU plays BASTION — a slow, heavy ember golem with devastating fists and a glowing core that burns brighter as his damage rises
- 3 stocks each, classic percent-based knockback — the higher your %, the further you fly. Blast off any edge of the screen to lose a stock (with K.O. bursts, Star K.O.s, slow-mo, and screen shake)
Controls (exactly as requested)
| Key | Action |
|---|
| A / D | Move (double-tap also dashes) |
| W | Jump, double jump |
| S | Crouch, drop through platforms, fast-fall |
| O | Normals — jab, tilts, dash attack; in air: nair/fair/uair/dair (aim with WASD) |
| I | Specials — Wind Cutter projectile, Gale Dash, Rising Gale recovery, Mirror Veil counter |
| U | Grab → press O to pummel, a direction to throw (4 throws) |
| Space | Shield (depletes & breaks!) · +A/D to roll · +S to spot-dodge · in air: air-dodge |
| hold ; | Toggle-on dashing |
| Esc / M | Pause / mute |
Under the hood
- Real Smash mechanics: jumpsquat with jump-cancel (W+O = up-tilt), hitstun/hitlag freeze frames, tumbling with ground & wall bounces, weight-based knockback scaling, shield HP with shield-break stun, intangibility frames, platform drop-through, one-way platforms
- A thinking CPU: it spaces with projectiles, mixes jabs/tilts/grabs, jumps up to chase you with uairs, shields reactively, edge-guards, mashes out of grabs, and genuinely recovers with double jump + up-special when launched off stage
- Presentation: entirely vector-drawn canvas art — dusk sky with drifting clouds and floating islands, a waterfall under the stage, grass swaying in the wind, ambient petals and embers, squash-and-stretch character rigs with attack arcs, motion trails, and a synthesized sound engine (no audio assets — every whoosh, thwack, and K.O. boom is WebAudio)
Press Enter on the title screen and take Bastion's three stocks. Good luck — he's heavier than he looks.
Files built: index.html, src/game/types.ts, src/game/data.ts, src/game/input.ts, src/game/audio.ts, src/game/fx.ts, src/game/projectile.ts, src/game/fighter.ts, src/game/cpu.ts, src/game/game.ts, src/game/render.ts, src/index.css, src/App.tsx