From f894c2fd09ed17540c49cb4083573861ded76554 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Thu, 28 Mar 2024 22:28:45 +0200 Subject: Show as sprite group with update --- src/sliceitoff/game/game.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sliceitoff/game/game.py') diff --git a/src/sliceitoff/game/game.py b/src/sliceitoff/game/game.py index 0b67d2f..982466b 100644 --- a/src/sliceitoff/game/game.py +++ b/src/sliceitoff/game/game.py @@ -31,15 +31,15 @@ class Game: def welcome(self): ws = Show(welcome_screen()) dt = 0 - while ws.step(dt): - dt = self.clock.tick() + while ws.active: + ws.update(dt = self.clock.tick()) self.display.update( [ws] ) def show_highscores(self): his = Show(hiscores_screen(str(self.hiscores))) dt = 0 - while his.step(dt): - dt = self.clock.tick() + while his.active: + his.update(dt = self.clock.tick()) self.display.update( [his] ) def newgame(self): -- cgit v1.2.3