Skip to content

Hexadotz/grid-based-inventory-system

Repository files navigation

Grid-based/tetris-like inventory system in godot

A comprehensive grid-based inventory management system inspired by survival horror games such as Resident Evil, Gloomwood, and Sir, You Are Being Hunted. This repository provides a framework with essential features necessary for any inventory system, designed to be extended and customized according to your project’s needs.

Animation

Features

Stacking Swapping Rotation Saving and loading items

You can watch a tutorial video on YouTube to see how to use this inventory system. Here’s a quick rundown of the setup process:
UPDATE: there is now a document explaining how to use this thing

  1. Add the item_db.gd Script to Autoload:

    • Navigate to your project’s autoload settings.
    • Add the item_db.gd script as a singleton.
    • Important: Name the singleton exactly as ItemsDB to avoid errors.
  2. Configure the item_db.gd Script:

    • Open the item_db.gd script.
    • Fill the ITEMS variable with the items you need. A template is provided in the script to illustrate the required structure for item definitions as well as some examples.
  3. Add Items to the Inventory:

    • Use the add_item(item_id) method provided by the inventory system.
    • Call this method to add items from the ITEMS dictionary to the inventory.

Credits

Some of the images used for the demo are from PNGEgg Special thanks to Piducod for finding some of the bug and reporting it

Notes

I'l probablly come back to this to update it more and make the code cleaner as well as add any features requested

No credits is necessary you can use this however you like but i'd apreciate it if you do, if you made a game with this i'd be really happy to know about

About

An inventory example similar to resident evil and diablo on the godot game engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published