Add feature to move bubble

This commit is contained in:
gparant 2020-04-13 15:15:20 +02:00
parent 01dbff7aee
commit 48fe86634f
3 changed files with 82 additions and 19 deletions

View file

@ -31,6 +31,10 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite {
} else if (this.body.velocity.y > 0) { //moving down
this.play(PlayerAnimationNames.WalkDown, true);
}
if(this.bubble) {
this.bubble.moveBubble(this.x, this.y);
}
}
say(text: string) {