summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/game.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-28 23:34:19 +0200
committerViljami Ilola <+@hix.fi>2024-03-28 23:34:19 +0200
commit27c7e16e4bd808ce1176f18b7a78c02ff4fa88ee (patch)
treea585d5ef853a0f8ffd5000cbdc9b0c4257163e53 /src/sliceitoff/game/game.py
parentf894c2fd09ed17540c49cb4083573861ded76554 (diff)
fonts under text, more sprite.Groups
Diffstat (limited to 'src/sliceitoff/game/game.py')
-rw-r--r--src/sliceitoff/game/game.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sliceitoff/game/game.py b/src/sliceitoff/game/game.py
index 982466b..146e34e 100644
--- a/src/sliceitoff/game/game.py
+++ b/src/sliceitoff/game/game.py
@@ -7,7 +7,7 @@ from pathlib import Path
import pygame
from display import Display
-from images import Images, Fonts
+from text import Fonts
from stats import Stats
from screens import welcome_screen, hiscores_screen
from hiscores import HiScores
@@ -56,8 +56,8 @@ class Game:
def initials(self):
initials = Initials()
dt = 0
- while initials.step():
- dt = self.clock.tick()
+ while initials.active:
+ initials.update(dt = self.clock.tick())
self.display.update([initials])
return initials.name