Search ObeyBrew.Com

OBEYBREW.COM | Useful Source Code

Useful Source Code

spr_make

This is a handy little all-in-one function for putting a new sprite onto the screen. It handles all the parameters of the sprite in one simple set of arguments.
spr_make(spriteno, spritex, spritey, spritepattern, ctrl1, ctrl2, sprpal, sprpri)
int spriteno, spritex, spritey, spritepattern, ctrl1, ctrl2, sprpal, sprpri;
{
	spr_set(spriteno);
	spr_x(spritex);
	spr_y(spritey);
	spr_pattern(spritepattern);
	spr_ctrl(ctrl1, ctrl2);
	spr_pal(sprpal);
	spr_pri(sprpri);
}
This site is ©2013 Eponasoft. Sailing the seas of cheese.