Files
mathwars/main.cpp

19 lines
339 B
C++

#include "api.h"
#include "keyHandlers.h"
#include "StarField.h"
#include "Menu.h"
int main(int argc, char* argv[]) {
srand(getpid());
Init();
LoadImage("gfx.png");
RegisterSystem(new StarField());
RegisterSystem(new Menu());
RegisterKeyboardHandler(&menuKeyHandler);
while (!Update()) {}
Quit();
return 0;
}