From: Simon Cross Date: Sun, 4 Sep 2016 12:55:08 +0000 (+0200) Subject: Add draft of package layout. X-Git-Tag: tabakrolletjie-v1.0.0~272 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=f3600c28cd6e96abe7c0916860b0cc56b444545f;p=tabakrolletjie.git Add draft of package layout. --- diff --git a/tabakrolletjie/data.py b/tabakrolletjie/data.py deleted file mode 100644 index 66b66bb..0000000 --- a/tabakrolletjie/data.py +++ /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 index 0000000..e69de29 diff --git a/tabakrolletjie/gamestate.py b/tabakrolletjie/gamestate.py new file mode 100644 index 0000000..e69de29 diff --git a/tabakrolletjie/lights.py b/tabakrolletjie/lights.py new file mode 100644 index 0000000..e69de29 diff --git a/tabakrolletjie/obstacles.py b/tabakrolletjie/obstacles.py new file mode 100644 index 0000000..e69de29 diff --git a/tabakrolletjie/scenes/__init__.py b/tabakrolletjie/scenes/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tabakrolletjie/scenes/day.py b/tabakrolletjie/scenes/day.py new file mode 100644 index 0000000..e69de29 diff --git a/tabakrolletjie/scenes/menu.py b/tabakrolletjie/scenes/menu.py new file mode 100644 index 0000000..e69de29 diff --git a/tabakrolletjie/scenes/night.py b/tabakrolletjie/scenes/night.py new file mode 100644 index 0000000..e69de29 diff --git a/tabakrolletjie/stations.py b/tabakrolletjie/stations.py new file mode 100644 index 0000000..e69de29