#8404 - Domovoi - Wed Jul 09, 2003 7:55 pm
I'm still struggling with tile mode... I don't understand the screen sizes you can specify. Here's a line from GBAJunkie's second tutorial:
"There can be a maximum of 1024 tiles stored in video memory, allowing you to produce screens from 256x256 pixels up to 1024x1024 pixels."
Some quick math tells me that this is wrong. Since a tile is 8x8=64 pixels, and 256x256=65526 pixels, that would mean 65536/64=1024 tiles. So that would fit, but that's max. How are you going to make a 1024x1024 screen when you only have 1024 8x8 tiles?
Or does he mean 256x256 with all unique tiles, and 1024x1024 as your max map size (but with repeating tiles)?
You can specify the screen size in tile mode. Since the map (or screen base block) is simply a one-dimensional array, I suppose this is to let the GBA know how many tiles should go on one horizontal row? If not, what is it for?
"There can be a maximum of 1024 tiles stored in video memory, allowing you to produce screens from 256x256 pixels up to 1024x1024 pixels."
Some quick math tells me that this is wrong. Since a tile is 8x8=64 pixels, and 256x256=65526 pixels, that would mean 65536/64=1024 tiles. So that would fit, but that's max. How are you going to make a 1024x1024 screen when you only have 1024 8x8 tiles?
Or does he mean 256x256 with all unique tiles, and 1024x1024 as your max map size (but with repeating tiles)?
You can specify the screen size in tile mode. Since the map (or screen base block) is simply a one-dimensional array, I suppose this is to let the GBA know how many tiles should go on one horizontal row? If not, what is it for?