Re: A86: drawing a sprite to the screen.
[Prev][Next][Index][Thread]
Re: A86: drawing a sprite to the screen.
ok,
couple things.
GET_KEY is wrong, I think. Its calling for a label labeled GET_KEY, at least
thats what the compiler is looking for.
What is 'draw_loop"?(its a label at the bottom) is it supposed to be
'Draw_Sprite'?
If so, then what is Draw_Sprite? am I supposed to put my mod. version of
putsprite there?
The compiler is also looking for K_Right and K_Left labels.
Thanks,
BlAsTo1414
In a message dated 9/15/98 6:13:19 PM Pacific Daylight Time,
uneven14@hotmail.com writes:
<< draw_first_sprite:
ld d,1
ld e,5
ld hl,Sprite
call Draw_Sprite
key_loop:
call GET_KEY
cp K_RIGHT
jp z,move_sprite_right
cp K_LEFT
jp z,move_sprite_left
jp key_loop
move_sprite_right:
inc d
ld hl,Sprite
call Draw_Sprite
jp key_loop
move_sprite_left:
dec d
ld hl,Sprite
call Draw_Sprite
jp key_loop
Draw_Loop:
{paste sprite routine here}
Sprite:
{paste sprite here} >>