Esempio n. 1
0
def main():

    #Do option parsing
    parser = OptionParser()
    initParser(parser)
    options, args = parser.parse_args()
    Helpers.debug = options.debug
    Helpers.logFile = options.logFile

    if len(args) != 0:
        lvl_name = args[0]

    else:
        lvl_name = "new_lvl.lvl"

    LevelMaker(get_path_for_level(lvl_name)).gameLoop()
    pygame.quit()
    sys.exit(0)
Esempio n. 2
0
def main():
    
    #Do option parsing
    parser = OptionParser()
    initParser(parser)
    options, args = parser.parse_args()
    Helpers.debug = options.debug
    Helpers.logFile = options.logFile
    
    if len(args) != 0: 
        lvl_name = args[0]

    else: 
        lvl_name = "new_lvl.lvl"
                    
    LevelMaker(get_path_for_level(lvl_name)).gameLoop()
    pygame.quit()
    sys.exit(0)
Esempio n. 3
0
def load_level (level_name):
    #    try:
    level_path = get_path_for_level(level_name)
    return Level(lvl_path=level_path)
Esempio n. 4
0
def load_level(level_name):
    #    try:
    level_path = get_path_for_level(level_name)
    return Level(lvl_path=level_path)