#include "jgame.h" #include "jdraw.h" #include int main(int argc, char *argv[]) { game::init(); bool should_exit=false; SDL_Event e; while (!should_exit) { while(SDL_PollEvent(&e)) { if (e.type==SDL_QUIT) { should_exit = true; break; } } if (!game::loop()) should_exit = true; } return 0; }