Advertisement

Multilayer blitting with 2d-array

Started by March 01, 2000 02:42 AM
0 comments, last by Metus 25 years ago
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
Yes it will, except you have your signs backwards. it should be layer < 3, not lyaer > 3. Same goes for the tile code. And I''m assuming your using you''re own blit routine.

This topic is closed to new replies.

Advertisement