how to work with larger maps?

BlitzPlus Forums/BlitzPlus Programming/how to work with larger maps?

matthews_30(Posted 2005) [#1]
i want to use a very big map in a 2D game based on 64x64 images.

how is this possible?

or is it just to use it as background image?


thalamus(Posted 2005) [#2]
Simplest solution is to use an array or bank to store your map data, which is then used to print the relevant tile on screen.


matthews_30(Posted 2005) [#3]
you mean, create an array that displays, for example, the 800x600 and it is been displaying the next row while my character is walking? something like that?
is there an example?


thalamus(Posted 2005) [#4]
You basically have an image which holds all your 64x64 tiles. Then, you build up a Map using these tiles.

For instance, if your sky tile is 1, the first strip of your map data might be a series of 1's.

Take a look at this tutorial:

http://www.blitzcoder.com/cgi-bin/articles/show_article.pl?f=krylar07192004002127.html


matthews_30(Posted 2005) [#5]
read!

that's an excelent tutorial!

thanks for the advice!

bye.


Wings(Posted 2005) [#6]
Good tot yes :)
Now i know why some people using types instead of arrays.