Skip to content

Roguelite / naval combat

Naval Roguelite With Fixed Firing Arcs

Tested with ChatGPT · produced Driftwake

The Prompt

Build a 3D naval roguelite in ONE self-contained HTML file (inline CSS/JS). Three.js is the only runtime library; models may be simple procedural primitives and textures may be code-generated. Runs last 5-12 minutes and must be fully playable on a phone.

The arc contract:
- The ship has three guns with fixed arcs: bow at 0 degrees, port and starboard broadsides at 90 degrees, stern at 180. You cannot aim outside those arcs.
- Turning the hull is therefore the aiming verb. Steering speed must be fast enough to be tactical and slow enough that commitment matters. Print the turn rate and the arc widths in the HUD debug panel.
- Shots are projectiles with travel time and a visible tracer, never hitscan. Enemies telegraph volleys 1.5 seconds ahead with a muzzle flash and an audio cue.
Enemies and bosses:
- Twenty-four normal enemy archetypes built from four behaviours: chaser, circler, sniper and rammer. Each must have a preferred side and range so the player reads the fight as geometry.
- Eight persistent warship bosses with distinct arc puzzles: one that only exposes a weak point to the stern, one that forces a broadside duel, one that splits into escorts. Bosses must be named and have a stated weakness in the encounter intro.
- One timed encounter (a leviathan or storm) where the goal is survival for a fixed duration rather than damage. No health bar on the clock.
- A final boss closes the campaign. Clearing twenty-four encounters unlocks an endless mode with escalating fleets and no story beats.
Surge and upgrades:
- Surge is a short acceleration burst that leaves an exploding wake with a damage hitbox behind the hull. It is both the dodge and the punish; one button must do both so the mechanic stays readable.
- After each encounter offer three upgrade cards from a seeded pool. Cards should bend the run toward broadside, ramming, speed or sustain builds. Show current synergies on the card screen.
Presentation:
- Low-poly but coherent: dark sea, readable ship silhouettes, a wake that persists and tells you where each ship has been, and a horizon fog that hides spawn pop-in.
- HUD: hull integrity, gun readiness per arc, Surge cooldown, encounter counter. Arc readiness must be visible at a glance.
- Desktop and mobile input: throttle and steer, fire the gun covering the cursor or tap side, Surge on Space or a thumb button.
Testing:
- Run 200 headless bot-vs-fleet simulations. Report average run length, encounters survived, builds that never win, and any boss with a win rate under 15% or over 85%.
- Verify no boss can be defeated without ever turning the hull; if one can, the arc constraint is not doing its job.
Deliver in stages: one ship and one enemy, then arcs and telegraphs, then the boss roster, then cards, then endless mode. Print the arc table, boss weakness table and simulation report at the end.

What This Prompt Produces

Driftwake is the reference: bow, broadside and stern guns that only cover their own arcs, eight persistent warship bosses, a timed Kraken and Endless Seas after twenty-four encounters, built with GPT-6 and Codex in Three.js. The fixed arcs turn positioning into the skill.

Modification Tips

  • Make turning the ship the aiming verb. If the player can point a turret anywhere, the naval fantasy disappears.
  • Give every boss a stated weakness and a side. Boss fights in an arc system are geometry puzzles, not damage races.
  • Use one button for dodge and damage. Surge works because it is both the escape and the punish.
  • Report boss win rates in simulation. A 95% or 5% boss is a broken encounter, not a difficulty setting.

The Game This Prompt Produced

Want to try it? Open ChatGPT, 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.