add companion to remote player

This commit is contained in:
Johannes Berthel
2021-04-01 18:51:51 +02:00
parent 80a5d2e30e
commit 5a91e15580
4 changed files with 46 additions and 37 deletions
+4
View File
@@ -31,5 +31,9 @@ export class RemotePlayer extends Character {
this.setY(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).
if (this.companion) {
this.companion.setTarget(position.x, position.y, position.direction as PlayerAnimationDirections);
}
}
}