Help - tile based game

I am looking through the site, of making tile based games, I understand everything until great mathematics begins :slight_smile:

[color=navy]function buildMap (map) {[/color]
[color=navy]root.attachMovie(“empty”, “tiles”, ++d); [/color]
[color=navy]var mapWidth = map[0].length; [/color]
[color=navy]var mapHeight = map.length;[/color]
[color=navy][color=green]// it’s clear till here[/color][/color]
[color=navy]for (var i = 0; i < mapHeight; ++i) {[/color]
[color=navy]for (var j = 0; j < mapWidth; ++j) { [/color]
[color=navy]var name = "t
"+j; [/color]
[color=navy]game[name]= new game[“Tile”+map*[j]];[/color]
[color=navy]game.clip.attachMovie(“tile”, name, i100+j2); [/color]
[color=navy]game.clip[name]._x = (jgame.tileW); [/color]
[color=navy]game.clip[name]._y = (i
[color=navy]game.clip[name].gotoAndStop(game[name].frame); } }}[/color]

[color=black]Could anyone give me tips or other information about that mathematics stuff, just make my mind understand it clearer than the tile based games explains it. [/color]