Exemplo n.º 1
0
 def __init__(self, player, x_position, y_position):
     generic_bear.__init__(self, x_position, y_position)
     self.image = pygame.image.load("img/panda_swim_down.png")
     self._max_preperation_time = 500
     self._preperation_time = self._max_preperation_time
     self.substate = None
     self.player = player
     self.speed = 200
     self.jump_multiplier = 0.5
     self.jump_duration = 250
     self.jump_progress = 0
     self.drift_speed = 100
Exemplo n.º 2
0
 def __init__(self, player, x_position, y_position):
     generic_bear.__init__(self, x_position, y_position)
     self.rect.width = 200
     self.rect.height = 200
     self._target_range = 300
     self._swipe_duration = 1000
     self._swipe_progress = 0
     self._swipe_width = 50
     self._swipe_height = 90
     self.paw_rect = None
     self.player = player
     self.drift_speed = 250
     if (self.rect.x < 400):
         self.attack_direction = self.RIGHT
     else:
         self.attack_direction = self.LEFT
     if (self.attack_direction == self.RIGHT):
         self.image = pygame.image.load("img/panda_swipe_left.png")
     else:
         self.image = pygame.image.load("img/panda_swipe_right.png")
     self.paw_state = self.PAW_UP