#include "game.h"
#include "ticks.h"
-#include "graphics.h"
+
+#include "graphics/graphics.h"
#include "input/inputManager.h"
#endif
}
+void cleanUp()
+{
+#ifdef DEBUGGING
+ cout << "Cleaning up" << endl;
+#endif
+
+ gameClean();
+
+ graphicsCleanUp();
+}
+
void run()
{
is_Running = true;
}
}
-void cleanUp()
-{
- gameClean();
-}
-
void blockUpdate()
{
long int start = tickCountMicro();
draw_Count = 0;
last_Second = tickCountMicro();
+
+ //cout << "ups:\t" << ups << endl;
+ //cout << "fps:\t" << fps << endl;
}
}
gameInput();
- if(isPressed(SDLK_ESCAPE))
+ if(wasReleased(SDLK_ESCAPE))
is_Running = false;
}