Add draft of package layout.
authorSimon Cross <hodgestar@gmail.com>
Sun, 4 Sep 2016 12:55:08 +0000 (14:55 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sun, 4 Sep 2016 12:55:08 +0000 (14:55 +0200)
tabakrolletjie/data.py [deleted file]
tabakrolletjie/engine.py [new file with mode: 0644]
tabakrolletjie/gamestate.py [new file with mode: 0644]
tabakrolletjie/lights.py [new file with mode: 0644]
tabakrolletjie/obstacles.py [new file with mode: 0644]
tabakrolletjie/scenes/__init__.py [new file with mode: 0644]
tabakrolletjie/scenes/day.py [new file with mode: 0644]
tabakrolletjie/scenes/menu.py [new file with mode: 0644]
tabakrolletjie/scenes/night.py [new file with mode: 0644]
tabakrolletjie/stations.py [new file with mode: 0644]

diff --git a/tabakrolletjie/data.py b/tabakrolletjie/data.py
deleted file mode 100644 (file)
index 66b66bb..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-'''Simple data loader module.
-
-Loads data files from the "data" directory shipped with a game.
-
-Enhancing this to handle caching etc. is left as an exercise for the reader.
-
-Note that pyglet users should probably just add the data directory to the
-pyglet.resource search path.
-'''
-
-import os
-
-data_py = os.path.abspath(os.path.dirname(__file__))
-data_dir = os.path.normpath(os.path.join(data_py, '..', 'data'))
-
-def filepath(filename):
-    '''Determine the path to a file in the data directory.
-    '''
-    return os.path.join(data_dir, filename)
-
-def load(filename, mode='rb'):
-    '''Open a file in the data directory.
-
-    "mode" is passed as the second arg to open().
-    '''
-    return open(os.path.join(data_dir, filename), mode)
-
diff --git a/tabakrolletjie/engine.py b/tabakrolletjie/engine.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tabakrolletjie/gamestate.py b/tabakrolletjie/gamestate.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tabakrolletjie/lights.py b/tabakrolletjie/lights.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tabakrolletjie/obstacles.py b/tabakrolletjie/obstacles.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tabakrolletjie/scenes/__init__.py b/tabakrolletjie/scenes/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tabakrolletjie/scenes/day.py b/tabakrolletjie/scenes/day.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tabakrolletjie/scenes/menu.py b/tabakrolletjie/scenes/menu.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tabakrolletjie/scenes/night.py b/tabakrolletjie/scenes/night.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tabakrolletjie/stations.py b/tabakrolletjie/stations.py
new file mode 100644 (file)
index 0000000..e69de29