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

10 lines
332 B
Python

from StaticLevelElement import StaticLevelElement
from sprite.Spritesheet import Spritesheet
class InteractableElement(StaticLevelElement):
def __init__(self, spritesheet: Spritesheet, block_id: str, requires: list[str]):
super().__init__(spritesheet)
self.block_id = block_id
self.requires = requires