sep-pm-platformer/project/level/elements/static/InputLevelElement.py

15 lines
462 B
Python
Raw Permalink Normal View History

2023-03-27 11:46:03 +02:00
from abc import ABC
from level.elements.static.StaticLevelElement import StaticLevelElement
2023-03-27 11:46:03 +02:00
class InputLevelElement(StaticLevelElement, ABC):
def __init__(self, tile: dict, loaded_level, level_screen_manager: 'LevelScreenManager'):
super().__init__(tile, loaded_level, level_screen_manager)
2023-03-27 11:46:03 +02:00
if 'emitter_state' in tile:
self.emitter_state = tile['emitter_state'] == 'true'
else:
self.emitter_state = False