def new(self): self.intro = False self.playing = True self.stones = [] self.rabbit = Rabbit(self) self.doged_stone = 0 self.run()
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)
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