Fix for bug where when switching levels the player would jump between entrance to exit locations

This commit is contained in:
Peter Stockings
2026-01-05 14:17:12 +11:00
parent d638d1a821
commit dba0f054db
3 changed files with 22 additions and 6 deletions

View File

@@ -333,7 +333,7 @@ export class GameScene extends Phaser.Scene {
this.cameras.main.setBounds(0, 0, this.world.width * TILE_SIZE, this.world.height * TILE_SIZE);
// Initialize Renderer for new floor
this.dungeonRenderer.initializeFloor(this.world);
this.dungeonRenderer.initializeFloor(this.world, this.playerId);
// Step until player turn
const enemyStep = stepUntilPlayerTurn(this.world, this.playerId, this.entityManager);