How to implement an inventory system for a 2D game?
Making my first game, a 2D RPG, using C++ and SFML for the graphics, and everything works so far, but I'm stuck now at the inventory system.
I looked up linked lists, but I'm not sure how to actually implement that (with SFML) to get objects to show up in their correct positions on the screen, and how to interact with those objects, etc. It'd be great if there was a tutorial on making a 2D inventory system.
I already defined X and Y coords for the positions of each item sprite (for when I display it). I've also made a few test images (all identical sized images). The buttons on screen work, but don't do anything so far.
To restate, I don't know how to use a linked list to make an inventory system.
Here are some examples (Screenshots (3) - Imgur) of what I have in the game so far. Pardon the Paint graphics; they're not place holders for future amazing graphics, I just suck at drawing and I'm okay with that since this is for fun.
Thanks in advance for any help.