sep-pm-platformer/project/level/elements/InteractableElement.py

10 lines
370 B
Python

from LevelElement import LevelElement
from sprite.StaticSprite import StaticSprite
class InteractableElement(LevelElement):
def __init__(self, x_position : int, y_position : int, sprite : StaticSprite, block_id : str, requires : list[str]):
super().__init__(x_position, y_position, sprite)
self.block_id = block_id
self.requires = requires