oneshotlm
Compare all models on this prompt →

Wolfenstein raycaster · qwen3-vl-30b-a3b-instruct

Output saved · Timed out Cost / run $0.0247 Runtime 900.1s

The 15-minute session limit cut this run off. The output is the HTML saved at that point.

Prompt for this run

Build a playable first-person raycasting maze shooter on a canvas in a Wolfenstein-inspired style. Use HTML, CSS, and JavaScript as needed. Write it to `index.html` in the current working directory using your file tools. Inline your own CSS and JavaScript. Do not use external assets, CDNs, or network requests. No third-party libraries are provided. Required behavior: - Render a textured grid maze through a raycaster, with perspective wall heights and visible enemies. Generate textures procedurally; do not load external assets. - Use W/S to move forward/backward, A/D to strafe, Left/Right arrows to turn, and Space to shoot. Display the controls. Mouse turning is optional and must not be required. - Use solid wall collision and a small level with a reachable exit and at least three enemies. Enemies must be occluded by walls; shots cannot damage an enemy through a wall. - Give the player health. Enemies can damage the player under a clear attack rule. Show health and remaining enemy count; zero health causes Game Over. - Defeating all enemies unlocks the exit; reaching it shows a win state. Provide Restart to restore the level, player, enemies, and health. Verify: Test movement and turning near the starting area, check collision against a nearby wall, and fire to inspect weapon feedback. Sample the scene for stable wall rendering, then use Restart and check the initial viewpoint and health.

⛨ 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-vl-30b-a3b-instruct
vendorQwen
harnesspi 0.87.1 · browser iteration
generated2026-10-16

METRICS

runtime900.1s
tokens in84k
tokens out20k
cached0
cost / run$0.0247
Transcript · 13 messages
system

user

Build a playable first-person raycasting maze shooter on a canvas in a Wolfenstein-inspired style. Use HTML, CSS, and JavaScript as needed. Write it to `index.html` in the current working directory using your file tools. Inline your own CSS and JavaScript. Do not use external assets, CDNs, or network requests. No third-party libraries are provided. Required behavior: - Render a textured grid maze through a raycaster, with perspective wall heights and visible enemies. Generate textures procedurally; do not load external assets. - Use W/S to move forward/backward, A/D to strafe, Left/Right arrows to turn, and Space to shoot. Display the controls. Mouse turning is optional and must not be required. - Use solid wall collision and a small level with a reachable exit and at least three enemies. Enemies must be occluded by walls; shots cannot damage an enemy through a wall. - Give the player health. Enemies can damage the player under a clear attack rule. Show health and remaining enemy count; zero health causes Game Over. - Defeating all enemies unlocks the exit; reaching it shows a win state. Provide Restart to restore the level, player, enemies, and health. Verify: Test movement and turning near the starting area, check collision against a nearby wall, and fire to inspect weapon feedback. Sample the scene for stable wall rendering, then use Restart and check the initial viewpoint and health.

assistant

I'll create a first-person raycasting maze shooter in a single HTML file with inline CSS and JavaScript. The game will include all the requested features: raycasting rendering, enemy AI, health system, shooting mechanics, and a win condition.

→ write index.html (73697 bytes)
toolResult

Successfully wrote to index.html

assistant
→ browser {"action":"reload"}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Health: 100 | Enemies: 3\nControls: W/S - Move, A/D - Strafe, Left/Right - Turn, Space - Shoot","images":"attached"}

assistant
→ browser {"action":"inspect"}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing."],"dom":"Health: 100 | Enemies: 3\nControls: W/S - Move, A/D - Strafe, Left/Right - Turn, Space - Shoot","images":"attached"}

user

10 minutes have elapsed. At most 5 minutes remain. Finalize the output as soon as possible: save index.html now, fix only essential issues, and finish.

assistant

I need to fix the issue with the game not rendering properly. The problem is that the canvas is not being drawn to correctly. Let me fix the rendering code:

→ edit {"path":"index.html","edits":[{"oldText":" // Draw the scene\n function drawScene() {\n // Clear canvas\n
toolResult

No changes made to index.html. The replacement produced identical content. This might indicate an issue with special characters or the text not existing as expected.

assistant

I need to fix the rendering code. Let me try a different approach to ensure the canvas is properly drawn:

→ edit {"path":"index.html","edits":[{"oldText":" // Draw the scene\n function drawScene() {\n // Clear canvas\n
toolResult

No changes made to index.html. The replacement produced identical content. This might indicate an issue with special characters or the text not existing as expected.