コード例 #1
0
    def newGame(self, width, height, frame_rate):
        self.width = width
        self.height = height
        self.frame_rate = frame_rate
        Game.__init__(self, "Spaceship Adventure", width, height, frame_rate)
        self.data = SpaceshipData(width, height, frame_rate)

        return
コード例 #2
0
ファイル: SnakeGame.py プロジェクト: adirksen/Python
 def newGame(self,width, height, frame_rate):
     self.width = width
     self.height = height
     self.frame_rate = frame_rate
     Game.__init__(self, "Snake Game", width, height, frame_rate)   
     self.data = SnakeData(width,height,frame_rate)
     
     return
コード例 #3
0
 def newGame(self,width, height, frame_rate):
     self.width = width
     self.height = height
     self.frame_rate = frame_rate
     Game.__init__(self, "Kimber's Space Adventure", width, height, frame_rate)
     self.data = SpaceshipData(width,height,frame_rate)
     
     return
コード例 #4
0
 def newGame(self,width, height, frame_rate):
     self.width = width
     self.height = height
     self.frame_rate = frame_rate
     Game.__init__(self, "Space Battler!", width, height, frame_rate)   
     self.data = SpaceshipData(width,height,frame_rate)
     
     return
コード例 #5
0
ファイル: Adventure.py プロジェクト: C-Kimber/CodeCamp2015
    def newGame(self,width, height, frame_rate):
        global data
        name = 'CodeCamp2015'
        self.width = width
        self.height = height
        self.frame_rate = frame_rate
        if dynamicConfig.whatGame == 0:
            data = menuData(width, height, frame_rate)
        elif dynamicConfig.whatGame == 1:
            data = RaindanceData(width, height, frame_rate)
        elif dynamicConfig.whatGame == 2:
            data = blondData(width,height,frame_rate)
        elif dynamicConfig.whatGame == 3:
            data = chugData(width, height, frame_rate)

        elif dynamicConfig.whatGame == 99:
            data = DeadData(width,height,frame_rate)
        Game.__init__(self, name, width, height, frame_rate)
        self.data = data
        self.bigData = Data(width,height, frame_rate)
        return