def __init__(self, components: list): self.components = components Sprite.__init__(self, components[0]) self.dying_sprite = load_texture(components[1]) self.cost = components[2] self.max_hp = components[3] self.damage = components[4] self.blow_damage = components[5] self.consumption = components[6] self.delta = 0 self.side = None
def __init__(self, filename: str = None, scale: float = 1, image_x: float = 0, image_y: float = 0, image_width: float = 0, image_height: float = 0, center_x: float = 0, center_y: float = 0, repeat_count_x=1, repeat_count_y=1): GraphicDrawable.__init__(self) ArcadeSprite.__init__(self, filename, scale, image_x, image_y, image_width, image_height, center_x, center_y, repeat_count_x, repeat_count_y)