Re: A86: re: moving sprites


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

Re: A86: re: moving sprites



Well, actually, this is out of DuckHunt.  So I'll tell you ..

ld a,ycoord
ld e,a
ld a,xcoord
ld hl,SpriteName
call PutSprite

SpriteName of course is an 8x8 sprite .. like this

SpriteName:
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000
.db %00000000

					-Ahmed

At 04:51 AM 12/3/97 +0000, you wrote:
>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
>
Ahmed El-Helw
ahmed3@worldnet.att.net
http://asm83.home.ml.org
The Ultimate TI-83 Site!
http://asm86.home.ml.org
The Ultimate TI-86 ASM Site
__________________________
ICQ :  3350394


References: