From 89bf2bf2197e44f0745bcae1400227c2999573cd Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Mon, 18 Mar 2024 16:27:51 +0200 Subject: fonts from fnt-file --- src/sliceitoff/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/sliceitoff/__main__.py') 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) -- cgit v1.2.3