From: Neil Date: Tue, 1 Mar 2016 09:11:14 +0000 (+0200) Subject: Reorganize constants X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=c8660a5049dbd69c6ff3b04a4ff61c1674297d68;p=koperkapel.git Reorganize constants --- 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')