alestane icon

Map creation (table)

alestane | PRO | 01/02/14 04:05:14 PM UTC | 0 ⭐ | 312 👁️ | Never ⏰ | []
Lua |

190 B

|

None

|

0 👍

/

0 👎

    for i=1, 8 do
        for j=1, 8 do
            local value = gameMap[i][j]
            if tileFactory[value] then
                gameMap[i][j] = tileFactory[value](i, j)
                group:insert(gameMap[i][j])
            end
        end
    end

Comments