sep-pm-platformer/project/level/LevelElementSymbols.py

57 lines
1.0 KiB
Python
Raw Normal View History

2023-03-25 15:41:32 +01:00
STATIC = 'static'
DYNAMIC = 'dynamic'
class LevelElementSymbols:
SOLID_BLOCK = {
'symbol': '#',
'type': STATIC,
'sprite_id': '_block'
}
SOLID_BLOCK_LEFT = {
'type': STATIC,
'sprite_id': '_block_left'
}
SOLID_BLOCK_RIGHT = {
'type': STATIC,
'sprite_id': '_block_right'
2023-03-25 15:41:32 +01:00
}
AIR = {
'type': STATIC,
'sprite_id': '_air'
}
GATE = {
'type':STATIC,
'sprite_id': '_gate'
}
GOAL_DOOR = {
'type':STATIC,
'sprite_id': '_goal_door'
}
SMALL_SPIKE = {
'type': STATIC,
'sprite_id': '_small_spike'
2023-03-25 15:41:32 +01:00
}
LEVER = {
'type':STATIC,
'sprite_id': '_lever'
}
PLAYER = {
'type': DYNAMIC,
'sprite_id': '_player'
}
dict = {
'#': SOLID_BLOCK,
'l': SOLID_BLOCK_RIGHT,
'r': SOLID_BLOCK_LEFT,
'': AIR,
'g': GATE,
'd': GOAL_DOOR,
'x': SMALL_SPIKE,
'h': LEVER,
'P': PLAYER
}