Original Post
I'm reading the book Game Coding Complete and it talks about initializing a game in Win32, however, I'm using SDL. It outlines the steps as this (with my questions): - Check system resources (HD space, memory, input devices) Is hard drive space much of an issue anymore? How can I check memory (HD and RAM) with SDL? How can I check for input devices (and is it necessary)? - Check CPU speed Think this is geared more towards the 3D side, I'm working on a 2D game with a hard-coded resolution, so I most likely won't need to do this. - Estimate available VRAM Can retrieve with SDL_GetVideoInfo() - Initialize random number generator Ok. - Load programmer options for debugging purposes Is this just for 3D effects/window stuff (windowed/fullscreen)? - Initialize the memory cache Load needed game resources? - Create the window SDL_SetVideoMode()? - Initialize the audio system Call to SDL_InitSubSystem(SDL_INIT_AUDIO) I assume. The author said that due to multithreading reasons, check to make sure that only one instance is running, then intialize the audio. - Load options and saved game(s) Simple enough (I hope!). Although he does mention that Windows XP Home doesn't allow access to the Program Files folder, so just write these files to the Application Data folder? - Create the drawing surface Is this the same as creating a window (when using SDL)? - Initialize game systems (AI, physics) Should be easy. Sorry for so many questions/the long post, just want to make sure I get my first big game running efficiently.