- testing jgame
This commit is contained in:
20
source/jgame.cpp
Normal file
20
source/jgame.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user