diff --git a/src/ui/saving-icon-handler.ts b/src/ui/saving-icon-handler.ts index 71d9a11fb47..b2d27f694a9 100644 --- a/src/ui/saving-icon-handler.ts +++ b/src/ui/saving-icon-handler.ts @@ -13,7 +13,7 @@ export default class SavingIconHandler extends Phaser.GameObjects.Container { setup(): void { this.icon = this.scene.add.sprite(0, 0, 'saving_icon'); - this.icon.setOrigin(1, 1); + this.icon.setOrigin(0.5, 0.5); this.add(this.icon); @@ -50,6 +50,24 @@ export default class SavingIconHandler extends Phaser.GameObjects.Container { this.shown = true; } + retry(): void { + this.setAlpha(1); + this.setVisible(true); + this.shown = true; + + this.animActive = true; + + this.scene.tweens.add({ + targets: this, + rotation: 360, + repeat: Infinity, + duration: Utils.fixedInt(60000), + ease: 'Linear' + }); + + this.setVisible(true); + } + hide(): void { this.shown = false;