5 #define NUMTIMAGE 10 // size of tile image array
7 // all tiles are 16x16 images with no background scanning
8 typedef struct tile_typ
15 unsigned char far * images[NUMTIMAGE];
20 // allocate memory for a tile with images[frames]
21 // sets tile.state = 0; returns 1 if memory not allocated
22 int tilecreate(tile *ntile, int frames);
24 //frees image memory used by tile
25 void tileclose(tile *dtile);
27 // reads all tile images from double buffer
28 // images must be in double buffer b4 called
29 void tileload (tile * in);
31 // writes tile to screen(dest points to upper left corner)
32 // at location (tile.x_loc,tile.y_loc)
33 writetile(tile *out, unsigned char far* dest);
35 // writes tile to screen(dest) clipping the left or right
36 // edge if necessary, returns 0 if tile completely off screen
37 int writetile_xclip(tile *out, unsigned char far* dest);