fix
This commit is contained in:
@@ -456,6 +456,12 @@ export class GameScene extends DirtyScene {
|
||||
//initialise map
|
||||
this.Map = this.add.tilemap(this.MapUrlFile);
|
||||
const mapDirUrl = this.MapUrlFile.substr(0, this.MapUrlFile.lastIndexOf("/"));
|
||||
|
||||
if (!this.mapFile) {
|
||||
localUserStore.setLastRoomUrl(null);
|
||||
throw new Error("invalid map");
|
||||
}
|
||||
|
||||
this.mapFile.tilesets.forEach((tileset: ITiledTileSet) => {
|
||||
this.Terrains.push(
|
||||
this.Map.addTilesetImage(
|
||||
|
||||
Reference in New Issue
Block a user