First-person shooter in one HTML file
What it tests: Pointer lock and mouse look, hit detection by raycast or projectiles, enemy AI with patrol, chase and line of sight, two distinct weapons, menus, and a start-up self-diagnosis.
Prompt length: 1,292 characters, roughly 370 tokens (estimate).
Erstelle einen spielbaren First-Person-Shooter als eigenständige HTML-Datei mit HTML, CSS und JavaScript. Das Spiel soll enthalten: - Echte First-Person-Steuerung mit Maus-Look und WASD - Eine kleine, zusammenhängende 3D-Map mit …
The source has no licence that allows copying, so only a short excerpt is shown here. The full prompt is one click away at the source.
How to grade it
Main menu, options (sensitivity, difficulty), pause with resume and restart; WASD and mouse look; several connected rooms with cover; enemies patrol, chase, check line of sight and shoot; ammo, reload, health and hit feedback; two weapons that feel different; a win condition; the self-diagnosis reports pointer lock, rendering and enemy spawn.
Scorecard tick what the model got right: 0/8
Runs in your browser; nothing is saved or sent.
Where models usually fail
Enemies that only stand around (explicitly ruled out); shooting through walls; pointer lock that never releases; a self-diagnosis that just prints 'OK'.
Running it
Run it one-shot and judge the first answer. Open the result exactly as delivered (double-click for HTML). Give the model a large output budget: long specs get cut off on small context settings.
Source
- Author
- Arnie (GitHub @Arnie936)
- From
- Arnie936 / llm-prompting-tests
- Exact file or post
- https://github.com/Arnie936/llm-prompting-tests/blob/03445cf074852ec5535ece9d123bdff442e63ef5/README.md#3-first-person-shooter-in-html
- Licence
- No license file (all rights reserved)
- How we use it
- Excerpt only: open the full prompt at the source
Testing a local model? Check first whether it fits your hardware with Can I run this LLM?