1
0
forked from noxious/client

WIP: updated zone manager to match with zone logic (dynamic asset/texture loading)

This commit is contained in:
2024-10-27 21:04:08 +01:00
parent d091aabeb3
commit dc2b6b9851
9 changed files with 124 additions and 96 deletions

View File

@ -85,7 +85,7 @@ export function FlattenZoneArray(tiles: string[][]) {
return normalArray
}
export async function loadZoneTiles(zone: ZoneT, scene: Phaser.Scene) {
export async function loadZoneTilesIntoScene(zone: ZoneT, scene: Phaser.Scene) {
const tileArray = unduplicateArray(FlattenZoneArray(zone.tiles))
for (const tile of tileArray) {
await loadZoneTileTexture(scene, tile, new Date())