how to work with larger maps?
BlitzPlus Forums/BlitzPlus Programming/how to work with larger maps?
| ||
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? |
| ||
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. |
| ||
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? |
| ||
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 |
| ||
read! that's an excelent tutorial! thanks for the advice! bye. |
| ||
Good tot yes :) Now i know why some people using types instead of arrays. |