Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Along with issues like #48 and #49 to make the item collection/transfer animations cool, we'll also want to add a new inventory display and to improve the support for managing objects in an
If you add
--then you'll see something like this when you select that Thang in the level:
So we have a rudimentary inventory display already, but it doesn't have icon support for the things in the inventory, and it's way too small to make a core part of gameplay. So one thing to do would be to add icons there. Another thing to do, perhaps later, would be to make a separate visual interface for these things to give them the proper weight; I can suggest implementation details if someone suggest a visual design.
Right now, the
We should improve/replace all that code so that we can do things like reference actual Thangs which have been collected, have logic for what it means to have various Thangs in one's inventory, and extend collection to also include dropping / transferring / using / combining collected Thangs.
Now that dropping has been added to the inventory system, if you want to pick a thang up, move to a new position, and then drop the thang, the thang must have both the Collectable component added, but also the Moves component (or else the new position is never registered).
Should it remain this way (which should then be documented or added as a dependency), or should the Collects component added "pos" as a tracked property of any thang that is dropped?