Loading a tileset create a new GameMap

This commit is contained in:
GRL 2021-07-29 14:14:40 +02:00
parent 73d589ad11
commit 897a01bb79
5 changed files with 66 additions and 23 deletions

View file

@ -1,5 +1,6 @@
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'},
{x: 5, y: 3, tile: 'sol', layer: 'bottom'}
]);
});