EU e-Privacy notice

At Lucky Red Fish, we want to get to know our users and make their experience as relevant as possible. For this reason, we place cookies on your computer when you visit

These cookies are required to enable core site functionality so we can automatically log you in when you return, to allow you to share pages with social networks and post comments. We never share your information with other sites or companies.
Getting more from a tile
Posted in :Programming on January 8th 2013

As I have stated in my other article that tile maps or grid based games have been around since the 1970s. However I still see that some developers do not really understand how to use them efficiently.


So what is a tile map? There are many websites that explain the basics of tile maps but for this article I will run through some basics. A tile map is nothing more just an array of data, which are normally used as indexes the graphic data for that area of the map. Say you have a simple tile set, like these Gauntlet style ones containing just 14 tiles. 



With those you could create a level made of many rooms much like Gauntlet, obviously we would need exit tiles and door tiles, but these are enough for me to show my points.  So simple room 4 tiles by 4 tiles would be made like this

So your array or game map may look something similar to this depending on your choice of programming languages.


char Map[6][6]  = {{9, 1, 1, 1, 1, 10},

{2, 0, 0, 0, 0, 2},

{2, 0, 0, 0, 0, 2},

{2, 0, 0, 0, 0, 2},

{2, 0, 0, 0, 0, 2},

{8, 1, 1, 1, 1 7}};


Share this
All shares open in a new tab
Leave a Comment