예제 #1
0
 def new(self):
     self.intro = False
     self.playing = True
     self.stones = []
     self.rabbit = Rabbit(self)
     self.doged_stone = 0
     self.run()
예제 #2
0
    def __init__(self):
        pygame.init()

        self.gameDisplay = pygame.display.set_mode(
            (DISPLAY_WIDTH, DISPLAY_HEIGHT))
        pygame.display.set_caption(TITLE)

        self.clock = pygame.time.Clock()
        self.playing = True

        self.last_spawn_stone = pygame.time.get_ticks()
        self.stones = []

        self.rabbit = Rabbit(self)
예제 #3
0
    def __init__(self):
        pygame.init()

        self.gameDisplay = pygame.display.set_mode(
            (DISPLAY_WIDTH, DISPLAY_HEIGHT))
        pygame.display.set_caption(TITLE)

        self.clock = pygame.time.Clock()
        self.playing = False
        self.intro = True

        self.last_spawn_stone = pygame.time.get_ticks()
        self.last_spawn_carrot = pygame.time.get_ticks()
        self.last_spawn_specialcarrot = pygame.time.get_ticks()
        self.stones = []
        self.carrots = []
        self.specialcarrots = []

        self.rabbit = Rabbit(self)

        self.doged_stone = 0
        self.doged_carrot = 0