21 lines
381 B
C++
21 lines
381 B
C++
#include "api.h"
|
|
#include <time.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "keyHandlers.h"
|
|
#include "StarField.h"
|
|
#include "Menu.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
srand(time(NULL));
|
|
Init();
|
|
LoadImage("gfx.png");
|
|
|
|
RegisterSystem(new StarField());
|
|
RegisterSystem(new Menu());
|
|
RegisterKeyboardHandler(&menuKeyHandler);
|
|
|
|
while (!Update()) {}
|
|
Quit();
|
|
return 0;
|
|
} |