Action / melee combat
Three-Chapter 3D Wuxia Action Game
The Prompt
Build a third-person 3D wuxia action game in ONE self-contained HTML file (inline CSS/JS). Three.js is the only runtime dependency; no external models, textures or audio files. The game has exactly three chapters and ends. Chapter structure: - Chapter 1: golden grassland, bandit camps, one mini-boss. Teach movement, light strings and guard. - Chapter 2: bamboo forest at night in rain, patrols and ambushes. Teach deflect, dodge invulnerability frames and target priority. - Chapter 3: a lantern-lit long street, duels and a final boss. Test everything at once. - Each chapter closes on a named boss with a distinct silhouette and a one-line epithet: the Broken Blade, the Night Owl, the Cold Mountain Guest. Combat state machine: - Player states: idle, run, light attack chain, heavy attack, guard, deflect window, dodge, hitstun, execution. Transitions must be explicit; never nest attack logic inside render code. - Guard absorbs chip damage. A deflect pressed within 120ms of impact negates damage and adds posture damage to the attacker. Missing the window by more than 120ms is a normal block. - Dodge has 8-14 invulnerability frames; tune it so late dodges are punished and early dodges still work. - Posture: every enemy has a posture bar that fills from deflects and heavy attacks. A full bar enables an execution prompt. Posture must decay when the enemy disengages. Enemy archetypes: - Four readable types: archer, shield bearer, spearman, assassin. Each needs a different answer and a clear telegraph colour. - Encounters are data-driven: spawn tables with positions, patrol routes and aggression budgets. No encounter should be hard-coded in the update loop. - Bosses remix the four archetypes rather than adding new rules. A boss should feel like an exam, not a new syllabus. Camera and presentation: - Lock-on camera with soft target switching, a shoulder offset, and collision-aware pull-in so bamboo and walls do not occlude the fight. - Procedural environments: grass, bamboo, old-town roofs, rain and lanterns. Weather must be a toggleable system, not a baked scene. - One colour script per chapter: gold, blue-green, warm red. Keep UI in a single ink-and-paper palette. Audio and platform: - No audio files. Synthesize sword hits, deflections, footsteps, rain and wind with WebAudio, and mix ducking so combat reads clearly. - Desktop: WASD, mouse camera, light and heavy attack, guard, dodge, execute. Mobile: on-screen attack, guard and dodge with generous targets. - Respect reduced motion by removing camera shake and hit-stop while keeping timing windows unchanged. Testing: - Write 30 headless checks: attack chain cancels, deflect window boundaries, dodge invulnerability duration, posture decay, boss phase transitions, and every chapter end trigger. - Run a no-input simulation and confirm the player cannot soft-lock in any chapter. Deliver in stages: movement and camera, then one enemy type, then the full combat state machine, then all four archetypes, then three chapters, then bosses. Print the timing table and the test report at the end.
What This Prompt Produces
Long Wind is the reference: three chapters set in grassland, bamboo forest and a lantern-lit street, four enemy archetypes, deflect and posture-execution combat, and three named bosses — roughly 38,000 lines written by Claude Opus 5.5 in Claude Code at about 28 hours wall clock.
Modification Tips
- Write the combat state machine before the content. Wuxia combat fails when attack logic lives inside the render loop.
- Put the deflect window in a table and test its boundaries. 120ms feels generous to read and brutal to implement accidentally.
- Reuse four enemy archetypes across all three chapters. Bosses should remix them, not introduce a fifth rule set.
- Build the camera collision pull-in early. A good fight hidden behind bamboo reads as a bug.
The Game This Prompt Produced
Want to try it? Open Claude, paste the prompt, and you'll have a playable game in minutes. When you're happy with the result, submit it to Daily AI Games.