Fix collides

This commit is contained in:
GRL 2021-06-24 12:10:44 +02:00
parent 2f282e3469
commit dcc7f2a686

View File

@ -1170,7 +1170,6 @@ ${escapedMessage}
createCollisionWithPlayer() {
//add collision layer
for (const phaserLayer of this.gameMap.phaserLayers) {
if (phaserLayer.type == "tilelayer") {
this.physics.add.collider(this.CurrentPlayer, phaserLayer, (object1: GameObject, object2: GameObject) => {
//this.CurrentPlayer.say("Collision with layer : "+ (object2 as Tile).layer.name)
});
@ -1186,7 +1185,6 @@ ${escapedMessage}
//});
}
}
}
createCurrentPlayer() {
//TODO create animation moving between exit and start