Files
mathwars/main.cpp
Raimon Zamora fcb1f2a9ee Removed vsstudio project
works on mac
other minor changes
2021-08-24 18:20:48 +02:00

21 lines
362 B
C++

#include "api.h"
#include <unistd.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;
}