This commit is contained in:
Auric Vente 2024-07-26 20:25:27 -06:00
parent 81565c22d2
commit 03c3fbeba6
1 changed files with 7 additions and 1 deletions

View File

@ -77,6 +77,7 @@ class Game:
timer: QTimer | None = None
playing_song: bool = False
merge_charge: int = 0
speed: str = "paused"
@staticmethod
def prepare() -> None:
@ -354,8 +355,10 @@ class Game:
elif speed == "slow":
minutes = Args.slow_minutes or Config.slow_minutes
else:
Game.speed = "paused"
return
Game.speed = speed
Game.timer = QTimer()
Game.timer.timeout.connect(Game.get_status)
@ -559,7 +562,10 @@ class Game:
@staticmethod
def slowdown() -> None:
Game.change_speed("slow")
if Game.speed == "slow":
Game.change_speed("paused")
else:
Game.change_speed("slow")
@staticmethod
def change_speed(speed: str) -> None: