added another level, bug fixes
Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user