diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-23 22:19:00 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-23 22:19:00 +0200 |
commit | 98d91824cacec97c581ae0a4f1efd9fa3faa18ab (patch) | |
tree | 88396d13a6d8449968e305bae443d8f2c5b61cfb /src/sliceitoff/text/text.py | |
parent | 947df85053af2704ce1a17daf1fab13e273f0cc5 (diff) |
player through SingleGroup
Diffstat (limited to 'src/sliceitoff/text/text.py')
-rw-r--r-- | src/sliceitoff/text/text.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): |