Add placeholder backpack and inventory UI
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user