Re: A86: re: moving sprites


[Prev][Next][Index][Thread]

Re: A86: re: moving sprites



Mark Zimmerman wrote:
> 
> This is probably an easy thing to do, but I am totally lost. I am trying to
> display an 8x8 sprite on the screen and move it from one side to about
> halfway across and back again. I tried using the PutSprite routine used in
> Duckhunt, but instead of moving it across, it placed the sprites at
> semi-random places. here's the routine if anyone wants to help.

ld a,x-coor
ld e,y-coor
ld b,a
ld c,e
push bc
call PutSprite
pop bc
ld a,b
ld e,c
inc a

that should work


Follow-Ups: References: