Those work, but as you've got a rather large map, consider putting it in a text file. You could make '-'s be grass and then '~' be water. Then, you could load the file, and based on the character it reads, it could draw a certain character. Here's some minimal code. It will load up a file, assign some values into a map[][] array based on the characters on the file, and then print the map:
Code:
#include <fstream.h>
#include <stdio.h>
int map[80][15];
#define GRASS 1
#define WATER 2
...
void Map()
{
int i;
int j;
ifstream fmap("map.txt");
char str[1200]; // That's a big array but it needs to go through the file
for(i = 0; i < 15; i++)
{
fmap >> str;
for(j = 0; j < 80; j++)
{
switch((int)str[j])
{
case '-':
map[j][i] = GRASS;
break;
case '~':
map[j][i] = WATER;
break;
}
}
}
fmap.close();
// Now show the map
char tile = (char)176;
HANDLE std = GetStdHandle(STD_OUTPUT_HANDLE);
for (i = 0; i < 15; i++)
{
for (j = 0; j < 80; j++)
{
switch(map[j][i])
{
case GRASS:
gotoxy(j,i);
SetConsoleTextAttribute(std, F_D_GREEN | B_GREEN); // For simplicty's sake, pretend I have all the colors pre-defined as these
printf("%c", tile);
SetConsoleTextAttribute(std, F_GREY | 0); // I like changing the text back to grey
break;
case WATER:
gotoxy(j,i);
SetConsoleTextAttribute(std, F_BLUE | F_GREEN | B_BLUE);
printf("%c", tile);
SetConsoleTextAttribute(std, F_GREY | 0);
break;
}
}
printf("\n");
}
}
That's some basic code. Hope that helps a little.
Brendan