From 7a97b9c7a779aa7739e743770559ca7146ba6df3 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Tue, 9 Apr 2024 01:54:49 +0300 Subject: use namespace package in imports --- src/sliceitoff/game/game.py | 12 ++++++------ src/sliceitoff/game/initials.py | 2 +- src/sliceitoff/game/level.py | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/sliceitoff/game') diff --git a/src/sliceitoff/game/game.py b/src/sliceitoff/game/game.py index 9afe342..3404fd3 100644 --- a/src/sliceitoff/game/game.py +++ b/src/sliceitoff/game/game.py @@ -6,15 +6,15 @@ from pathlib import Path import pygame -from display import Display -from text import Fonts -from stats import Stats -from screens import ( +from sliceitoff.display import Display +from sliceitoff.text import Fonts +from sliceitoff.stats import Stats +from sliceitoff.screens import ( hiscores_screen, instructions1_screen, instructions2_screen) -from hiscores import HiScores -from mainmenu import Mainmenu, MenuItems +from sliceitoff.hiscores import HiScores +from sliceitoff.mainmenu import Mainmenu, MenuItems from .level import Level from .show import Show diff --git a/src/sliceitoff/game/initials.py b/src/sliceitoff/game/initials.py index 9fb5a68..385562c 100644 --- a/src/sliceitoff/game/initials.py +++ b/src/sliceitoff/game/initials.py @@ -1,7 +1,7 @@ """ game.initials - Use will be asked for initials """ import pygame -from screens import initials_screen +from sliceitoff.screens import initials_screen from .explodeout import ExplodeOutGroup diff --git a/src/sliceitoff/game/level.py b/src/sliceitoff/game/level.py index 845c960..c3713ce 100644 --- a/src/sliceitoff/game/level.py +++ b/src/sliceitoff/game/level.py @@ -1,11 +1,11 @@ """ game.level - This is what runs invidual levels """ import pygame -from status import Status -from player import Player, Life -from field import Field -from enemies import Enemies -from screens import levelup_screen, gameover_screen, level_screen +from sliceitoff.status import Status +from sliceitoff.player import Player, Life +from sliceitoff.field import Field +from sliceitoff.enemies import Enemies +from sliceitoff.screens import levelup_screen, gameover_screen, level_screen from .gameplay import Gameplay from .show import Show -- cgit v1.2.3