From c8660a5049dbd69c6ff3b04a4ff61c1674297d68 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 1 Mar 2016 11:11:14 +0200 Subject: [PATCH] Reorganize constants --- koperkapel/constants.py | 7 +++++++ koperkapel/pgzapp.py | 4 +--- koperkapel/scenes/constants.py | 8 -------- 3 files changed, 8 insertions(+), 11 deletions(-) create mode 100644 koperkapel/constants.py delete mode 100644 koperkapel/scenes/constants.py diff --git a/koperkapel/constants.py b/koperkapel/constants.py new file mode 100644 index 0000000..54f8a20 --- /dev/null +++ b/koperkapel/constants.py @@ -0,0 +1,7 @@ +# Various constants + +TITLE = "Koperkapel" + +TILE_SIZE = 64 + +WIDTH, HEIGHT = 1024, 768 diff --git a/koperkapel/pgzapp.py b/koperkapel/pgzapp.py index 109e39e..ca9a23f 100644 --- a/koperkapel/pgzapp.py +++ b/koperkapel/pgzapp.py @@ -4,10 +4,8 @@ import sys from .scenes.base import Engine from .scenes.menu import MenuScene +from .constants import WIDTH, HEIGHT, TITLE -TITLE = "Koperkapel" -WIDTH = 1024 -HEIGHT = 768 engine = Engine(sys.modules[__name__], MenuScene()) diff --git a/koperkapel/scenes/constants.py b/koperkapel/scenes/constants.py deleted file mode 100644 index cc6f1cb..0000000 --- a/koperkapel/scenes/constants.py +++ /dev/null @@ -1,8 +0,0 @@ -# Various constants - -import os - -TILE_SIZE = 64 - -# FIXME: Do betterer -LEVEL_PATH = os.path.join(os.path.dirname(__file__), '..', 'levels') -- 2.34.1