Intelligent robot movement.
[sdlbotor.git] / main.cpp
blobd7515e4e260bb206dff1a78feb5537e67202d0ce
1 #include <cstdlib>
2 #include <time.h>
3 #include "Game.h"
5 botor::Game game;
7 void init()
9 if ( SDL_Init( SDL_INIT_VIDEO ) < 0 )
11 printf( "Unable to init SDL: %s\n", SDL_GetError() );
12 exit(1);
15 atexit(SDL_Quit);
18 SDL_WM_SetCaption( "botor", "SDLBotor" );
20 srand(time(0));
24 int main ( int argc, char** argv )
27 init();
29 game.run();
31 return 0;