Last change
on this file since 958 was
958,
checked in by sam, 11 years ago
|
osx: automake does not support .mm files yet, so rename ios-image.mm back
to ios-image.cpp, but disable it on OS X because UIKit isn't available.
|
-
Property svn:keywords set to
Id
|
File size:
1012 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 | |
---|
17 | using 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 USE_SDL |
---|
25 | # include <SDL_main.h> |
---|
26 | #endif |
---|
27 | |
---|
28 | #if defined _WIN32 |
---|
29 | # undef main /* FIXME: still needed? */ |
---|
30 | #endif |
---|
31 | |
---|
32 | int main(int argc, char **argv) |
---|
33 | { |
---|
34 | SdlApp app("Map Test (SDL)", ivec2(640, 480), 30.0f); |
---|
35 | |
---|
36 | #if defined _WIN32 |
---|
37 | _chdir(".."); /* Temporary Win32 hack */ |
---|
38 | #endif |
---|
39 | Game *game = new Game("deushax/maps/testmap.tmx"); |
---|
40 | game->SetMouse(160, 96); |
---|
41 | |
---|
42 | /* Register an input driver and some debug stuff */ |
---|
43 | new SdlInput(); |
---|
44 | new DebugFps(10, 10); |
---|
45 | new DebugSprite(game); |
---|
46 | new DebugSphere(); |
---|
47 | //new DebugRecord("lolengine.ogm", FPS); |
---|
48 | new DebugStats("stats.txt"); |
---|
49 | |
---|
50 | app.Run(); |
---|
51 | |
---|
52 | return EXIT_SUCCESS; |
---|
53 | } |
---|
54 | |
---|
Note: See
TracBrowser
for help on using the repository browser.