Re: A85: FIND_PIXEL
[Prev][Next][Index][Thread]
Re: A85: FIND_PIXEL
I don't think that is correct. I know in PutSprite, it has some lines
of code to the effect of:
ld a,63
sub c
ld c,a
This is to reverse the origin from the bottom left to the top left. I
think the top left corner is most commonly used as the origin since
this is the way it is done on the PC (i think).
-mike pearce
>Actually subtract 16 to go up one row, add 16 to go down a row. The memory
>goes from top to bottom which is why most sprite routines use an origin in
>the top left corner. And don't forget to use
>
> ld de,$fc00
> add hl,de
>after calling FIND_PIXEL.
>
<cut>
>--
>Terry Peng
>email- tpeng@geocities.com
>web- http://www.geocities.com/SiliconValley/Bay/5104/index.html
>
Follow-Ups:
References: