1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#all modules
#this is simply to ensure init type functions
#will work, because all needed game modules will
#be imported. groove on
#we'll just parse this string out and import everything in it
modules_string = """
game, gameplay, gamemenu, gamename, gamestart, gamesetup, gamewin,
gamehelp, gamepause, gamepref,
gfx, snd, txt, hud, levels, main, input, score,
objbox, objexplode, objguard, objpopshot, objtele,
objship, objshot, objsmoke, objtext, objwarp, stars, objpowerup, objasteroid
"""
def modules_import():
mods = modules_string.split(',')
for m in mods:
m = m.strip()
__import__(m)
modules_import()
|