FPS / tactical shooter
Browser Tactical FPS With Squad AI and Ballistics
Tested with ChatGPT · produced Blackline: Strike
The Prompt
Build a first-person tactical shooter that runs in a browser tab, in ONE self-contained HTML file (inline CSS/JS, WebGL2). No external models, textures or audio: all geometry, materials, animation and sound are generated in code. The scope is one market street and a score-attack run, not a campaign. Match structure: - The run starts immediately with no menu. The player deploys at one end of a 150-200 metre market street with stalls, awnings, sheet-metal walls, crates and two enterable shop interiors. - Enemy squads patrol in formations of four. Two squads are active at once. Kills and survival time feed one operation score; the run ends at zero health and a Field Report shows eliminations, time survived and accuracy. Squad AI: - Implement a shared squad state machine: PATROL, CONTACT, SUPPRESS, FLANK, REGROUP. When one soldier spots the player, the squad calls it out and transitions together. - One soldier suppresses from cover while another flanks on a navmesh or waypoint graph. Never let every enemy rush the player at once, and never let them stand in the open trading shots. - Bots need reaction time, burst discipline and a reload state. Difficulty scales reaction time and accuracy, not health. Ballistics and cover: - Projectiles with travel time and gravity, no hitscan. Report the drop curve per weapon. - Thin cover (sheet metal, stalls) reduces damage and can be penetrated; thick cover (stone, engines) blocks fully. Show impact decals and a material-specific hit sound. - Three weapons: an assault rifle with auto/burst/semi and a learnable recoil pattern, an SMG with faster fire and wider spread, and a pistol with high accuracy and low ammo. Reload, weapon swap and fire-mode switch on their own keys. - No health pickups. Health regenerates after 4 seconds out of damage, which makes breaking line of sight the core defensive skill. Scoring: - Elimination 500, headshot +150, survival +10 per second. Show a live score breakdown and submit the final score to a local leaderboard. Presentation and platform: - Procedural market street with one time of day (late afternoon), warm sun, long shadows, dust motes and a readable silhouette language: enemies in dark fatigues against warm walls. - Tactical HUD: health, ammo, fire mode, compass, hit markers and a directional damage indicator. Pause menu with graphics presets and a resolution scaler. - Desktop: pointer lock, WASD, sprint, crouch, prone, lean left/right, ADS. Mobile: left stick, drag-to-aim, large fire/aim/jump/reload/crouch/sprint buttons. - Target 60fps on a mid-range laptop. Pool projectiles, batch materials, cull interiors outside the view cone and drop render resolution automatically when frame time exceeds 20ms. Testing: - Run 20 headless matches with the player idle and 20 with random input. Report: time to first contact, squad wipes, average engagement distance, bots stuck on geometry, and any frame over 33ms. - Print the weapon table, squad transition table and damage falloff numbers. Deliver in stages: street and movement, then one weapon, then one squad, then ballistics and cover, then scoring, then mobile.
What This Prompt Produces
Blackline: Strike is the reference: a procedural market street, two four-man squads with callouts and flanking, bullet drop through thin cover, regenerating health and a 500/150/10 score model, built with GPT-5 and Claude Opus 4.6. The squad state machine is what stops it feeling like a shooting gallery.
Modification Tips
- Make contact a squad event, not a per-enemy event. Callouts and shared transitions are what make four bots feel like a team.
- Use regenerating health with a delay. It forces players to move and rewards map knowledge instead of medkit hoarding.
- Penetrate thin cover but not thick cover, and make the difference audible. Players learn material rules through sound faster than through damage numbers.
- Report time to first contact. A tactical FPS that starts with 30 quiet seconds feels broken in a browser tab.
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.