fix(onitama): prevent game hang by removing tween interruptions
Remove tween interruptions from the selection fade-in and pulse animations to prevent the game state from stopping indefinitely.
This commit is contained in:
@@ -49,7 +49,9 @@ export class SelectionRenderer {
|
||||
const tweens = this.scene.tweens;
|
||||
|
||||
// Fade in animation
|
||||
const fadeIn = tweens.add({
|
||||
// DO NOT add interruption here
|
||||
// otherwise the game will stop indefinitely
|
||||
tweens.add({
|
||||
targets: ring,
|
||||
alpha: 0.8,
|
||||
duration: ANIMATIONS.selectionFadeIn,
|
||||
@@ -65,10 +67,8 @@ export class SelectionRenderer {
|
||||
yoyo: true,
|
||||
repeat: -1,
|
||||
});
|
||||
this.scene.addTweenInterruption(pulseTween);
|
||||
},
|
||||
});
|
||||
this.scene.addTweenInterruption(fadeIn);
|
||||
|
||||
// Return cleanup function
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user