added another level, bug fixes

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-07-18 19:27:37 +02:00
parent 157d2311a8
commit 94fd0bb532
15 changed files with 3892 additions and 511 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ export default class Player extends Entity {
this.body.setOffset(4, 16);
this.body.setCollideWorldBounds(true);
this.play('idle');
if (this.scene.anims.exists('idle'))
this.play('idle');
this.attackA = new AttackA(this);
this.attackB = new AttackB(this);