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:
shiva404
2026-02-15 21:23:02 +03:00
parent ab58803373
commit f679dde81f
12 changed files with 637 additions and 838 deletions

BIN
res/items/sword.jfif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB