Posted:
Sep 17, 2005 @ 1:16pm
by kornalius
Why don't you group all the images that are the same size into a big image and draw your sprites using a different source rectangle? This would be a lot easier and would save a lot of memory too. 500 little images in seperate files is not a good design, you will have to change that for sure!
Posted:
Sep 17, 2005 @ 5:36pm
by StephC
A good ressource manager should enable the coder to dump a binary image of your loaded sprites in memory, then you simply have to compress this image (if the sprites are RLE encoded you'll gain space comparing to the png version) and loading all your sprite will be as easy as loading and uncompressing a single file.
You may need a custom handle based memory manager for this feature...