Posted February 17, 2022 by GomaGames
#game design
here’s another cool Mixin which further abstracts Inventory
When i say “Mixin” i’m referring to a Mixin Class which is basically a component that i can add to any other component, to give it the properties and/or behaviors that the Mixin provides
You can add it to anything to give it an Inventory!
One feature of this inventory is that you can have a reference to another inventory in order to share them.
In this demo, the tents share the same inventory. now whether this is a good or bad game design decision should be left to discussion, these capabilities now exist for us to play with