diff --git a/phaser-3/3.60/crop-game-objects/assets/credit.txt b/phaser-3/3.60/crop-game-objects/assets/credit.txt new file mode 100644 index 0000000..fd37a13 --- /dev/null +++ b/phaser-3/3.60/crop-game-objects/assets/credit.txt @@ -0,0 +1,4 @@ +This spritesheet was created by: Essssam + +https://essssam.itch.io/rocky-roads + diff --git a/phaser-3/3.60/crop-game-objects/assets/icicle.png b/phaser-3/3.60/crop-game-objects/assets/icicle.png new file mode 100644 index 0000000..75604a5 Binary files /dev/null and b/phaser-3/3.60/crop-game-objects/assets/icicle.png differ diff --git a/phaser-3/3.60/crop-game-objects/src/main.js b/phaser-3/3.60/crop-game-objects/src/main.js index b87f4bf..a89aa38 100644 --- a/phaser-3/3.60/crop-game-objects/src/main.js +++ b/phaser-3/3.60/crop-game-objects/src/main.js @@ -19,6 +19,7 @@ class MainScene extends Phaser.Scene { } create() { + // create basic animations from the spritesheet this.anims.create({ key: this.#iceAttackAnimationName, frames: this.anims.generateFrameNumbers(this.#iceSpriteSheetAssetName, { @@ -39,9 +40,6 @@ class MainScene extends Phaser.Scene { .setOrigin(0.5, 0) .setScale(2); - this.#icicle.once(Phaser.Animations.Events.ANIMATION_COMPLETE, () => { - console.log('animation completed'); - }); this.#icicle.once( Phaser.Animations.Events.ANIMATION_COMPLETE_KEY + this.#iceAttackAnimationName,