Added cave sprites for cave theme

main
Eren Saglam 2023-03-27 18:52:34 +02:00
parent afe6945d94
commit 7382c404d0
2 changed files with 121 additions and 3 deletions

View File

@ -305,6 +305,97 @@
}
]
},
{
"id": "cave_block",
"subsheets": [
{
"id": "1",
"delays": [
1
],
"width": 12,
"height": 12
}
]
},
{
"id": "cave_block_bottom",
"subsheets": [
{
"id": "1",
"delays": [
1
],
"width": 12,
"height": 12
}
]
},
{
"id": "cave_block_left",
"subsheets": [
{
"id": "1",
"delays": [
1
],
"width": 12,
"height": 12
}
]
},
{
"id": "cave_block_right",
"subsheets": [
{
"id": "1",
"delays": [
1
],
"width": 12,
"height": 12
}
]
},
{
"id": "cave_block_top",
"subsheets": [
{
"id": "1",
"delays": [
1
],
"width": 12,
"height": 12
}
]
},
{
"id": "cave_block_top_left",
"subsheets": [
{
"id": "1",
"delays": [
1
],
"width": 12,
"height": 12
}
]
},
{
"id": "cave_block_top_right",
"subsheets": [
{
"id": "1",
"delays": [
1
],
"width": 12,
"height": 12
}
]
},
{
"id": "ghost_character",
"subsheets": [
@ -430,5 +521,32 @@
"height": 16
}
]
},
{
"id": "staubsauger",
"subsheets": [
{
"id": "on",
"delays": [
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"width": 48,
"height": 36
},
{
"id": "off",
"delays": [
9
]
}
]
}
]

View File

@ -18,7 +18,7 @@ from ui_elements.KeyManager import KeyManager
from ui_elements.LevelMenu import LevelMenu
from ui_elements.TextLabel import TextLabel
what_to_run = 'menu'
what_to_run = 'level'
def apply_frame_rate(number: float):
@ -104,7 +104,7 @@ elif what_to_run == 'level':
parsed_levels_manager.load_from_config('data/levels/levels.json')
generated_level = LoadedLevel(sprite_manager, spritesheet_manager)
generated_level.load_level(parsed_levels_manager.levels[0])
generated_level.load_level(parsed_levels_manager.levels[2])
ghost_character = PlayerSprite(spritesheet_manager.get_sheet("ghost_character"))
ghost_character.position_scale = PositionScale((90, 50), (1, 1))
sprite_manager.add_ui_element(DrawLayers.OBJECTS, ghost_character)