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

12 lines
416 B
Python

from level.elements.StaticLevelElement import StaticLevelElement
from sprite.Spritesheet import Spritesheet
class InteractableElement(StaticLevelElement):
def __init__(self, spritesheet: Spritesheet, block_id: str):
super().__init__(spritesheet)
self.block_id = block_id
self.element = []
def connect_element(self, element: StaticLevelElement):
self.element.append(element)