game inventory/bag system javascript html5 game
- by Tom Burman
im building an RPG game using html5's canvas and javascript. Its tile based and im using an array to created my game map.
I would like the player to have a bag/inventory so when they select or land on a tile that has an item on it, they can click on it and store it in their bag/inventory.
I was thinking of using a 2d array to store the value of…