Skip to content

Instantly share code, notes, and snippets.

@shotasenga
Created February 6, 2023 07:08
Show Gist options
  • Save shotasenga/a9bb5002e63d6ffbde0d016aef41d306 to your computer and use it in GitHub Desktop.
Save shotasenga/a9bb5002e63d6ffbde0d016aef41d306 to your computer and use it in GitHub Desktop.

https://www.gather.town/

Get the map ID

Object.values(gameSpace.gameState).find(x => x.name == 'Shota').map

Get current location

_.pick(Object.values(gameSpace.gameState).find(x => x.name == 'Shota'), ['x', 'y', 'map'])

Go to specific location

game.teleport('map-id', x, y);

game.teleport('rr-36', 22, 19); // to my desk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment