+ const int width = 800;
+ const int height = 480;
+
+ // temporary
+ SDL_Surface *bg(SDL_CreateRGBSurface(0, width, height, 32, 0xFF000000, 0xFF0000, 0xFF00, 0xFF));
+ SDL_FillRect(bg, 0, SDL_MapRGB(bg->format, 0, 0, 0));
+
+ try {
+ InitSDL sdl;
+ InitScreen screen(width, height);
+
+ Application app(screen.Screen(), new BattleState(bg));
+ app.Run();
+
+ return 0;
+ } catch (exception &e) {
+ cerr << "exception in main(): " << e.what() << endl;
+ return 1;
+ }