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

17 lines
442 B
Python
Raw Normal View History

2023-03-27 11:46:03 +02:00
import uuid
from abc import ABC
from level.elements.LevelElement import LevelElement
2023-03-26 15:14:06 +02:00
from sprite.StaticSprite import StaticSprite
2023-03-27 11:46:03 +02:00
class StaticLevelElement(StaticSprite, LevelElement, ABC):
def __init__(self, tile: dict, loaded_level):
StaticSprite.__init__(self)
LevelElement.__init__(self, tile, loaded_level)
if 'id' in tile:
self.id = tile['id']
else:
self.id = uuid.uuid4()