summaryrefslogtreecommitdiff
path: root/src/sliceitoff/display
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-18 18:08:20 +0200
committerViljami Ilola <+@hix.fi>2024-03-18 18:08:20 +0200
commit78704848d4459907a456044615714b59d4593b2f (patch)
treed56c8422793ff1c5b6554146980760d264a6a0fe /src/sliceitoff/display
parentb219c4f736e6b98dd247064b362997576954f0ff (diff)
stats, level_up, game_over
Diffstat (limited to 'src/sliceitoff/display')
-rw-r--r--src/sliceitoff/display/__init__.py2
-rw-r--r--src/sliceitoff/display/display.py5
2 files changed, 4 insertions, 3 deletions
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()