SW> struct maptile {
SW> char type; //What the map tile looks like
SW> unsigned int x, y; //Map tile coordinates
SW> int attr; //Map Attributes...specifics not listed
SW> char special[81]; //Special field for map attributes
SW> char text[341]; //Map tile Description
SW> int ansifg, ansibg, ansiattr; //Ansi colors and attributes
SW> }
SW> int main(void) {
SW>
SW> maptile local_map[9][21]; /* Size of Display area plus 1 tile
buffe
SW> on each side of Display */
SW> return 0;
SW> }
try "maptile* local_map[9][21];"
then allocate a new maptile for each 0-8x0-20 cells
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)
|