diff options
Diffstat (limited to 'src/sliceitoff/game/game.py')
-rw-r--r-- | src/sliceitoff/game/game.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): |