We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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?
Answers
https://Processing.org/reference/PImage_get_.html
https://Processing.org/reference/PImage_copy_.html
http://studio.ProcessingTogether.com/sp/pad/export/ro.9Ql2E8JBC54LJ
https://forum.processing.org/two/discussion/13880/how-to-make-one-pimage-a-collection-of-pixels-from-another-image