To give you an idea of where I am at, this is what I have so far.
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
const int ROWS = 10;
const int COLS = 13;
int level[ROWS][COLS] = {
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,1,1,1,1,1,1,1,1,1,1}
};
void CreateLevel();
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn();
dbSyncRate(60);
dbSetDisplayMode(1024, 768, 32);
dbLoadImage("dirtblock.png", 1);
// update the screen
CreateLevel();
// our main loop
while (LoopGDK())
{
dbSync();
}
// return back to windows
return;
}
void CreateLevel()
{
for(int i = 0; i < COLS; i++)
{
for(int j = 0; j < ROWS; j++)
{
if(level[j][i] == 1)
{
dbPasteImage(1, i * 64, j * 64);
}
}
}
return;
}