Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Question about sprite coordinates   Message List  
Reply | Forward Message #3049 of 15019 |
Re: [gbadev] Question about sprite coordinates

Hi,

for left X:
add a negative position to 512. Eg., if Your coordinate is -4, it should be
512+(-4)=508

for top Y:
add a negative position to 256. Eg, if Your coordinate is -4, it should be
256+(-4)=252

Vova


----- Original Message -----
From: <kervinyy@...>
To: <gbadev@yahoogroups.com>
Sent: Tuesday, May 01, 2001 4:32 PM
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/
>
>
>




Tue May 1, 2001 5:24 pm

Sorok@...
Send Email Send Email

Forward
Message #3049 of 15019 |
Expand Messages Author Sort by Date

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 ...
kervinyy@...
Send Email
May 1, 2001
5:12 pm

Hi, for left X: add a negative position to 512. Eg., if Your coordinate is -4, it should be 512+(-4)=508 for top Y: add a negative position to 256. Eg, if Your...
Michail Trofimov
Sorok@...
Send Email
May 1, 2001
9:43 pm

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...
Alex GANEA
aganea@...
Send Email
May 1, 2001
10:45 pm

the values wrap around :) ... From: <kervinyy@...> To: <gbadev@yahoogroups.com> Sent: Tuesday, May 01, 2001 3:32 PM Subject: [gbadev] Question about...
ninge1
ninge1@...
Send Email
May 1, 2001
11:15 pm

Move the sprite to the right or bottom border, and it will wrap around. ... From: <kervinyy@...> To: <gbadev@yahoogroups.com> Sent: Tuesday, May 01, 2001...
Eloist
Eloist@...
Send Email
May 1, 2001
11:34 pm

if x < 0 then you need (512 + x) = xoffset if y < 0 then you need (256 + y) = yoffset as offsets are not signed values I believe this gives the corect results...
Rogers, Jason L. ET2 ...
rogersjl@...
Send Email
May 1, 2001
11:51 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help