- testing jgame

This commit is contained in:
2023-02-28 19:09:25 +01:00
parent 08f4160503
commit 07d4e03930
6 changed files with 57 additions and 4 deletions

20
source/jgame.cpp Normal file
View File

@@ -0,0 +1,20 @@
#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;
}