BlueGit

blue-star speeltuin

frogScene origin/target tween at button's endpos instead of currentpos

timfa wsadhelios · pushed by timfa

Authored 2022-10-22 · 4 years ago

Hash
7b521cc226daa586a083521fe97d7e593911d193
Parent
e8b1c27b
1 file changed +1 −1
src/objects/menus/btnGames.js +1 −1
@@ -27,7 +27,7 @@ class BtnGames extends GameObject
27 27 {
28 28 this.createSubButton("btnFrog", this.scene.game.images.btnFrog, function ()
29 29 {
30 MinigameInitialiser.StartFrogGame(this.scene, new vector(this.transform.position.x - this.transform.size.x / 2, this.transform.position.y - this.transform.size.y / 2), this.transform.size);
30 MinigameInitialiser.StartFrogGame(this.scene, new vector(this.endPos.x - this.transform.size.x / 2, this.endPos.y - this.transform.size.y / 2), this.transform.size);
31 31 MenuManager.Instance.moveToClose();
32 32
33 33 });
@@ -27,7 +27,7 @@ class BtnGames extends GameObject
27 {
27 {
28 this.createSubButton("btnFrog", this.scene.game.images.btnFrog, function ()
28 this.createSubButton("btnFrog", this.scene.game.images.btnFrog, function ()
29 {
29 {
30 MinigameInitialiser.StartFrogGame(this.scene, new vector(this.transform.position.x - this.transform.size.x / 2, this.transform.position.y - this.transform.size.y / 2), this.transform.size);
30 MinigameInitialiser.StartFrogGame(this.scene, new vector(this.endPos.x - this.transform.size.x / 2, this.endPos.y - this.transform.size.y / 2), this.transform.size);
31 MenuManager.Instance.moveToClose();
31 MenuManager.Instance.moveToClose();
32
32
33 });
33 });