How To Make One Image out of Pixels from Another Image?

edited December 2015 in How To...

I have a small game which consists of the player moving around the screen collecting items. I'm working on graphics for each of the 70 items (plus 5 for the terrain and player), and feel that loading 75 images in setup() would look very cluttered.

My goal is to put all of the images on the same png (they're 32x32, so it shouldn't be too large), and have a method that sets the item variable in each point of the map (each is an object that has data pertaining to it's location, whether or not the player or items are on that node, etc.) to a 32x32 square of pixels on the larger image containing all items. Is there a way to do this?

This discussion has been closed.