From 98d91824cacec97c581ae0a4f1efd9fa3faa18ab Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 23 Mar 2024 22:19:00 +0200 Subject: player through SingleGroup --- src/sliceitoff/text/text.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sliceitoff/text/text.py') diff --git a/src/sliceitoff/text/text.py b/src/sliceitoff/text/text.py index e8ccb57..9bb7c9a 100644 --- a/src/sliceitoff/text/text.py +++ b/src/sliceitoff/text/text.py @@ -15,16 +15,16 @@ class LetterSprite(pygame.sprite.Sprite): Scaling.factor * (1_000 - randrange(2_000)), Scaling.factor * (1_000 - randrange(2_000))) - def update(self, explode=0): + def update(self, explode = 0, **kwargs): if explode: self.rect = pygame.Rect( self.rect.x + self.direction[0] * explode, self.rect.y + self.direction[1] * explode, self.rect.w, self.rect.h) - self.direction = ( - self.direction[0] * 0.8, - self.direction[1] * 0.8 + 1) + self.direction = ( + self.direction[0] * 1, + self.direction[1] * 1 + 0.5) class TextPage(pygame.sprite.Group): -- cgit v1.2.3