This commit is contained in:
David Négrier 2020-06-07 23:00:05 +02:00
parent c0809e28db
commit 5042f2f82c

View file

@ -155,7 +155,7 @@ export class GameScene extends Phaser.Scene {
if (layer.type === 'objectgroup' && layer.name === 'floorLayer') {
depth = 10000;
}
};
}
if (depth === -2) {
throw new Error('Your map MUST contain a layer of type "objectgroup" whose name is "floorLayer" that represents the layer characters are drawn at.');
}
@ -297,7 +297,7 @@ export class GameScene extends Phaser.Scene {
key: exitSceneKey,
hash
})
};
}
}
/**