itch.io is community of indie game creators and players

Devlogs

Devlog 8 Dec 2024

The Last Land
A downloadable game for Windows

[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

Download The Last Land
Leave a comment