partey_workadventure/maps/tests/Metadata/getCurrentRoom.js

13 lines
396 B
JavaScript
Raw Permalink Normal View History

WA.onInit().then(() => {
console.log('id: ', WA.room.id);
console.log('Map URL: ', WA.room.mapURL);
console.log('Player name: ', WA.player.name);
console.log('Player id: ', WA.player.id);
console.log('Player tags: ', WA.player.tags);
console.log('Player token: ', WA.player.userRoomToken);
});
WA.room.getTiledMap().then((data) => {
console.log('Map data', data);
})