From 78704848d4459907a456044615714b59d4593b2f Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Mon, 18 Mar 2024 18:08:20 +0200 Subject: stats, level_up, game_over --- src/sliceitoff/display/__init__.py | 2 -- src/sliceitoff/display/display.py | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/sliceitoff/display') diff --git a/src/sliceitoff/display/__init__.py b/src/sliceitoff/display/__init__.py index 25b6f18..1decd21 100644 --- a/src/sliceitoff/display/__init__.py +++ b/src/sliceitoff/display/__init__.py @@ -1,5 +1,3 @@ from .scaling import Scaling from .display import Display from .static import INTERNAL_WIDTH, INTERNAL_HEIGHT - - diff --git a/src/sliceitoff/display/display.py b/src/sliceitoff/display/display.py index e4cc670..54b1586 100644 --- a/src/sliceitoff/display/display.py +++ b/src/sliceitoff/display/display.py @@ -1,7 +1,10 @@ import pygame +from stats import Stats + from .scaling import Scaling + class Display(): def __init__(self): pygame.display.init() @@ -14,7 +17,7 @@ class Display(): def update(self, groups = None): """ Updates the screen: clear, blit gropus and flip """ - self.screen.fill("magenta") + self.screen.fill(Stats.bgcolor) for group in groups: group.draw(self.screen) pygame.display.flip() -- cgit v1.2.3