From 88b6b27e3f150c95702b45408549f52213c602aa Mon Sep 17 00:00:00 2001 From: Scott Westover Date: Thu, 12 Oct 2023 22:52:11 -0400 Subject: [PATCH] added missing assets for crop game object demo Signed-off-by: Scott Westover --- .../3.60/crop-game-objects/assets/credit.txt | 4 ++++ .../3.60/crop-game-objects/assets/icicle.png | Bin 0 -> 1001 bytes phaser-3/3.60/crop-game-objects/src/main.js | 4 +--- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 phaser-3/3.60/crop-game-objects/assets/credit.txt create mode 100644 phaser-3/3.60/crop-game-objects/assets/icicle.png 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 0000000000000000000000000000000000000000..75604a56b5df63825690331e60d20008227238e7 GIT binary patch literal 1001 zcmVPx&qe()J@_Wwj&8PSc|88#O z*W$g%oW>`g{GRiB^Lgk4@4c5UX{uYPyPVFwRsFc(om<}cMHc=FTvdgUK`T_a!j5NhPh zcS{dL9}3mXm+zi34KB@U7`-=$yQHZVGk3$2e}1W0Z+xlwy5{_$lfbp|hrWBtH280J z0n)D@j<17zo)V2ewgUE&uXD+-n?F?uAy9m#S=>mnG0F<@>+2UU@0D)+u|09={P^#_ zzq=*BqkQCbaT$IpS;+Tyw`U99a^cs^*MGN2?VU^J$9l`RY=7jjxBzLji%u#pwL#Qi zxzg*se~D&jeM-LssMTK{YRIjugzF*uf~mL>i)1KS)ZlW90Xf z4>;#+o@6JvV)yuLx&e}3KOcECe+XuMI0OJDtoOd;)B9;%^F1H{?V+AIg@z8uO6b=4TMtlKAk)VpI^F zml_zc^gQI$#7qKP5pU>mkEHa|Ia7yMaZ%ErZ5@YTKx6dqQ@Z##*WM^06d+&)>!(4s zjsgVCu(eS+y!XCF5u9_sQ9P}@PCdPp0t7TfKM6ARdCnpzIs3yYOg*%dL&E*xbat+4 z_xK$C{QQ0~U)%=-G)itjEcN|4&nKmd4}gV2WPdnS`?rX=7bN*5=3&Xdd(4>+4#9v7 zECx){=Rk00CHKO#%E1 XJDkD+3K6Y`00000NkvXXu0mjfr(oX= literal 0 HcmV?d00001 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,