Icons now work way better and don't have the the 'Rayview cuts icons' bug. It actually was a bug in the lel-guecs Sprite class that was using the TextureRect from the source sprite. Now its initialized with the framesize from the .json. This also uses the new guecs::Icon, but I have to fix that as it doesn't scale correctly. Closes #2.
This commit is contained in:
parent
b311713064
commit
ff7111b006
22 changed files with 81 additions and 64 deletions
|
@ -80,11 +80,6 @@
|
|||
"frame_width": 256,
|
||||
"frame_height": 256
|
||||
},
|
||||
"torch_horizontal_floor_ICON":
|
||||
{"path": "assets/icons/torch_crappy_ICON.png",
|
||||
"frame_width": 128,
|
||||
"frame_height": 128
|
||||
},
|
||||
"peasant_girl":
|
||||
{"path": "assets/sprites/peasant_girl_2.png",
|
||||
"frame_width": 256,
|
||||
|
@ -100,11 +95,6 @@
|
|||
"frame_width": 256,
|
||||
"frame_height": 256
|
||||
},
|
||||
"healing_potion_small_ICON":
|
||||
{"path": "assets/icons/healing_potion_small_ICON.png",
|
||||
"frame_width": 128,
|
||||
"frame_height": 128
|
||||
},
|
||||
"well_down":
|
||||
{"path": "assets/sprites/well_down.png",
|
||||
"frame_width": 256,
|
||||
|
|
12
assets/icons.json
Normal file
12
assets/icons.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"healing_potion_small":
|
||||
{"path": "assets/icons/healing_potion_small.png",
|
||||
"frame_width": 96,
|
||||
"frame_height": 96
|
||||
},
|
||||
"torch_horizontal_floor":
|
||||
{"path": "assets/icons/torch_horizontal_floor.png",
|
||||
"frame_width": 96,
|
||||
"frame_height": 96
|
||||
}
|
||||
}
|
BIN
assets/icons/healing_potion_small.png
Normal file
BIN
assets/icons/healing_potion_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 11 KiB |
Binary file not shown.
Before Width: | Height: | Size: 7.5 KiB |
BIN
assets/icons/torch_horizontal_floor.png
Normal file
BIN
assets/icons/torch_horizontal_floor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
Loading…
Add table
Add a link
Reference in a new issue