Add feature to move bubble
This commit is contained in:
parent
01dbff7aee
commit
48fe86634f
3 changed files with 82 additions and 19 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue