Add placeholder backpack and inventory UI

This commit is contained in:
Peter Stockings
2026-01-04 20:02:11 +11:00
parent 2ca51945fc
commit f67f488764
4 changed files with 229 additions and 7 deletions

View File

@@ -254,10 +254,13 @@ export class DungeonRenderer {
}
if (!isVis) continue;
const enemyType = a.type as keyof typeof GAME_CONFIG.enemies;
if (!GAME_CONFIG.enemies[enemyType]) continue;
activeEnemyIds.add(a.id);
let sprite = this.enemySprites.get(a.id);
const textureKey = a.type === "bat" ? "bat" : "rat";
const textureKey = a.type || "rat";
if (!sprite) {
sprite = this.scene.add.sprite(0, 0, textureKey, 0);