I'm trying to have a 50x50 array to store a map in, and each number represents a tile. Origionally I had it as a 1D array, and it worked ok...but the AI would have sucked very very bad. Anyway, with my 1D array I did it like this:
int map[5]={25,17,03,10,30);
My question is how do you do this with 2D arrays?
[guess]
int map[5][1]={25,17,03,11,20);
int map[5][2]={23,07,04,10,30);
int map[5][3]={15,13,13,52,30);
int map[5][4]={25,15,03,10,00);
int map[5][5]={22,27,25,13,30);
[/guess]
Thanks!
//napKIN