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/display.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sliceitoff/display/display.py') 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