20 lines
377 B
C++
20 lines
377 B
C++
#include "jgame.h"
|
|
#include "jdraw.h"
|
|
#include <SDL2/SDL.h>
|
|
|
|
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;
|
|
} |