I in my game I generate some images at runtime depending upon the size of the text that will go over it. Right now I am storing these in a hashmap using a string resembling the text. The question is, is there are better way to do this? Like some sort of ID system?
Also, I would like to expand this to not only be limited to images for when/if I want to include sounds or other resources.