alestane

Map creation (table)

Jan 2nd, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     for i=1, 8 do
  2.         for j=1, 8 do
  3.             local value = gameMap[i][j]
  4.             if tileFactory[value] then
  5.                 gameMap[i][j] = tileFactory[value](i, j)
  6.                 group:insert(gameMap[i][j])
  7.             end
  8.         end
  9.     end
Advertisement
Add Comment
Please, Sign In to add comment