4 * Created on: Aug 1, 2012
8 #include "app/Application.h"
9 #include "battle/BattleState.h"
10 #include "sdl/InitScreen.h"
11 #include "sdl/InitSDL.h"
16 using app::Application;
17 using battle::BattleState;
18 using sdl::InitScreen;
26 int main(int argc, char **argv) {
27 const int width = 800;
28 const int height = 480;
31 SDL_Surface *bg(SDL_CreateRGBSurface(0, width, height, 32, 0xFF000000, 0xFF0000, 0xFF00, 0xFF));
32 SDL_FillRect(bg, 0, SDL_MapRGB(bg->format, 0, 0, 0));
36 InitScreen screen(width, height);
38 Application app(screen.Screen(), new BattleState(bg));
42 } catch (exception &e) {
43 cerr << "exception in main(): " << e.what() << endl;