Also in 2D Complete.

A grid inventory ready to drop in, for Godot 4 and Unity 6.3. Items take their footprint in cells, a sword three tall and a shotgun five wide; drag them, turn them a quarter, stack them, drop one on another to swap or to combine by your recipes, Shift+click them into a chest or onto the paper doll. Three skins, fantasy, survival and sci-fi, each in HD and pixel art, and 73 items to fill them.

Both formats are included: the Godot project and addon, a native Unity 6.3 package with C# scripts, UGUI prefabs and its demo scene, and the PNG art for other engines.

Try it first: click Run asset pack above and play the Godot demo in your browser.

var bag := InventoryView.new()
bag.skin = "survival"    # fantasy, scifi
bag.pixel = true         # the 32 px pixel art
add_child(bag)
bag.setup(ItemCatalogue.of("survival"))
bag.grid.add("handgun_ammo", 45)
bag.item_used.connect(_use)

What's inside

Three skins, each its slots, highlight, panel, tooltip and buttons as nine-slice PNGs, in HD and pixel art:

  • Fantasy: carved wood and brass, a parchment tooltip
  • Survival: worn steel and dark cloth, for horror and survival games
  • Sci-Fi: glowing cyan frames on deep blue

73 items, every one its own PNG at its footprint, 96 px a cell and 32 px pixel art, each with a name, kind, stack size, rarity, equipment slot and line of text:

  • Fantasy (46): swords, axes, a mace, a spear, a bow and a staff; shield, helmet, armour, gloves, boots, belt, ring and amulet; potions, food, ores, bars, gems, herbs, keys, scrolls, books, maps, torches, arrows and coins
  • Survival (27): handgun, revolver, shotgun, rifle, SMG and knife; their ammo, grenades, tinctures and salts to mix, an antiseptic spray, medkits, bandages and pills; keys, keycards, fuses, a flashlight, a lighter, a radio, food and water

Plus empty-slot outlines for the paper doll and the Hearth pixel font for the pixel art.

The code:

  • InventoryView: the grid on screen. While an item is held, its footprint lights where it would go, green to place, gold to stack, combine or swap, red where it can't. Drag, or click up and click down; R or a right click turns it; Ctrl+click takes half a stack; a right click uses it. Rarity tints, stack counts, a shadow under each item (longer under the held one), hover tooltips, and a glint twinkling on the items now and then (sparkle, on by default).
  • EquipmentView: the paper doll, nine slots, each taking only its own kind of item and lighting up when the held one fits. Pick the slots it shows.
  • InventoryGrid and Equipment: the rules alone: add tops stacks up first and finds room, turned if it must; sort lays everything out again; combine by recipes; save and load as plain data.
  • ItemCatalogue: the items and recipes from JSON; add your own items with your own art.
  • Demo: a backpack beside the equipment or a chest, the three skins and pixel art to switch between, the sparkle to turn off, sort, take all.

Compatibility

  • Godot 4.3 to 4.7.
  • Forward+, Mobile and Compatibility renderers: desktop, mobile and web.
  • Unity 6.3 to 6.6, Built-in.
  • Godot: pure GDScript, no plugins to enable and no GDExtension.
  • Unity: C# source on UGUI (com.unity.ugui), with Unity's built-in font; no TMP resource import.
  • The PNGs work in any engine.

Install

Godot: copy addons/inventory_kit/ into your project. Open addons/inventory_kit/demo/demo.tscn to play.

Unity: import the .unitypackage from the inventory-kit-unity.zip download, open Assets/InventoryKit/Demo/L_InventoryKitDemo.unity and press Play.

For the rest of the game

Fantasy UI SFX: the sounds for it: 323 RPG interface sounds, swords and armour on and off, chests, coins, potions, pages and scrolls, and the legendary-item fanfare, as WAV and OGG for any engine.

License

Use in unlimited commercial and non-commercial games. No attribution required. Don't resell or redistribute the items, skins or scripts themselves as an asset.

Related Packs

Purchase

Get this asset pack and 36 more for $19.99 USD
View bundle
Buy Now$4.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $4.99 USD. You will get access to the following files:

inventory-kit-1.3.0.unitypackage 1.5 MB
Version 1.3.0
inventory-kit-assets.zip 959 kB
Version 1.3.0

Leave a comment

Log in with itch.io to leave a comment.