anythingpls

Untitled

Mar 28th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(mapData) {
  2.     console.log('mapDimenstions and collisionsCoords are gathered from backend.');
  3.     this.mapDimensions = mapData.dimensions;
  4.     this.collisionsCoords = mapData.collisions;
  5. } else {
  6.     console.log('mapDimenstions and collisionsCoords are gathered from client.');
  7.     this.mapDimensions = await getMapDimensions(page);
  8.     this.collisionsCoords = await getCollisions(page, this.mapDimensions, this.monstersCoords);
  9.     saveMap(this.mapDimensions, this.collisionsCoords, this.mapDimensions);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment