def __init__(self, environment, position): super().__init__(environment, position, 'Slime') self.is_damage = False self.damage_progress = 0.0 self.state_progress = 0.0 self.images = {} self._init_images(R.get_sprite_sheet("slime"))
def __init__(self, size): self.size = size self.direction = RIGHT self.is_jumping = False self.is_attacking = False self.is_unbeatable = False self.jumping_progress = 0 self.falling_progress = 0 self.attacking_progress = 0 self.images = {} self._init_images(R.get_sprite_sheet("ninja"))