Renamed get to getById, map improvement

This commit is contained in:
2025-02-09 17:33:10 +01:00
parent 49dcd92a9e
commit a9cedba4e0
13 changed files with 44 additions and 26 deletions

View File

@ -60,7 +60,7 @@ export async function loadSpriteTextures(scene: Phaser.Scene, sprite_id: string)
if (!sprite_id) return false
const spriteStorage = new SpriteStorage()
const sprite = await spriteStorage.get(sprite_id)
const sprite = await spriteStorage.getById(sprite_id)
if (!sprite) {
console.error('Failed to load sprite:', sprite_id)