diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-16 12:53:03 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-16 12:53:03 +0200 |
commit | 77d104cced553b8dfc9896cb456bd039807ed6c6 (patch) | |
tree | 834731b22475fe09ec61168ec220ff6ae98259bc /src/sliceitoff/status | |
parent | a23b6647b0ca2cd9f2ccbbe12360c3fa0f96a554 (diff) |
Images class
Diffstat (limited to 'src/sliceitoff/status')
-rw-r--r-- | src/sliceitoff/status/status.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sliceitoff/status/status.py b/src/sliceitoff/status/status.py index ed36711..b2bde21 100644 --- a/src/sliceitoff/status/status.py +++ b/src/sliceitoff/status/status.py @@ -2,7 +2,7 @@ import os import pygame from display import Scaling -from images import images +from images import Images class LetterSprite(pygame.sprite.Sprite): def __init__(self, image, pos): @@ -21,11 +21,11 @@ class Status(): def __update_sprites(self): self.sprites.empty() - y = 28000 + y = 28_000 score_str="{:010d}".format(self.score) - for letter, x in zip(score_str, range(30000,40000,1000)): + for letter, x in zip(score_str, range(30_000,40_000,1_000)): self.sprites.add(LetterSprite( - images[f"letter_{letter}"], + Images.surfaces[f"letter_{letter}"], Scaling.scale_coordinates((x,y)) )) self.updated = False |