Example #1
0
/*
 *	Because Jaguar games are in ROM, 
 *  there are no directories or what so ever.
*/
void Load_Image(unsigned short a, phrase directory, int w, int h)
{
	// Black is the transparent colour
	sprites_img[a] = new_sprite( w , h , -640 , -480 , DEPTH16 , &directory); /* Set X and Y outside so we can't see it */
	attach_sprite_to_display_at_layer(sprites_img[a] , d , a );
}
Example #2
0
void change_sprite_layer(sprite *s, display *d, int layer) {
    detach_sprite_from_display(s);
    attach_sprite_to_display_at_layer(s,d,layer);
}