forked from noxious/client
WIP: updated zone manager to match with zone logic (dynamic asset/texture loading)
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user