gummworld2.data (version $Id: data.py 407 2013-08-12 15:11:30Z stabbingfinger@gmail.com $) | index c:\cygwin\home\bw\devel\python\svn\gummworld2_devel\gamelib\gummworld2\data.py |
data.py - Data resource loader for Gummworld2.
Module data may be used directly, but use of the module functions is preferred:
* data_py is the absolute path for this module file's directory.
* data_dir is the root data directory.
* subdirs is a dict(name=subdir) for looking up resource sub-directories
by name. name is simply an abstract type or description.
* paths is a "cooked" dict containing lookups for subdirectories of each
data type.
Modules | ||||||
|
Functions | ||
|
Data | ||
__author__ = 'Gummbum, (c) 2011-2013' __version__ = '$Id: data.py 407 2013-08-12 15:11:30Z stabbingfinger@gmail.com $' data_dir = r'C:\cygwin\home\bw\devel\python\svn\gummworld2_devel\data' data_py = r'C:\cygwin\home\bw\devel\python\svn\gummworld2_devel\gamelib\gummworld2' paths = {'font': r'C:\cygwin\home\bw\devel\python\svn\gummworld2_devel\data\font', 'image': r'C:\cygwin\home\bw\devel\python\svn\gummworld2_devel\data\image', 'map': r'C:\cygwin\home\bw\devel\python\svn\gummworld2_devel\data\map', 'sound': r'C:\cygwin\home\bw\devel\python\svn\gummworld2_devel\data\sound', 'text': r'C:\cygwin\home\bw\devel\python\svn\gummworld2_devel\data\text', 'theme': r'C:\cygwin\home\bw\devel\python\svn\gummworld2_devel\data\themes'} subdirs = {'font': 'font', 'image': 'image', 'map': 'map', 'sound': 'sound', 'text': 'text', 'theme': 'themes'} |
Author | ||
Gummbum, (c) 2011-2013 |