oneshotlm
Compare all models on this prompt →

Wolfenstein raycaster · qwen3.5-plus-02-15

Output generated Cost / run $0.0182 Runtime 129.7s

Prompt for this run

Build a first-person raycasting maze shooter on a canvas in the Wolfenstein 3D style: WASD movement and arrow or mouse turning through a textured grid maze with enemies you can shoot. Procedural textures only, no external assets.

⛨ sandboxed Open in new tab ↗

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelqwen3.5-plus-02-15
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime129.7s
tokens in12k
tokens out9.6k
cached0
cost / run$0.0182
Transcript · 4 messages
user

Build a first-person raycasting maze shooter on a canvas in the Wolfenstein 3D style: WASD movement and arrow or mouse turning through a textured grid maze with enemies you can shoot. Procedural textures only, no external assets.

assistant
thinking
The user wants me to build a Wolfenstein 3D-style raycasting maze shooter as a single-page web app. This is a classic first-person pseudo-3D game that uses raycasting to render a 2D grid map as a 3D view.

Key features needed:
1. Raycasting engine for pseudo-3D rendering
2. WASD movement controls
3. Arrow keys or mouse for turning/looking
4. Textured grid maze (procedural textures)
5. Enemies that can be shot
6. Shooting mechanics
7. All in one self-contained HTML file with inline CSS and JS

Let me create a comprehensive implementation:

1. HTML structure with canvas
2. CSS for styling
3. JavaScript for:
   - Game loop
   - Raycasting engine (DDA algorithm)
   - Player movement and rotation
   - Procedural texture generation
   - Enemy AI and rendering
   - Shooting mechanics
   - Collision detection
   - Mini-map (optional but nice)

Let me write this out:
→ write /tmp/ws/index.html (34037 bytes)
toolResult

Successfully wrote 34037 bytes to /tmp/ws/index.html

assistant
thinking
The file has been created successfully. Let me verify it exists and provide a summary.

Done! I've created a complete Wolfenstein 3D-style raycasting maze shooter in `/tmp/ws/index.html`. **Features:** - **WASD movement** with collision detection - **Arrow keys or mouse** for turning (click to lock mouse) - **Procedural textures**: brick walls, metal panels, checkered floor, starry ceiling - **8 alien enemies** with AI that chase and attack you - **Shooting mechanics** with ammo, muzzle flash, and hit effects - **Particle effects** when enemies are hit - **Minimap** showing walls, enemies, and player position/direction - **HUD** displaying health, enemy count, score, and ammo - **Win/lose conditions** with game over screens **Controls:** - `W/A/S/D` - Move forward/strafe left/strafe right/backward - `←/→` or mouse - Turn left/right - `Space` or left click - Shoot - Click canvas to enable mouse look Open `index.html` in a browser to play!