source: trunk/deushax/deushax.cpp @ 696

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

Merge all debug entity includes in <loldebug.h>.

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