initial sprites support, only terrain for now

This commit is contained in:
shiva404
2026-02-14 03:09:52 +03:00
parent d596101bd2
commit d6a106301e
10 changed files with 126 additions and 110 deletions

View File

@@ -4,7 +4,7 @@ from copy import deepcopy
width = 10
height = 8
grass_def = {"id": "1", "name": "2", "sprite": "grass_small.png"}
grass_def = {"id": "1", "name": "2", "sprite": "grass_small"}
cell_def = {"type": "Ground", "cell": {"terrain_obj": grass_def, "creature_obj": {}, "item_obj": {}}}
out = {}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 KiB

BIN
res/sprites/grass.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

BIN
res/sprites/grass_small.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB