|
Post by matalog on Jul 8, 2017 20:06:47 GMT -5
Okay, so I have a game scrolling (the background, rather), and a sprite that works with it. What other scrolling elements can I add using BasiEgaXorz? I briefly saw something about scroll_A and scroll_B, what are they?
And as a completely different question in the same thread, what size can a BasiEgaXorz file be? Please assume that I will not be going outside of video RAMs allowance during each frame.
And as a last different question in the same thread, When anyone has been working on a scroller and then come here for advice, did you find it odd that the screen was not scrolling, or is it just me? I look at the keyboard, then look up expecting the screen to be scrolling!
Thanks for any replies,
matalog.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 9, 2017 5:24:27 GMT -5
I wouldn't worry about what file size is allowed, but rather what the hardware will allow before requiring a special mapper. That size is 4MB. BEX and SecondBASIC can compile twice that size if you want, but the hardware will only run 4MB unless you start doing bank swapping.
There's 2 background planes you can use for backgrounds: scroll_a and scroll_b. Scroll_a is default.
Scroll_a is the upper layer and scroll_b is the lower layer. To utilize them:
SetGfxPlane <layer> SetScrollPlane <layer>
where <layer> is either Scroll_A, Scroll_B, or Window. Window is a special layer that overwrites the tiles of Scroll A, I believe, and you can't scroll it. It's usually used for a HUD. Check out the documentation if you want to use Window. I don't know a whole lot about it as I don't really use it (haven't had a need so far).
|
|
|
Post by matalog on Jul 11, 2017 16:08:15 GMT -5
Thanks, 4mb is plenty anyway :-).
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 12, 2017 6:33:51 GMT -5
To start off with, definitely enough room. Unless you're planning on going Pier Solar or Paprium, you should have plenty of room
|
|