Yes the coordinates are signed (9bit signed for X and 8bit signed for
Y), with a warparound display.
You should write somethings like this to your object's attribute 1 :
(SpritePosX & 0x1ff) with SpritePosX being a signed value (s16 or s32)
Cheers
-----Original Message-----
From: kervinyy@... [mailto:kervinyy@...]
Sent: 1 mai, 2001 11:32
To: gbadev@yahoogroups.com
Subject: [gbadev] Question about sprite coordinates
Are the object coordinate value in OAM unsigned?
If it is,how do you make the effect that a sprite's
upper/left is out of the screen?If it's signed,8 bit
sprite can only have a max vertical offset of 127...
And,is that value relative to display screen?
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
unsubscribe: gbadev-unsubscribe@egroups.com
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/