diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-23 18:42:26 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-23 18:42:26 +0200 |
commit | b03cb075e7a2042764a355a46d649b187f66343b (patch) | |
tree | f78e991650d33f7b1d9d8eab60f1e045da92d6c1 /src/sliceitoff/text | |
parent | 975e5dca49fb09fe2f762462f1c337c0d63735bf (diff) |
Field as sprite group.
Diffstat (limited to 'src/sliceitoff/text')
-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 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): |