|
Title: Backgrounds and Scrolling/Wrapping Post by: sylus101 on September 06, 2007, 03:11:57 PM I was looking over at PALib a bit and read that if a background has a width of 256 it should wrap when scrolled. DSLua isn't doing this. Should it be?
Title: Re: Backgrounds and Scrolling/Wrapping Post by: Jeremysr on September 06, 2007, 05:34:42 PM You mean a tiled background, or some other sort of background? The scrolling functions in the PAlib documentation don't say anything about wrapping (which are the functions that DSLua uses for ScrollXY().) Maybe it's a new feature of PAlib?
Title: Re: Backgrounds and Scrolling/Wrapping Post by: sylus101 on September 06, 2007, 11:48:11 PM Just tiled... I was reading over on this page:
http://www.palib.info/wiki/doku.php?id=day5 This part: What happens when a background gets off the screen ? Depending on it’s size, it will wrap around or not... If your background is 256 wide, it’ll wrap around horizontally... If it’s between 256 and 512, it will not, though, because the DS default sizes are 256 or 512 large (using more selects a different scrolling mode, you can have more than 512 and it’ll wrap around nicely). When it doesn’t wrap around, it actually displays a few blank spaces until it falls back onto the background. Same thing vertically, it all depends on your background size... |