Oooh!
I can hardly wait to hear the theme! I hope it’s Collosal Roads. I’m going to try to stay up to hear the theme, though I may have to get off before then. Tomorrow I’ll start work.
Anyway, I think I figured out what basecode is (a little bit of prewritten main code?), and I’ve got mine.
#include <SDL.h>
int main(int argc, char *argv[])
{
if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO) < 0) {
return 1;
}
atexit(SDL_Quit);
screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE|SDL_DOUBLEBUF);
if(screen == NULL) {
return 1;
}
int done = -1;
while(done < 0) {
SDL_Event event;
while(SDL_PollEvent(&event)) {
if(event.type == SDL_QUIT) done = 0;
}
}
return done;
}