Auto-reconnect
This commit is contained in:
parent
dd5a0c9933
commit
ec297e3912
7 changed files with 118 additions and 15 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue