View difference between Paste ID: xiFzsyXy and knmqYQgp
SHOW: | | - or go back to the newest paste.
1
	for i=1, 8 do
2
		for j=1, 8 do
3-
			if gameMap[i][j] == 1 then
3+
			local value = gameMap[i][j]
4-
				gameMap[i][j] =	gameTile(i,j)
4+
			if tileFactory[value] then
5
				gameMap[i][j] = tileFactory[value](i, j)
6-
			elseif gameMap[i][j] == 0 then
6+
7-
				gameMap[i][j] =	brickTile(i,j)
7+
8
		end
9-
			elseif gameMap[i][j] == 2 then
9+