예제 #1
0
파일: titlescreen.py 프로젝트: MacLeek/mh
    def load_game(self):
        res.fadeoutMusic(1000)
        try:
            path = os.path.join("resources", "saves", "save")
            self.game = loadObject(path)
        except IOError:
            return self.new_game()

        level = self.game.getChildByGUID(5001)
        sd.start(WorldState(level))
예제 #2
0
파일: titlescreen.py 프로젝트: MacLeek/mh
    def new_game(self):
        from lib2d.server.start import start_local

        def build():
            print "world stat"
            game = world.build()
            sd.start(WorldState(game.getChildByGUID(5001)))

        res.fadeoutMusic(1000)
        #sd.start(WaitScreen(build))
        game = world.build()
        start_local()
        sd.start(WorldState(game.getChildByGUID(5001)))
예제 #3
0
파일: titlescreen.py 프로젝트: MacLeek/mh
 def build():
     print "world stat"
     game = world.build()
     sd.start(WorldState(game.getChildByGUID(5001)))