Added Sprites

main
Jonas Wächter 2023-03-27 09:53:52 +02:00
parent ef9b2d179f
commit 2e28b93d53
7 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

View File

@ -32,7 +32,7 @@ class LoadedLevel:
if tile_element in LevelElementSymbols.BLOCKS_LIST: if tile_element in LevelElementSymbols.BLOCKS_LIST:
spritesheet = self.spritesheet_manager.get_sheet(level.theme + tile_element['sprite_id']) spritesheet = self.spritesheet_manager.get_sheet(level.theme + tile_element['sprite_id'])
sprite = BlockElement(spritesheet) sprite = BlockElement(spritesheet)
sprite.set_animation_state(str(random.randint(0, 3))) sprite.set_animation_state(str(random.randint(1, 3)))
sprite.position_scale.position = position sprite.position_scale.position = position
elif tile_element == LevelElementSymbols.GOAL_DOOR: elif tile_element == LevelElementSymbols.GOAL_DOOR: