+#define PALSIZE 768 //vga\r
+#define NUMCHUNKS 416 //keen\r
+//#define MAXSCANLINES 240 // size of ylookup table\r
+\r
+#define MAXSHIFTS 4\r
+#define STARTSPRITES 0 //temp\r
+\r
+typedef struct\r
+{\r
+ int width,\r
+ height,\r
+ orgx,orgy,\r
+ xl,yl,xh,yh,\r
+ shifts;\r
+} spritetabletype;\r
+\r
+typedef struct\r
+{\r
+ unsigned sourceoffset[MAXSHIFTS];\r
+ unsigned planesize[MAXSHIFTS];\r
+ unsigned width[MAXSHIFTS];\r
+ byte data[];\r
+} spritetype; // the memptr for each sprite points to this\r