Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(mapData) {
- console.log('mapDimenstions and collisionsCoords are gathered from backend.');
- this.mapDimensions = mapData.dimensions;
- this.collisionsCoords = mapData.collisions;
- } else {
- console.log('mapDimenstions and collisionsCoords are gathered from client.');
- this.mapDimensions = await getMapDimensions(page);
- this.collisionsCoords = await getCollisions(page, this.mapDimensions, this.monstersCoords);
- saveMap(this.mapDimensions, this.collisionsCoords, this.mapDimensions);
- }
Advertisement
Add Comment
Please, Sign In to add comment