Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i=1, 8 do
- for j=1, 8 do
- if gameMap[i][j] == 1 then
- gameMap[i][j] = gameTile(i,j)
- group:insert(gameMap[i][j])
- end
- end
- end
- --gumawa ka ng pader baby!
- for i=1, 8 do
- for j=1, 8 do
- if gameMap[i][j] == 0 then
- gameMap[i][j] = brickTile(i,j)
- group:insert(gameMap[i][j])
- end
- end
- end
- --gumawa ka ng grass tiles
- for i=1, 8 do
- for j=1, 8 do
- if gameMap[i][j] == 2 then
- gameMap[i][j] = grassTile(i,j)
- group:insert(gameMap[i][j])
- end
- end
- end
- -- [[ gawin ang tiles plus yong box
- for i=1, 8 do
- -- tileBlox[i] = {}
- for j=1, 8 do
- if gameMap[i][j] == 3 then
- gameMap[i][j] = tileWithBox(i,j)
- group:insert(gameMap[i][j])
- end
- end
- end
- --lagyan ng tiles at hero na din
- for i=1, 8 do
- heroBlox[i] = {}
- for j=1, 8 do
- if gameMap[i][j] == 4 then
- gameMap[i][j] = heroTile(i,j)
- group:insert(gameMap[i][j])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement