Medieval Crafter - Devlog #3 - Inventory System and Resource Collection
15/04/2024
Hey crafters,
Welcome to the third devlog for Medieval Crafter!
In this update, I'm excited to share the progress I've made on implementing the inventory system and resource collection mechanics in the game.
Inventory System: I've created a dedicated canvas divided into two parts to accommodate the inventory system. On the left side, there are empty item slots that will be populated with the sprite of the collected resource and its quantity. On the right side, the selected resource's sprite, name, and description are displayed.
Resource Collection: With the help of Artificial Intelligence, I've designed custom icons to represent different resources in the game world. When the player approaches a resource and begins collecting it, the inventory is automatically populated with the collected items.
Drop Quantity Popup: Implemented a feature where the player can right-click on an item to bring up a popup menu, allowing them to select the quantity of resources they want to drop.
Inventory Management: Each item slot is associated with a script to pass various parameters, including the resource's name, quantity, sprite, empty sprite (in case the slot is empty), description, maximum stack size, and shader to manage selection status and other visual effects.
Inventory Handling: When an item slot reaches its limit, the resource will be stored in the next available slot. If there's no space left in the inventory, the player won't be able to collect the resource, preventing inventory overflow.
User Interaction: The inventory can be accessed by pressing the tab key, providing seamless interaction for the player to manage their collected resources.
I'm thrilled with the progress so far, and I can't wait to continue refining these systems and adding more depth to the gameplay experience in future updates.
Thanks for following along on this journey!
Pierporz
Get Medieval Crafter
Medieval Crafter
More posts
- Medieval Crafter - Devlog #10 - Main Menu and Save/Load FunctionalityJun 29, 2024
- Medieval Crafter - Devlog #9 - Quest System and Inventory WarningJun 04, 2024
- Medieval Crafter - Devlog #8 - Expanded Content and Day and NightMay 19, 2024
- Medieval Crafter - Devlog #7 - Buyer SystemMay 14, 2024
- Medieval Crafter - Devlog #6 - Crafting Enhancements and Seller SystemMay 06, 2024
- Medieval Crafter - Devlog #5 - Crafting System and Sell ItemsApr 30, 2024
- Medieval Crafter - Devlog #4 - Terrain Integration and Automated Resource Spawni...Apr 23, 2024
- Medieval Crafter - Devlog #2 - Implementing Resource ExtractionApr 10, 2024
- Medieval Crafter - Devlog #1 - Foundational SetupApr 03, 2024
Leave a comment
Log in with itch.io to leave a comment.