Skip to content

fix: resolve minimap blank and Phaser overlay issues in worker mode#1079

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-game-loop-worker-4hHmR
Jan 27, 2026
Merged

fix: resolve minimap blank and Phaser overlay issues in worker mode#1079
braedonsaunders merged 1 commit into
mainfrom
claude/fix-game-loop-worker-4hHmR

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

Root causes identified and fixed:

  1. Phaser overlay auto-start issue: The OverlayScene was auto-starting before the eventBus was passed via scene.start(). Fixed by setting active: false in the scene constructor to prevent auto-start.

  2. RenderStateAdapter improvements:

    • Fixed ResourceTransformAdapter ignoring z coordinate from data
    • Added isReady(), getUpdateCount(), and getEntityCounts() methods for debugging adapter state
    • Added try-catch error handling around updateFromRenderState
    • Added logging when adapter becomes ready with entities
    • Reset ready state and update count in clear() method
  3. Minimap debugging: Added periodic logging to check adapter state until entities are found, helping diagnose data flow issues.

  4. OverlayScene logging: Added comprehensive logging in init(), create(), and setupEventListeners() to trace initialization flow.

https://claude.ai/code/session_019YKLEhajXF6s79S7Skr49F

Root causes identified and fixed:

1. **Phaser overlay auto-start issue**: The OverlayScene was auto-starting
   before the eventBus was passed via scene.start(). Fixed by setting
   `active: false` in the scene constructor to prevent auto-start.

2. **RenderStateAdapter improvements**:
   - Fixed ResourceTransformAdapter ignoring z coordinate from data
   - Added `isReady()`, `getUpdateCount()`, and `getEntityCounts()` methods
     for debugging adapter state
   - Added try-catch error handling around updateFromRenderState
   - Added logging when adapter becomes ready with entities
   - Reset ready state and update count in clear() method

3. **Minimap debugging**: Added periodic logging to check adapter state
   until entities are found, helping diagnose data flow issues.

4. **OverlayScene logging**: Added comprehensive logging in init(),
   create(), and setupEventListeners() to trace initialization flow.

https://claude.ai/code/session_019YKLEhajXF6s79S7Skr49F
@braedonsaunders braedonsaunders merged commit 82bb9ef into main Jan 27, 2026
4 checks passed
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.

2 participants