Screenshots with F9.
[sdlbotor.git] / main.cpp
blob75401852eaa69d390258184f7a100912437943ce
1 #include <cstdlib>
2 #include <cstdio>
3 #include <time.h>
4 #include "Game.h"
5 #include "luafuncs.h"
7 botor::Game game;
9 void init()
11 if ( SDL_Init( SDL_INIT_VIDEO ) < 0 )
13 printf( "Unable to init SDL: %s\n", SDL_GetError() );
14 exit(1);
17 atexit(SDL_Quit);
20 SDL_WM_SetCaption( "botor", "SDLBotor" );
22 srand(time(0));
27 int main ( int argc, char** argv )
30 init();
32 game.run();
34 return 0;