Skip to content

Exploration mode on doom-player with image debug support#13

Open
ruifigueira wants to merge 5 commits into
cloudflare:agentic-doomfrom
ruifigueira:doom-player
Open

Exploration mode on doom-player with image debug support#13
ruifigueira wants to merge 5 commits into
cloudflare:agentic-doomfrom
ruifigueira:doom-player

Conversation

@ruifigueira
Copy link
Copy Markdown

@ruifigueira ruifigueira commented May 23, 2026

  • Added optional Workers AI binding support for bot scripts.
  • Exposed optional ai.run(...) inside the bot sandbox when env.AI exists.
  • Added bot.screenshot() so bots can capture the current game frame.
  • Added bot.logImage(...) and a UI image panel for visual bot debugging.
  • Added bot.encodePng(...) for bot-generated debug maps.
  • Added an AI vision-navigation example using Workers AI.
  • Added Explore: memory-map (no LLM) bot example.
  • Improved exploration behavior with:
    • high-res memory map and cropped debug images
    • raycast/thing/door/switch/exit painting
    • exploration-first target selection
    • door/use cooldown to avoid open-close toggling
    • post-use forward commit to handle stale door state
    • safer wall/corner avoidance
    • avoidance bearing lock to reduce micro-rotation
    • detailed per-tick debug logs
  • Documented get_state staleness expectations.

Non-LLM exploration mode keeps an internal map from its raycasts / state, and it logs it once in a while, see column on the right:

image

Example of internal map with raycast / state:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant