-
Hi, I'm new on Bevy. I need to draw inventory with grids and put some items into it. Need a classical inventory. Should I need to calculate empty spots in inventory grids? What do you suggest to me? I'm kinda confused. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi PS: It's a game to learn bevy, in early stage |
Beta Was this translation helpful? Give feedback.
Hi
I'm also a bevy newbie :)
I did an inventory UI and managment using drag and drop on my game. It's based on Grid nodes UI (https://github.com/jfouche/kill-them-all/blob/main/src/in_game/menu/window_inventory.rs), and an
[Option<Entity>]
to store items in the inventory (https://github.com/jfouche/kill-them-all/blob/main/src/components/inventory.rs)I hope it will help you
PS: It's a game to learn bevy, in early stage