示例#1
0
def main():
    """Add states to control here"""
    run_it = tools.Control(setup.ORIGINAL_CAPTION)
    state_dict = {MAIN_MENU: main_menu.Menu(),
                  TOWN: levels.LevelState(TOWN),
                  CASTLE: levels.LevelState(CASTLE),
                  HOUSE: levels.LevelState(HOUSE),
                  OVERWORLD: levels.LevelState(OVERWORLD, True),
                  BROTHER_HOUSE: levels.LevelState(BROTHER_HOUSE),
                  INN: shop.Inn(),
                  ARMOR_SHOP: shop.ArmorShop(),
                  WEAPON_SHOP: shop.WeaponShop(),
                  MAGIC_SHOP: shop.MagicShop(),
                  POTION_SHOP: shop.PotionShop(),
                  BATTLE: battle.Battle(),
                  DUNGEON: levels.LevelState(DUNGEON, True),
                  DUNGEON2: levels.LevelState(DUNGEON2, True),
                  DUNGEON3: levels.LevelState(DUNGEON3, True),
                  DUNGEON4: levels.LevelState(DUNGEON4, True),
                  DUNGEON5: levels.LevelState(DUNGEON5, True),
                  INSTRUCTIONS: main_menu.Instructions(),
                  LOADGAME: main_menu.LoadGame(),
                  DEATH_SCENE: death.DeathScene(),
                  CREDITS: credits.Credits()
                  }

    run_it.setup_states(state_dict, c.MAIN_MENU)
    run_it.main()
示例#2
0
def main():
    run = tools.Control(setup.ORIGINAL_CAPTION)
    state_dict = {
        "MAIN_MENU": main_menu.Menu(),
        "LOAD_SCREEN": load_screen.Load_Screen(),
        "FIRST_LEVEL": first_level.First_Level()
    }
    run.setup_states(state_dict, "MAIN_MENU")
    run.main()
示例#3
0
文件: main.py 项目: wolmir/cristina
def main():
    """
    Add states to control here.
    """
    run_it = tools.Control(setup.ORIGINAL_CAPTION)
    state_dict = {
        MAIN_MENU: main_menu.Menu(),
        LEVEL1: level.Level(LEVEL1),
        CONTROLS: controls.Controls(),
        LIVES_LEFT: livesleft.LivesLeft(),
        GAME_OVER: gameover.GameOver()
    }

    run_it.setup_states(state_dict, MAIN_MENU)
    run_it.main()
示例#4
0
def main():
    '''
    Add states to control
    '''
    run_it = tools.control(setup.ORIGINAL_CAPTION)
    
    state_dict = {MENU:main_menu.Menu(),
                  menu2:menu.menu(run_it),
                  LOADGAME:main_menu.loadGame(),
                  LEVEL1:levels.levelState(LEVEL1),
                  LEVEL2:levels.levelState(LEVEL2),
                  LEVEL3:levels.levelState(LEVEL3),
                  LEVEL4:levels.levelState(LEVEL4),
                  LEVEL5:levels.levelState(LEVEL5),
                  LEVEL6:levels.levelState(LEVEL6),
                  EMAIL:messageScreen.email(),
                  SHOP:store.shop()
                    }
    run_it.setup_states(state_dict, c.MENU)
    run_it.main()