63 lines
1.2 KiB
Python
63 lines
1.2 KiB
Python
|
|
STATIC = 'static'
|
|
DYNAMIC = 'dynamic'
|
|
|
|
|
|
class LevelElementSymbols:
|
|
SOLID_BLOCK = {
|
|
'type': STATIC,
|
|
'sprite_id': '_block_full',
|
|
'themed': True
|
|
}
|
|
SOLID_BLOCK_TOP = {
|
|
|
|
}
|
|
SOLID_BLOCK_LEFT = {
|
|
'type': STATIC,
|
|
'sprite_id': '_block_left'
|
|
}
|
|
SOLID_BLOCK_RIGHT = {
|
|
'type': STATIC,
|
|
'sprite_id': '_block_right'
|
|
}
|
|
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'
|
|
}
|
|
LEVER = {
|
|
'type': STATIC,
|
|
'sprite_id': '_lever'
|
|
}
|
|
PLAYER = {
|
|
'type': DYNAMIC,
|
|
'sprite_id': '_player'
|
|
}
|
|
|
|
dict = {
|
|
'#': SOLID_BLOCK,
|
|
'+': SOLID_BLOCK,
|
|
'l': SOLID_BLOCK_RIGHT,
|
|
'r': SOLID_BLOCK_LEFT,
|
|
'': AIR,
|
|
'G': GATE,
|
|
'D': GOAL_DOOR,
|
|
'x': SMALL_SPIKE,
|
|
'L': LEVER,
|
|
'P': PLAYER
|
|
}
|
|
|
|
BLOCKS_LIST = [SOLID_BLOCK, SOLID_BLOCK_RIGHT, SOLID_BLOCK_LEFT]
|
|
|