Reorganize constants
authorNeil <neil@dip.sun.ac.za>
Tue, 1 Mar 2016 09:11:14 +0000 (11:11 +0200)
committerNeil <neil@dip.sun.ac.za>
Tue, 1 Mar 2016 09:11:14 +0000 (11:11 +0200)
koperkapel/constants.py [new file with mode: 0644]
koperkapel/pgzapp.py
koperkapel/scenes/constants.py [deleted file]

diff --git a/koperkapel/constants.py b/koperkapel/constants.py
new file mode 100644 (file)
index 0000000..54f8a20
--- /dev/null
@@ -0,0 +1,7 @@
+# Various constants
+
+TITLE = "Koperkapel"
+
+TILE_SIZE = 64
+
+WIDTH, HEIGHT = 1024, 768
index 109e39e752c92e0e6a9b966d049b5cca1d701635..ca9a23f6d11faeb364cb208ff3becbb26a34ca74 100644 (file)
@@ -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 (file)
index cc6f1cb..0000000
+++ /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')