source: trunk/deushax/deushax.cpp @ 1229

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

build: minor Windows compilation fixes.

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