source: trunk/deushax/deushax.cpp @ 686

Last change on this file since 686 was 686, checked in by sam, 10 years ago

Put everything in the "lol" namespace. Better late than never.

  • Property svn:keywords set to Id
File size: 1007 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
16using namespace lol;
17
18#include "game.h"
19#include "sdlapp.h"
20#include "sdlinput.h"
21#include "debugfps.h"
22#include "debugsprite.h"
23#include "debugsphere.h"
24#include "debugrecord.h"
25#include "debugstats.h"
26
27#if defined _WIN32
28#   undef main /* FIXME: still needed? */
29#endif
30
31int main(int argc, char **argv)
32{
33    SdlApp app("Map Test (SDL)", vec2i(640, 480), 30.0f);
34
35#if defined _WIN32
36    _chdir(".."); /* Temporary Win32 hack */
37#endif
38    Game *game = new Game("maps/testmap.tmx");
39    game->SetMouse(160, 96);
40
41    /* Register an input driver and some debug stuff */
42    new SdlInput();
43    new DebugFps(10, 10);
44    new DebugSprite(game);
45    new DebugSphere();
46    //new DebugRecord("lolengine.ogm", FPS);
47    new DebugStats("stats.txt");
48
49    app.Run();
50
51    return EXIT_SUCCESS;
52}
53
Note: See TracBrowser for help on using the repository browser.