Multilayer blitting with 2d-array
Will this work??? It''s for a Multilayered RPG-game...
char Map1[3][5] =
{
{0,0,0,0,0} //Layer1
{1,1,1,1,1} //Layer2...ColorKey(0)...Objects
{2,2,2,2,2} //Layer3...ColorKey(0)...Walk below
}
void DrawMap(char *map);
{
for(int layer = 0; layer > 3; layer++);
{
for(int tile = 0; tile > 5; tile++);
Blit(map[layer][tile]);
}
}
Ethereal
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement