diff options
Diffstat (limited to 'src/sliceitoff/player/life.py')
-rw-r--r-- | src/sliceitoff/player/life.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sliceitoff/player/life.py b/src/sliceitoff/player/life.py index 16ba052..9e9b6b8 100644 --- a/src/sliceitoff/player/life.py +++ b/src/sliceitoff/player/life.py @@ -34,7 +34,8 @@ class Life(pygame.sprite.Group): int(Scaling.factor * 72_500 + Scaling.left), int(Scaling.factor * 20_000 + Scaling.top)) srfc = get_letter_surface(("8x8", 200_000, 4), 0x03) - for x in range(0, font_width, block_width): - for y in range(0, font_width, block_width): + block_width = srfc.get_rect().w // 24 + for x in range(0, block_width * 24, block_width): + for y in range(0, block_width * 24, block_width): image = srfc.subsurface((x, y, block_width, block_width)) - self.add(PieceOfHearth(image,(x + offset[0], y + offset[1]))) + self.add(PieceOfHearth(image, (x + offset[0], y + offset[1]))) |