Rename tiles0 asset to dungeon

This commit is contained in:
Peter Stockings
2026-01-05 13:01:38 +11:00
parent e223bf4b40
commit ac86d612e2
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ export const GAME_CONFIG = {
{ key: "warrior", path: "assets/sprites/actors/player/warrior.png", frameConfig: { frameWidth: 12, frameHeight: 15 } },
{ key: "rat", path: "assets/sprites/actors/enemies/rat.png", frameConfig: { frameWidth: 16, frameHeight: 15 } },
{ key: "bat", path: "assets/sprites/actors/enemies/bat.png", frameConfig: { frameWidth: 15, frameHeight: 15 } },
{ key: "tiles0", path: "assets/tilesets/dungeon.png", frameConfig: { frameWidth: 16, frameHeight: 16 } },
{ key: "dungeon", path: "assets/tilesets/dungeon.png", frameConfig: { frameWidth: 16, frameHeight: 16 } },
],
images: [
{ key: "splash_bg", path: "assets/ui/splash_bg.png" }

View File

@@ -43,7 +43,7 @@ export class DungeonRenderer {
tileHeight: 16
});
const tileset = this.map.addTilesetImage("tiles0", "tiles0", 16, 16, 0, 0)!;
const tileset = this.map.addTilesetImage("dungeon", "dungeon", 16, 16, 0, 0)!;
this.layer = this.map.createLayer(0, tileset, 0, 0)!;
this.layer.setDepth(0);