Lua game code

This article is tagged with: Lua game code and lua

lua game code

local grid = {
{ 11, 12, 13 },
{ 21, 22, 23 },
{ 31, 32, 33 }
}
for y, row in ipairs(grid) do
for x, value in ipairs(row) do
print(x, y, grid[y][x])
end
end

This article is tagged with: Lua game code and lua