17 Aug 2010 01:34
Re: new, tiny, modest game
Nikola Whallon <6.saturn.6 <at> gmail.com>
2010-08-16 23:34:37 GMT
2010-08-16 23:34:37 GMT
Question:
When loading images, I have a nice function in ImageObject that does
that for everything, but I call it all over the places (for example,
in the functions initShip, initPlanet, etc, each one loads its image).
This makes quitting after checking if the image loaded properly rather
difficult. Is it smarter to load all my textures at the beginning of
execution? And have my main.cpp look more like:
initSDL()
initOpenGL()
loadTextures()
statemachine{}
?
Thanks,
saturn
RSS Feed