Example #1
0
    def __init__(self, title, width, height, frame_rate):

        game.Game.__init__(self, title, width, height, frame_rate)

        # create a game instance
        self.mGame = frogger.Frogger(width, height, LANE_SIZE)
        return
Example #2
0
    def __init__(self, title, width, height, frame_rate):

        game.Game.__init__(self, title, width, height, frame_rate)
        # create a game instance
        # YOU SHOULD CHANGE THIS TO IMPORT YOUR GAME MODULE
        self.frogger = frogger.Frogger(NUM_COLS, NUM_ROWS, CELL_SIZE)
        return
Example #3
0
    def __init__(self, width, height, size, frame_rate):

        # title of the application is ""
        game_mouse.Game.__init__(self, "Frogger", width, height, frame_rate)
        # create a Picture instance
        self.mFrogger = frogger.Frogger(width, height, size)
        return
Example #4
0
    def __init__(self, width, height, size, fps):

        game_mouse.Game.__init__(self, "Pygame Starter",
                                 width,
                                 height,
                                 fps)
        self.mFrogger = frogger.Frogger(width, height, size)
        return
Example #5
0
    def __init__(self, title, width, height, frame_rate):

        game.Game.__init__(self, title, width, height, frame_rate)

        # create a game instance
        # YOU SHOULD CHANGE THIS TO IMPORT YOUR GAME MODULE
        self.mGame = frogger.Frogger(width, height)
        return
Example #6
0
 def __init__(self, title, width, height, frame_rate):
     super().__init__(title, width, height, frame_rate)
     self.game = frogger.Frogger(CELL_SIZE, NUM_ROW, NUM_COL, width, height)