Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- this dumps the table to logfile twice
- function renderer:renderGame()
- for k, v in pairs(game.wall) do
- world.logInfo(k .. ", {" .. v[1] .. ", " .. v[2] .. "}")
- end
- dumpPoly(game.wall)
- end
- function dumpPoly(poly)
- for k, v in pairs(poly) do
- world.logInfo(k .. ", {" .. v[1] .. ", " .. v[2] .. "}")
- end
- end
- -- this dumps the table to logfile once then errors out because "poly" is nil
- function renderer:renderGame()
- for k, v in pairs(game.wall) do
- world.logInfo(k .. ", {" .. v[1] .. ", " .. v[2] .. "}")
- end
- renderer.dumpPoly(game.wall)
- end
- function renderer:dumpPoly(poly)
- for k, v in pairs(poly) do
- world.logInfo(k .. ", {" .. v[1] .. ", " .. v[2] .. "}")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement