2023-03-25 15:41:32 +01:00
|
|
|
|
|
|
|
STATIC = 'static'
|
|
|
|
DYNAMIC = 'dynamic'
|
|
|
|
|
|
|
|
|
|
|
|
class LevelElementSymbols:
|
|
|
|
SOLID_BLOCK = {
|
2023-03-26 14:12:46 +02:00
|
|
|
'type': STATIC,
|
2023-03-26 15:14:06 +02:00
|
|
|
'sprite_id': '_block_full',
|
|
|
|
'themed': True
|
|
|
|
}
|
|
|
|
SOLID_BLOCK_TOP = {
|
|
|
|
|
2023-03-26 14:12:46 +02:00
|
|
|
}
|
|
|
|
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 = {
|
2023-03-26 14:12:46 +02:00
|
|
|
'type': STATIC,
|
2023-03-26 17:19:30 +02:00
|
|
|
'sprite_id': 'air'
|
2023-03-26 14:12:46 +02:00
|
|
|
}
|
|
|
|
GATE = {
|
|
|
|
'type':STATIC,
|
2023-03-26 17:19:30 +02:00
|
|
|
'sprite_id': 'gate'
|
2023-03-26 14:12:46 +02:00
|
|
|
}
|
|
|
|
GOAL_DOOR = {
|
2023-03-26 15:14:06 +02:00
|
|
|
'type': STATIC,
|
2023-03-26 17:19:30 +02:00
|
|
|
'sprite_id': 'goal_door'
|
2023-03-26 14:12:46 +02:00
|
|
|
}
|
|
|
|
SMALL_SPIKE = {
|
|
|
|
'type': STATIC,
|
2023-03-26 17:19:30 +02:00
|
|
|
'sprite_id': 'small_spike'
|
2023-03-25 15:41:32 +01:00
|
|
|
}
|
2023-03-26 14:12:46 +02:00
|
|
|
LEVER = {
|
2023-03-26 15:14:06 +02:00
|
|
|
'type': STATIC,
|
2023-03-26 17:19:30 +02:00
|
|
|
'sprite_id': 'lever'
|
2023-03-26 14:12:46 +02:00
|
|
|
}
|
|
|
|
PLAYER = {
|
|
|
|
'type': DYNAMIC,
|
2023-03-26 17:19:30 +02:00
|
|
|
'sprite_id': 'player'
|
2023-03-26 14:12:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dict = {
|
|
|
|
'#': SOLID_BLOCK,
|
2023-03-26 17:19:30 +02:00
|
|
|
'+': SOLID_BLOCK_TOP,
|
2023-03-26 14:12:46 +02:00
|
|
|
'l': SOLID_BLOCK_RIGHT,
|
|
|
|
'r': SOLID_BLOCK_LEFT,
|
|
|
|
'': AIR,
|
2023-03-26 15:14:06 +02:00
|
|
|
'G': GATE,
|
|
|
|
'D': GOAL_DOOR,
|
2023-03-26 14:12:46 +02:00
|
|
|
'x': SMALL_SPIKE,
|
2023-03-26 15:14:06 +02:00
|
|
|
'L': LEVER,
|
2023-03-26 14:12:46 +02:00
|
|
|
'P': PLAYER
|
|
|
|
}
|
|
|
|
|
2023-03-26 15:14:06 +02:00
|
|
|
BLOCKS_LIST = [SOLID_BLOCK, SOLID_BLOCK_RIGHT, SOLID_BLOCK_LEFT]
|
|
|
|
|
2023-03-26 17:19:30 +02:00
|
|
|
INTERACTABLE_LIST = [LEVER]
|
|
|
|
|