P.S. to previous commit: instead of Sprite flow load_sprites function was changed: gathering the number of sprites with the same names before second _ and hold it at sprites dict. also now sprites must be named as objectname_action_number. Main commit - full sprites support, with caching, transparency and smooth scaling. drawing function moved to Object methods
This commit is contained in:
BIN
res/items/sword.jfif
Normal file
BIN
res/items/sword.jfif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
@@ -5,7 +5,7 @@ width = 10
|
||||
height = 8
|
||||
|
||||
grass_def = {"id": "1", "name": "2", "sprite_name": "grass_small"}
|
||||
cell_def = {"type": "Ground", "cell": {"terrain_obj": grass_def, "creature_obj": {}, "item_obj": {}}}
|
||||
cell_def = {"terrain_obj": grass_def, "item_obj": {}, "creature_obj": {}}
|
||||
|
||||
out = {}
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 65 KiB |
BIN
res/sprites/sword_default_1.png
Normal file
BIN
res/sprites/sword_default_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.8 KiB |
Reference in New Issue
Block a user