Devlog 8 Dec 2024
[UPDATE LOG]
Implement item selection in hotbar and backpack
- Added methods to select and update UI for selected items in `Hotbar` and `Backpack` classes. (WIP)
- Updated `SlotItemBase` class to handle selection state. (WIP) - Ensured item returns to original position after dragging in `OnEndDrag` method.
- Refactored `Item` class to handle item stacking and collection.
- Updated `BackpackController` to manage item addition, removal, and swapping. - Integrated `UiInputReader` to handle hotbar slot selection and item usage.
Add hotbar and backpack slot initialization and drawing logic
- Initialize hotbar slots in Hotbar.cs and draw items from the backpack.
- Implement slot selection and item usage in the hotbar.
- Initialize backpack slots in Backpack.cs and draw items from the backpack.
- Add event handlers for item swapping and collection in the backpack. - Implement drag-and-drop functionality for slot items in SlotItemBase.cs.
Add hotbar and hotbar slot prefab
Update backpack and backpack slot prefab
- Bug Fixed
Get The Last Land
The Last Land
Alpha Version
Status | In development |
Author | SeedSpark Team |
Tags | 2D, Casual, Farming, Pixel Art |
Leave a comment
Log in with itch.io to leave a comment.