summaryrefslogtreecommitdiff
path: root/src/sliceitoff/text/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/text/text.py')
-rw-r--r--src/sliceitoff/text/text.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sliceitoff/text/text.py b/src/sliceitoff/text/text.py
index 69a30bc..c1fd7b8 100644
--- a/src/sliceitoff/text/text.py
+++ b/src/sliceitoff/text/text.py
@@ -29,7 +29,7 @@ def get_letter_surface(font_key, ch):
CGA_COLORS[color],
special_flags = pygame.BLEND_RGBA_MULT)
return scaled_fonts[font_key][ch]
-
+
class LetterSprite(pygame.sprite.Sprite):
""" Make sprite out of letter surface at given position """
@@ -42,7 +42,7 @@ class LetterSprite(pygame.sprite.Sprite):
Scaling.factor * (1_000 - randrange(2_000)),
Scaling.factor * (1_000 - randrange(2_000)))
- def update(self, dt = 0, explode = 0, **kwargs):
+ def update(self, dt = 0, explode = 0):
""" All the movements for letters """
if explode and dt:
self.rect = pygame.Rect(
@@ -94,4 +94,3 @@ class TextPage(pygame.sprite.Group):
(pos[0]+col*grid[0], pos[1]+row*grid[1]) )
self.add(LetterSprite(font_key, ch, sprite_pos))
col += 1
- \ No newline at end of file