Use this... get the Gaddis C++ book. That's what I used. Had a lot of examples.
dbLoadImage("Grass.bmp", GRASS);
dbLoadImage("Path.bmp", PATH);.... etc with all sprites.
int tileMap[TILE_ROWS][TILE_COLS] =
{ {GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS},
{GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS},
{GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, PATHNW, PATH, PATH },
{GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, PATH, GRASS, GRASS},
{PATH, PATH, PATH, PATH, PATHNE, GRASS, GRASS, PATH, GRASS, GRASS},
{GRASS, GRASS, GRASS, GRASS, PATH, GRASS, GRASS, PATH, GRASS, GRASS},
{GRASS, GRASS, GRASS, GRASS, PATHSW, PATH, PATH, PATHSE, GRASS, GRASS},
{GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS},
{GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS},
{GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS, GRASS}
};
// Variables for the tile coordinates
int x = 0, y = 0;
// Display all the tiles specified in the map.
for (int r = 0; r < rows; r++)
{
// Set x to 0.
x = 0;
// Display all the tiles in this row.
for (int c = 0; c < TILE_COLS; c++)
{
dbPasteImage( map[r][c], x, y );
x += TILE_WIDTH;
}
// Increase y for the next row.
y += TILE_HEIGHT;
}
}
Get that book.. it helps a lot with using the most basic darkGDK functions... it is teaches basic C++ using the DarkGDK library... more fun than learning c++ using cin/cout and text files.
-Trying to get better