Loading a tileset create a new GameMap
This commit is contained in:
parent
73d589ad11
commit
897a01bb79
5 changed files with 66 additions and 23 deletions
|
@ -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'}
|
||||
]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue