1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
void LoadMap()
{
for (int a = 0; a < 80;++a)
{
for (int b = 0; b < 60; ++b)
{
if(curmap[a][b] == 0)
{
//rectfill(map, a*32, b*32, a*32+32, b*32+32, makecol(0, 0, 0));
}
else if(curmap[a][b] == 1)
{
//rectfill(map, a*32, b*32, a*32+32, b*32+32, makecol(255, 0, 0));
}
textprintf_ex(map, font, a*10, b*10, makecol(0, 0, 0), -1, "%d", curmap[a][b]);
}
}
}
|