summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/level.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-23 18:42:26 +0200
committerViljami Ilola <+@hix.fi>2024-03-23 18:42:26 +0200
commitb03cb075e7a2042764a355a46d649b187f66343b (patch)
treef78e991650d33f7b1d9d8eab60f1e045da92d6c1 /src/sliceitoff/game/level.py
parent975e5dca49fb09fe2f762462f1c337c0d63735bf (diff)
Field as sprite group.
Diffstat (limited to 'src/sliceitoff/game/level.py')
-rw-r--r--src/sliceitoff/game/level.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sliceitoff/game/level.py b/src/sliceitoff/game/level.py
index fadbee3..e5dc9f6 100644
--- a/src/sliceitoff/game/level.py
+++ b/src/sliceitoff/game/level.py
@@ -24,11 +24,15 @@ class Level:
def step(self, dt):
for obj in self.obj_classes:
- obj.update(dt)
+ obj.update(dt = dt)
Stats.update_bonus(dt)
- self.display.update( (obj.sprites for obj in self.obj_classes) )
+ self.display.update( (
+ self.status.sprites,
+ self.field,
+ self.enemies.sprites,
+ self.player.sprites) )
if self.gameplay.step():
return False