Fix collides
This commit is contained in:
parent
2f282e3469
commit
dcc7f2a686
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user