Inventory & Sounds - Devlog #2


Since the last post, I've added audio to the game as well as an inventory and shop system.

Audio and Inventory

The audio includes an audio manager to hold and play the audio files. Sound effects for the player and UI/store have been added, as well as the music between the dungeon and town scenes.

The player's inventory is made to persist between scenes, using DontDestroyOnLoad. It holds the list of items an the quantities in a dictionary along with the player's gold, and updates the UI accordingly. The items' information is stored in a scriptable object for simplicity's sake. 

The specific enemy drops have not been implemented yet, but enemies are able to drop items on death based on the drop weight of each item.

Shop and Upgrades

The shop UI was designed by Mohit, as well as adding buttons to sell the items. The implementation was similar to the UI for the in-game inventory, which I changed it from his original implementation.


The upgrades are based on a simple abstract class. While the functions have not been implemented yet, the ability to buy them and view them in the UI are done.


Next up: implementing the upgrades and more polishing!

Get Spiritwood

Leave a comment

Log in with itch.io to leave a comment.