Skip to content

Commit

Permalink
added missing assets for crop game object demo
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Westover <[email protected]>
  • Loading branch information
scottwestover committed Oct 13, 2023
1 parent 29073d9 commit 88b6b27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions phaser-3/3.60/crop-game-objects/assets/credit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This spritesheet was created by: Essssam

https://essssam.itch.io/rocky-roads

Binary file added phaser-3/3.60/crop-game-objects/assets/icicle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions phaser-3/3.60/crop-game-objects/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand All @@ -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,
Expand Down

0 comments on commit 88b6b27

Please sign in to comment.