load_background

Prototypes:
Arguments:
Description:

This all-in-one function is used to automatically load a whole image, such as a game title screen. It handles the graphics data, palette, and BAT in one line of code. The graphics will be stored at address 0x1000 to 0x5000.

Complete Example:

#include "huc.h"

#incchr(imagechr, "image.pcx", 32, 28); /* include the image data */
#incbat(imagebat, "image.pcx", 0x1000, 32, 28); /* include the BAT */
#incpal(imagepal, "image.pcx"); /* include the palette */

main()
{
  load_background(imagechr, imagepal, imagebat, 32, 28); /* load the picture */
}

Sample Output:



See Also:

#incchr | #incpal | #incbat