summaryrefslogtreecommitdiff
path: root/src/sliceitoff/__main__.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-18 16:27:51 +0200
committerViljami Ilola <+@hix.fi>2024-03-18 16:27:51 +0200
commit89bf2bf2197e44f0745bcae1400227c2999573cd (patch)
treeb8c75505a2f860c32b01802dc037fdae2b3f73c5 /src/sliceitoff/__main__.py
parent78c665af8b860063658d1782f75e072cfe88c82b (diff)
fonts from fnt-file
Diffstat (limited to 'src/sliceitoff/__main__.py')
-rw-r--r--src/sliceitoff/__main__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sliceitoff/__main__.py b/src/sliceitoff/__main__.py
index 6845d94..17e7317 100644
--- a/src/sliceitoff/__main__.py
+++ b/src/sliceitoff/__main__.py
@@ -8,7 +8,7 @@ from pathlib import Path
import pygame
from display import Display
-from images import Images
+from images import Images, Fonts
from game import Level
@@ -17,7 +17,9 @@ def sliceitoff():
pygame.init()
display = Display()
- Images.load_images( Path(__file__).parent.resolve() )
+ current_path = Path(__file__).parent.resolve()
+ Images.load_images( current_path )
+ Fonts.load_fonts( current_path )
level1 = Level(display = display, level = 10, score = 10)