Skip to content

Commit

Permalink
Update Phaser version to 3.60.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Jan 25, 2024
1 parent 33beab9 commit 605c5eb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/examples/lib/phaser3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"webpack-cli": "^5.1.4"
},
"peerDependencies": {
"phaser": "^3.55.2",
"phaser": "^3.60.0",
"phaser-ce": "2.20.0"
},
"peerDependenciesMeta": {
Expand Down
10 changes: 7 additions & 3 deletions src/phaserObjects/tween.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ if (Phaser.Tween === undefined) {
}

add(target, properties, duration, ease, onComplete, onUpdate, onStart, onCompleteScope, onUpdateScope, onStartScope) {
const completeScope = onCompleteScope || this;
const updateScope = onUpdateScope || this;
const startScope = onStartScope || this;

const config = {
targets: target,
duration,
ease,
onComplete,
onUpdate,
onStart,
onCompleteScope,
onUpdateScope,
onStartScope,
onCompleteScope: completeScope,
onUpdateScope: updateScope,
onStartScope: startScope,
};
const params = Object.assign(config, properties);
this.game.tweens.add(params);
Expand Down

0 comments on commit 605c5eb

Please sign in to comment.