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/text/text.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sliceitoff/text') diff --git a/src/sliceitoff/text/text.py b/src/sliceitoff/text/text.py index e86bede..e8ccb57 100644 --- a/src/sliceitoff/text/text.py +++ b/src/sliceitoff/text/text.py @@ -12,8 +12,8 @@ class LetterSprite(pygame.sprite.Sprite): self.image = image self.rect = self.image.get_rect().move(pos) self.direction = ( - Scaling.factor * (2_000 - randrange(4_000)), - Scaling.factor * (2_000 - randrange(4_000))) + Scaling.factor * (1_000 - randrange(2_000)), + Scaling.factor * (1_000 - randrange(2_000))) def update(self, explode=0): if explode: @@ -23,8 +23,8 @@ class LetterSprite(pygame.sprite.Sprite): self.rect.w, self.rect.h) self.direction = ( - self.direction[0] * 1.15, - self.direction[1] * 1.15) + self.direction[0] * 0.8, + self.direction[1] * 0.8 + 1) class TextPage(pygame.sprite.Group): -- cgit v1.2.3