Answers for "lua get code from function"

Lua
0

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
Posted by: Guest on November-15-2020
0

lua run string as code

a = 1
local f = loadstring "print(a)"
f() --> 1
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language