Add scene solely dedicated to preloading assets

This commit is contained in:
Peter Stockings
2026-01-05 12:47:09 +11:00
parent 86a6afd1df
commit 161da3a64a
10 changed files with 67 additions and 12 deletions

View File

@@ -118,6 +118,18 @@ export const GAME_CONFIG = {
gameplay: {
energyThreshold: 100,
actionCost: 100
},
assets: {
spritesheets: [
{ 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 } },
],
images: [
{ key: "splash_bg", path: "assets/ui/splash_bg.png" }
]
}
} as const;