DevLog5
Ultra Shapes » Devlog
Dev Log 5: Inventory System
Overview:
This update details the implementation of a modular inventory system using three main components: ItemClass
, SlotClass
, and InventoryManager
. The system supports item management, slot functionality, and drag-and-drop mechanics, integrated with a dynamic UI.
Key Features
Item Management
ItemClass
: Defines reusable item data using ScriptableObjects.- Attributes: Name, icon, stackability, and type (
Misc
,Tool
,Consumable
). - Consumables affect health (
addHealth
) or mana (addMP
); tools include categories likeSword
andAxe
.
- Attributes: Name, icon, stackability, and type (
Slot Functionality
SlotClass
: Manages individual inventory slots.- Tracks item and count.
- Supports adding, removing, and stacking items.
Inventory Integration
InventoryManager
: Coordinates items and slots with UI updates.- Features:
- Add/remove items with stack merging for stackable types.
- Drag-and-drop functionality with snapping to closest slot.
- Visual feedback via UI updates and hover icons.
- Features:
Next Steps
- Add tooltips, animations, and sound effects for better feedback.
- Test edge cases like full inventory and non-stackable conflicts.
- Improve visuals with slot highlighting during drag-and-drop.
Summary
The inventory system is functional and supports flexible item management with a responsive UI. Next, efforts will focus on polishing the user experience and testing.
Get Ultra Shapes
Ultra Shapes
Ultra Shapes
Status | Released |
Authors | taejaun100, 2OwenK2 |
Genre | Role Playing, Action, Adventure |
Tags | 2D, Indie, Pixel Art, Top-Down, Turn-based, Unity |
More posts
- DevLog 7 Part ADec 14, 2024
- DevLog 6 part ADec 14, 2024
- DevLog 5 Part ADec 14, 2024
- DevLog 4 Part ADec 14, 2024
- DevLog 3 Part ADec 14, 2024
- DevLog 2 Part ADec 14, 2024
- DevLog1 Part BDec 14, 2024
- DevLog7Dec 13, 2024
- DevLog4Nov 22, 2024
Leave a comment
Log in with itch.io to leave a comment.