Load a json file that describe a tileset in Tile format.
Then add it to the tilemap of the GameScene Then add if to the GameMap
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
WA.room.loadTileset("http://maps.workadventure.localhost/tests/LoadTileset/Yellow.json").then((firstgid) => {
|
||||
WA.room.setTiles([
|
||||
{x: 5, y: 5, tile: firstgid + 1, layer: 'bottom'},
|
||||
]);
|
||||
});
|
||||
Reference in New Issue
Block a user