Re: A86: Someone help me?
[Prev][Next][Index][Thread]
Re: A86: Someone help me?
;hl->sprite
;de->place on screen, like $fc00
psprite24:
ld b,24 ;24 lines
psprite24a:
ldi ;move 1 byte (8 pixels)
ldi ;2 bytes (16 pixels)
ldi ;3 bytes (24 pixels)
push de
ld de,$10-3 ;go to next line on screen
add hl,de
pop de
djnz pspritea ;do the other lines
ret
ldi moves 1 byte from (hl) to (de) and increments hl and de
the sprite will be raw data (no size):
.db %00000000,%00000000,%00000000 ;first line
.db %00000000,%00000000,%00000000 ;second line
...
to calculate de, use $fc00+$0010*row+col. there are 16 columns like
this, one every 8 pixels. if you want to be able to place the sprite
anywhere it gets tricky. ask one of the putsprite wizards about it.
-josh
On Fri, 11 Dec 1998 22:56:21 -0600 James Tyra <mox1@ix.netcom.com>
writes:
>
>Ok I have a question. Can someone make me a sprite rouine that will
>put a 24x24
>sprite on the screen. It doesn't have to be fancy at all. just simply
>to display
>the sprite.
>Thanks
>
>
>
>
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]