workadventure/maps/tests/LoadTileset/scriptTileset.js

7 lines
255 B
JavaScript
Raw Normal View History

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'},
2021-07-29 14:14:40 +02:00
{x: 5, y: 3, tile: 'sol', layer: 'bottom'}
]);
});