From 77d104cced553b8dfc9896cb456bd039807ed6c6 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 16 Mar 2024 12:53:03 +0200 Subject: Images class --- src/sliceitoff/status/status.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sliceitoff/status') 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 -- cgit v1.2.3