X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=blobdiff_plain;f=ABM2%2Fmain.cpp;h=40efd1104e8ded8b8359c0a6b961724ab3c892d3;hp=5e1a52ac19125ccf5f86576fbdae4a52557badd5;hb=736410d1c7278c0d3290f0cb67705473c87cb3c5;hpb=9ab93a814d8ce0cf4d40fbb627ad21a28d265bcc diff --git a/ABM2/main.cpp b/ABM2/main.cpp index 5e1a52a..40efd11 100755 --- a/ABM2/main.cpp +++ b/ABM2/main.cpp @@ -14,18 +14,9 @@ #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 -enum SpriteID { - SPR_NONE = 0, - SPR_FIELD, - SPR_SOLID, - SPR_BRICK, - SPR_BLANK, - SPR_PLAYER, -}; - SpriteData defaultSprites[] = { - {SPR_FIELD, "FIELD0.png", 640, 480}, - {SPR_BLANK, "FIELD0.png", 640, 480}, + {SPR_FIELD, "Data/FIELD0.png", 640, 480}, + {SPR_BLANK, "Data/FIELD0.png", 640, 480}, {SPR_NONE, NULL, 0, 0} }; @@ -178,6 +169,7 @@ void CApplication::Run(int argc, char *argv[]) game.priority=100; CKernel::GetSingleton().AddTask(CMMPointer(&game)); + //set up the profiler with an output handler CProfileLogHandler profileLogHandler; CProfileSample::outputHandler=&profileLogHandler;