made the player pushable by other models
This commit is contained in:
parent
2b2b615e7b
commit
d1106d757d
2 changed files with 5 additions and 1 deletions
|
@ -103,6 +103,10 @@ export class GameScene extends Phaser.Scene implements GameSceneInterface{
|
|||
let eventList = this.userInputManager.getEventListForGameTick();
|
||||
|
||||
this.player.move(eventList);
|
||||
|
||||
this.otherPlayers.getChildren().forEach((otherPlayer: NonPlayer) => {
|
||||
otherPlayer.setVelocity(20, 5);
|
||||
})
|
||||
}
|
||||
|
||||
sharedUserPosition(data: []): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue