Hello All!
I already understand what a cache is, but I have a question about using one in my game. Firstly, what would be the best way to implement a cache using SFML and c++? I assume I'd need to make a collection of global textures that could be accessed from anywhere, but how should I do it?
Secondly, what kind of things should I load into the cache and what shouldn't I load? I think that I should load in the texture containing my common enemies and the texture containing different projectiles, but what other things should I be using there?
Thank you!