diff options
Diffstat (limited to 'src/sliceitoff/__main__.py')
-rw-r--r-- | src/sliceitoff/__main__.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/sliceitoff/__main__.py b/src/sliceitoff/__main__.py index df4ba22..68fca86 100644 --- a/src/sliceitoff/__main__.py +++ b/src/sliceitoff/__main__.py @@ -30,18 +30,24 @@ def sliceitoff(): game = Game(player = player) clock = pygame.time.Clock() - - for _ in range(6000): - if game.step(): - break + + + while True: + + dt = clock.tick(60) + for fun in (status, status): + fun.update(dt) + display.update( [ - status.get_sprites(), + status.sprites, field.get_sprites(), enemies.get_sprites(), player.get_sprites() ]) - clock.tick(60) + + if game.step(): + break sleep(2) pygame.quit() |