diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-28 22:28:45 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-28 22:28:45 +0200 |
commit | f894c2fd09ed17540c49cb4083573861ded76554 (patch) | |
tree | cedbe5bab1b5f91b7e3dfb70c17f5114034e700e /src/sliceitoff/game/game.py | |
parent | f502b21183d307fcab9b353aa18609d15c3547f1 (diff) |
Show as sprite group with update
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): |