#include "Playground.h"\r
\r
+#include "Engine/engine.h"\r
#include "Engine/VideoUpdate.h"\r
#include "SchemeReader.h"\r
\r
\r
void Playground::Update()\r
{\r
+ CMMPointer<Sprite> s = this->kernel->getSpriteManager()->getSprite(SPR_FIELD);\r
+ \r
+ s->blit(0, 0, 1.0, 1.0, 0, 0, COLOUR_RGBA(0, 0, 255, 255));\r
#ifdef WIN32\r
if(CInputTask::keyDown(DIK_ESCAPE))CKernel::GetSingleton().KillAllTasks();\r
\r
#define SCREEN_WIDTH 640\r
#define SCREEN_HEIGHT 480\r
\r
-enum SpriteID {\r
- SPR_NONE = 0,\r
- SPR_FIELD,\r
- SPR_SOLID,\r
- SPR_BRICK,\r
- SPR_BLANK,\r
- SPR_PLAYER,\r
-};\r
-\r
SpriteData defaultSprites[] = {\r
- {SPR_FIELD, "FIELD0.png", 640, 480},\r
- {SPR_BLANK, "FIELD0.png", 640, 480},\r
+ {SPR_FIELD, "Data/FIELD0.png", 640, 480},\r
+ {SPR_BLANK, "Data/FIELD0.png", 640, 480},\r
{SPR_NONE, NULL, 0, 0}\r
};\r
\r
game.priority=100;\r
CKernel::GetSingleton().AddTask(CMMPointer<ITask>(&game));\r
\r
+\r
//set up the profiler with an output handler\r
CProfileLogHandler profileLogHandler;\r
CProfileSample::outputHandler=&profileLogHandler;\r