I am doing a game. I want to load all my sprites and Images in the beginning of a game like in a Class named AssetsLoader and then the loaded Images i need to access and add when ever i want it to display. Can you give me a proper example code snippet.
I would not suggest doing so, as it may consume too much memory on device and better divide images in scenes, but that is depending on the amount of images you have.
Comments
But the class could easily look like that: