Example #1
0
    def __StartGame(self):
        background.SetViewDistanceSet(background.DISTANCE0, 25600)
        background.SelectViewDistanceNum(background.DISTANCE0)

        app.SetGlobalCenterPosition(self.playerX, self.playerY)

        net.StartGame()
    def __StartGame(self):
        background.SetViewDistanceSet(background.DISTANCE0, 25600)
        """
		background.SetViewDistanceSet(background.DISTANCE1, 19200)
		background.SetViewDistanceSet(background.DISTANCE2, 12800)
		background.SetViewDistanceSet(background.DISTANCE3, 9600)
		background.SetViewDistanceSet(background.DISTANCE4, 6400)
		"""
        background.SelectViewDistanceNum(background.DISTANCE0)

        app.SetGlobalCenterPosition(self.playerX, self.playerY)

        GFHhg54GHGhh45GHGH.StartGame()
Example #3
0
    def SelectViewDistanceNum(self, arg):
        "View distance (0~4)"
        if arg.isdigit() == 0:
            self.Print("Enter between 0 to 4")
        else:
            settingnum = int(arg)

            if settingnum < 0 or settingnum > 4:
                self.Print("View distance range is 0 to 4")

            else:
                background.SelectViewDistanceNum(settingnum)
                self.Print("View distance: %d" % (settingnum))