#170700 - Azenris - Tue Oct 13, 2009 3:22 am
Btw i did check myself but for 100% clarity ill ask too!
When wanting to do screen scrolling I need to use 2 maps, (32x32). And from what I read they are one after the other, its not exactly 64x32 its two 32x32's. This is what ive based my coding on and it seems ok so far, so im assuming its corrent.
Anyway to get to the other maps im using
Only reason I ask is to make sure 100% this is all ok, I'm fining it hard to get scrolling fully working and wanna make sure the basics are ok.
One of the problems I was having is everything that loads on the second map is a row lower than it should be (8 pixels lower). If this map offset is corrent I must be making the mistake elsewhere.
_________________
My Homebrew Games
When wanting to do screen scrolling I need to use 2 maps, (32x32). And from what I read they are one after the other, its not exactly 64x32 its two 32x32's. This is what ive based my coding on and it seems ok so far, so im assuming its corrent.
Anyway to get to the other maps im using
Code: |
#define HARDWARE_TILES_X 32 #define HARDWARE_TILES_Y 32 #define HARDWARE_MAP_SIZE (HARDWARE_TILES_X * HARDWARE_TILES_Y) #define MAP_OFFSET(n) ((n) * HARDWARE_MAP_SIZE) |
Only reason I ask is to make sure 100% this is all ok, I'm fining it hard to get scrolling fully working and wanna make sure the basics are ok.
One of the problems I was having is everything that loads on the second map is a row lower than it should be (8 pixels lower). If this map offset is corrent I must be making the mistake elsewhere.
_________________
My Homebrew Games