View difference between Paste ID: knmqYQgp and WuceCRSz
SHOW: | | - or go back to the newest paste.
1
	for i=1, 8 do
2-
2+
		for j=1, 8 do
3-
			for j=1, 8 do
3+
			if gameMap[i][j] == 1 then
4-
				if gameMap[i][j] == 1 then
4+
				gameMap[i][j] =	gameTile(i,j)
5-
5+
				group:insert(gameMap[i][j])
6-
					gameMap[i][j] =	gameTile(i,j)
6+
			elseif gameMap[i][j] == 0 then
7-
					group:insert(gameMap[i][j])
7+
				gameMap[i][j] =	brickTile(i,j)
8-
				end
8+
				group:insert(gameMap[i][j])
9
			elseif gameMap[i][j] == 2 then
10-
	end
10+
				gameMap[i][j] =	grassTile(i,j)
11-
	--gumawa ka ng pader baby!
11+
				group:insert(gameMap[i][j])
12-
12+
			elseif gameMap[i][j] == 3 then
13
				gameMap[i][j] = tileWithBox(i,j)
14-
14+
				group:insert(gameMap[i][j])
15-
			for j=1, 8 do
15+
			elseif gameMap[i][j] == 4 then
16-
				if gameMap[i][j] == 0 then
16+
				gameMap[i][j] =	heroTile(i,j)
17-
17+
				group:insert(gameMap[i][j])
18-
					gameMap[i][j] =	brickTile(i,j)
18+
19-
					group:insert(gameMap[i][j])
19+
		end
20-
				end
20+