예제 #1
0
def all_cmap(start=0):
    import game

    for i in range(start, len(CombatMapGroup.get_instance())):
        g = game.Game()
        g.init()
        g.load_record('1')
        if CombatMapGroup.get_instance().get(i):
            g.enter_combat_map(i)
            g.loop()
예제 #2
0
def all_cmap(start=0):
    import game

    for i in range(start, len(CombatMapGroup.get_instance())):
        g = game.Game()
        g.init()
        g.load_record('1')
        if CombatMapGroup.get_instance().get(i):
            g.enter_combat_map(i)
            g.loop()
예제 #3
0
 def enter_combat_map(self, id):
     self.state = GameState.COMBAT_MAP
     self.currentMap = CombatMapGroup.get_instance().get(id)
     utils.debug('enter combat map:', id)
     self.currentMap.move_to((31, 31))