Auto-reconnect
This commit is contained in:
@@ -185,7 +185,6 @@ export class GameScene extends Phaser.Scene implements GameSceneInterface, Creat
|
||||
|
||||
// TODO: eventually compute a relative URL
|
||||
let absoluteExitSceneUrl = new URL(exitSceneUrl, this.MapUrlFile).href;
|
||||
console.log('absoluteExitSceneUrl ', absoluteExitSceneUrl);
|
||||
let exitSceneKey = gameManager.loadMap(absoluteExitSceneUrl, this.scene);
|
||||
|
||||
let tiles : any = layer.data;
|
||||
|
||||
@@ -13,7 +13,6 @@ export function getMapKeyByUrl(mapUrlStart: string){
|
||||
// FIXME: the key should be computed from the full URL of the map.
|
||||
let startPos = mapUrlStart.indexOf('://')+3;
|
||||
let endPos = mapUrlStart.indexOf(".json");
|
||||
console.log('MAP KEY '+mapUrlStart.substring(startPos, endPos));
|
||||
return mapUrlStart.substring(startPos, endPos);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user