#include "animatedsprite.h"
#include "gfxs.h"
void nmi (void) {
}
void main (void) {
u8 xp,yp,idpac,tpo;
u16 pattern;
vdp_putvram (sprtab,TILpacspritegfx,SZTILpacspritegfx);
xp=8*16;yp=8*12;pattern=0;
tpo=0;
while(1) {
if (xp<(256-16)) { xp++; spr_setx(idpac,xp); }
}
if (xp>0) { xp--; spr_setx(idpac,xp); }
}
if (yp<(192-16)) { yp++;
spr_sety(idpac,yp); }
}
}
tpo++;
if (tpo>3) {
tpo=0;
pattern+=4;
if (pattern>4*3) pattern=0;
spr_setpat(idpac,pattern);
}
}
}