gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > Drawing Large Sprites above 0,0

#60044 - Codax - Sun Nov 06, 2005 5:58 pm

Hi everyone,

What is the best way to handle a sprite going above the screen. Currently I'm just in Mode0 and whenever the OAM.y location becomes less than 0 the sprite dissappears. Instead of dissappearing, I'd like for just the part that would be on the screen to be drawn. Is this where windowing comes in? Any resoures/tutorials you could point me to would be great. Thanks!
_________________
Codax
Dragon's Den Unlimited
http://www.DrgnDen.com

#60048 - Lord Graga - Sun Nov 06, 2005 6:28 pm

http://www.cs.rit.edu/~tjh8300/CowBite/CowBiteSpec.htm#OAM%20(sprites)

Check out bit 0-7 description of attribute0, and bit 0-8 description on attribute 1.

#60058 - poslundc - Sun Nov 06, 2005 8:01 pm

I've tried posting that link before and it always breaks because of the weird formation of the parentheses in the URL... here's a link directly to attribute 0, and attribute 1 is beneath it.

http://www.cs.rit.edu/~tjh8300/CowBite/CowBiteSpec.htm#Attribute%200

Dan.

#60060 - Codax - Sun Nov 06, 2005 8:10 pm

Duh! Of course! Thanks for the link, I hadn't read that one before. I'll learn to think like a low level programmer yet!
_________________
Codax
Dragon's Den Unlimited
http://www.DrgnDen.com

#60100 - tepples - Mon Nov 07, 2005 3:23 am

To get parentheses in links to work in phpBB, change ( to %28 and ) to %29:

http://www.cs.rit.edu/~tjh8300/CowBite/CowBiteSpec.htm#OAM%20%28sprites%29
or
CowBite on OAM
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.