From 5874005e58d0f26b4393845b3b18160658ece160 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 30 Mar 2024 13:58:02 +0200 Subject: refactor game.level --- src/sliceitoff/game/show.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sliceitoff/game/show.py') diff --git a/src/sliceitoff/game/show.py b/src/sliceitoff/game/show.py index 94e2540..0fb6e05 100644 --- a/src/sliceitoff/game/show.py +++ b/src/sliceitoff/game/show.py @@ -14,7 +14,6 @@ class Show(pygame.sprite.Group): def update(self, dt = 0, **kwargs): """ First timeout then fadeout and then inactivity """ - super().update(dt = dt, explode = self.explode, **kwargs) if self.fadeout <= 0: self.active = False elif self.timeout <= 0: @@ -26,6 +25,8 @@ class Show(pygame.sprite.Group): if anykey(): self.timeout = 0 self.timeout -= dt + for sprite in self.sprites(): + sprite.update(dt = dt, explode = self.explode, **kwargs) def sprites(self): """ Return sprites only when active """ -- cgit v1.2.3