updated phaser to version 3.51 and fixed the BC

This commit is contained in:
kharhamel 2021-01-06 15:00:54 +01:00
parent 178af22280
commit 1359fbe977
8 changed files with 22 additions and 24 deletions

View file

@ -29,6 +29,7 @@ export class RemotePlayer extends Character {
this.playAnimation(position.direction, position.moving);
this.setX(position.x);
this.setY(position.y);
this.setDepth(position.y);
this.setDepth(position.y); //this is to make sure the perspective (player models closer the bottom of the screen will appear in front of models nearer the top of the screen).
}
}