Made it so you can see the sword in your inventory and pick them up from the ground.

This commit is contained in:
Zed A. Shaw 2026-03-30 11:33:08 -04:00
parent dfc86452fc
commit aa83417ba3
6 changed files with 26 additions and 2 deletions

View file

@ -17,6 +17,11 @@
"frame_width": 256,
"frame_height": 256
},
"sword_1":
{"path": "assets/items/sword_1_sprite.png",
"frame_width": 256,
"frame_height": 256
},
"ladder_down":
{"path": "assets/sprites/ladder_down.png",
"frame_width": 256,

View file

@ -3,5 +3,10 @@
{"path": "assets/icons/repair_kit.png",
"frame_width": 96,
"frame_height": 96
},
"sword_1":
{"path": "assets/icons/sword_1_icon.png",
"frame_width": 300,
"frame_height": 100
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -13,5 +13,19 @@
{"_type": "Sprite", "name": "repair_kit", "width": 256, "height": 256, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"SWORD_1": {
"id": "SWORD_1",
"name": "Robot Repair Kit",
"description": "A healing item for robots.",
"inventory_count": 1,
"components": [
{"_type": "Tile", "display": 1004,
"foreground": "items/fg:potion",
"background": "color:transparent"
},
{"_type": "Sprite", "name": "sword_1", "width": 300, "height": 100, "scale": 1.0},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB