diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-30 13:58:02 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-30 13:58:02 +0200 |
commit | 5874005e58d0f26b4393845b3b18160658ece160 (patch) | |
tree | 428f315dbd99e3f77677107586cac493d000cac7 /src/sliceitoff/game/show.py | |
parent | acfac65f17a274d6d7f73cb44ed9476032241134 (diff) |
refactor game.level
Diffstat (limited to 'src/sliceitoff/game/show.py')
-rw-r--r-- | src/sliceitoff/game/show.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 """ |