Skip to content
Snippets Groups Projects
Commit 8439dfea authored by Paolo Brasolin's avatar Paolo Brasolin
Browse files

fix: #fe critter initial size is now correct

parent af3be1a3
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ class Critter extends Phaser.Physics.Arcade.Sprite {
constructor(scene: FightScene, baseVelocity = 100) {
const species = SPECIES[Math.floor(Math.random() * SPECIES.length)];
super(scene, 0, 0, species);
super(scene, 0, 0, `${species}Walk`);
scene.add.existing(this);
this.scene = scene;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment