pause for loading tileset on the fly

This commit is contained in:
GRL 2021-05-25 09:39:04 +02:00
parent d0aaa0620d
commit a3165a0540

View File

@ -910,12 +910,12 @@ ${escapedMessage}
iframeListener.sendUserTagList({list: this.connection.getAllTag()}); iframeListener.sendUserTagList({list: this.connection.getAllTag()});
})) }))
this.iframeSubscriptionList.push(iframeListener.tilesetLoaderStream.subscribe((tileset) => { /* this.iframeSubscriptionList.push(iframeListener.tilesetLoaderStream.subscribe((tileset) => {
//this.load.tilemapTiledJSON('logo', tileset.imgUrl); //this.load.tilemapTiledJSON('logo', tileset.imgUrl);
this.load.image('logo', tileset.imgUrl); this.load.image('logo', tileset.imgUrl);
this.Terrains.push(this.Map.addTilesetImage(tileset.name, tileset.imgUrl, tileset.tilewidth, tileset.tileheight, tileset.margin, tileset.spacing)); this.Terrains.push(this.Map.addTilesetImage(tileset.name, tileset.imgUrl, tileset.tilewidth, tileset.tileheight, tileset.margin, tileset.spacing));
this.gameMap.addTerrain(this.Terrains[this.Terrains.length - 1]); this.gameMap.addTerrain(this.Terrains[this.Terrains.length - 1]);
})) }))*/
} }