Welcome to this tutorial covering how to make a robust inventory system. In any game which uses items, you'll usually need some way for the player to view and u...
Thanks for the tutorial Laura! Just a question, is there any reason you specify the items on a JSON file?
Feels to me that it would be easier to manage if they were created individually under a folder or family since we load the json to memory anyway, unless there is a performance gain I'm missing.
I've not done any testing in terms of performance, but for me, it was down to preference. I didn't want to have loads of different objects even if they were nicely sat in a folder! I assume it would still work using a different object for each item, but I've not tried it!