Original Post
Hello all. I''m working on a tile based race game. The map is 40 x 40 tiles (32 pixels each tile). This works great.
I created my own Map Editor. So i was able to create a map of 200x200 tiles.
This works, but it takes > 15 minutes to load the map, because my code isn''t good enough. I''m doing it like this:
For Row = 0 to RowCount
For Column = 0 to ColumnCount
Tile(Column,Row) loadTile
next column
next Row
I hope you understand what i mean. I have a bitmap (tiles.bmp) which consist out of 5 different tiles. I''m loading this bitmap 200x200=40000 times!!! This is not efficient
I think there has to be a way to load the bitmap once. and then??!
Help please
thanks