source: trunk/deushax/deushax.cpp @ 942

Last change on this file since 942 was 865, checked in by sam, 12 years ago

core: move platform-specific code to specific directories.

  • Property svn:keywords set to Id
File size: 967 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
4//
5
6#if defined HAVE_CONFIG_H
7#   include "config.h"
8#endif
9
10#if defined _WIN32
11#   include <direct.h>
12#endif
13
14#include "core.h"
15#include "loldebug.h"
16
17using namespace lol;
18
19#include "game.h"
20#include "platform/sdl/sdlapp.h"
21#include "platform/sdl/sdlinput.h"
22#include "debugsprite.h"
23
24#if defined _WIN32
25#   undef main /* FIXME: still needed? */
26#endif
27
28int main(int argc, char **argv)
29{
30    SdlApp app("Map Test (SDL)", ivec2(640, 480), 30.0f);
31
32#if defined _WIN32
33    _chdir(".."); /* Temporary Win32 hack */
34#endif
35    Game *game = new Game("deushax/maps/testmap.tmx");
36    game->SetMouse(160, 96);
37
38    /* Register an input driver and some debug stuff */
39    new SdlInput();
40    new DebugFps(10, 10);
41    new DebugSprite(game);
42    new DebugSphere();
43    //new DebugRecord("lolengine.ogm", FPS);
44    new DebugStats("stats.txt");
45
46    app.Run();
47
48    return EXIT_SUCCESS;
49}
50
Note: See TracBrowser for help on using the repository browser.