def ranOver(self, source): self.kill() if "Koala" not in animals_freed: self.game.free_animal("Koala") cutscene = Cutscene(self.game, "freed_koalas", \ [image_util.load_image(os.path.join("cutscenes","koala_intro.png"))], \ image_util.load_sliced_sprites(210, 80, os.path.join("cutscenes","press_enter.png"))); cutscene.fire(self.game.player)
def ranOver(self, source): self.kill() if "Koala" not in animals_freed: self.game.free_animal("Koala") cutscene = Cutscene(self.game, "freed_koalas", \ [image_util.load_image(os.path.join("cutscenes","koala_intro.png"))], \ image_util.load_sliced_sprites(210, 80, os.path.join("cutscenes","press_enter.png"))) cutscene.fire(self.game.player)
def free_animal(self, animal_name): animals_freed[animal_name] = image_util.load_image(animal_info.info[animal_name][3]) self.hud.draw() if len(animals_freed) is 5 and self.animalsFreed is False: cutscene = Cutscene(self, "escape the zoo", \ [image_util.load_image(os.path.join("cutscenes","escape_the_zoo.png"))], \ image_util.load_sliced_sprites(210, 80, os.path.join("cutscenes","press_enter.png"))); cutscene.fire(self.player) self.animalsFreed = True
class KoalaDoor(GameObject): def __init__(self, image, x, y, game): super(KoalaDoor, self).__init__(image, (x * TILE_SIZE, y * TILE_SIZE), game) self.cutscene = Cutscene(self.game, "freed snakes", [image_util.load_image(os.path.join("cutscenes","snakes_freed.png"))], \ image_util.load_sliced_sprites(210, 80, os.path.join("cutscenes","press_enter.png"))) self.game.current_map.game_objects.add(self) def end(self, source): self.kill() self.cutscene.fire(source)
class DingoDoor(GameObject): def __init__(self, image, x, y, game): super(DingoDoor, self).__init__(image, (x*TILE_SIZE, y*TILE_SIZE), game) self.cutscene = Cutscene(self.game, "freed dingos", \ [image_util.load_image(os.path.join("cutscenes","dingo_free.png"))], \ image_util.load_sliced_sprites(210, 80, os.path.join("cutscenes","press_enter.png"))); self.game.current_map.game_objects.add(self) def end(self, source): self.kill() self.cutscene.fire(source) self.game.free_animal("Dingo")
def __init__(self, image, x, y, game): super(DingoDoor, self).__init__(image, (x*TILE_SIZE, y*TILE_SIZE), game) self.cutscene = Cutscene(self.game, "freed dingos", \ [image_util.load_image(os.path.join("cutscenes","dingo_free.png"))], \ image_util.load_sliced_sprites(210, 80, os.path.join("cutscenes","press_enter.png"))); self.game.current_map.game_objects.add(self)