From b03cb075e7a2042764a355a46d649b187f66343b Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 23 Mar 2024 18:42:26 +0200 Subject: Field as sprite group. --- src/sliceitoff/game/level.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/sliceitoff/game/level.py') 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 -- cgit v1.2.3