anaglymtd/anaglymtd.lua

21 lines
406 B
Lua

ag.import("std")
function init_event()
ground = std.createPlanePointNormal(0, 0, 0, 0, 0, 1)
ground:setColor(0, 1, 0)
grid_texture = ag.loadTexture("grid.png")
grid = ag.createBox(16, 16, 1, {static = true})
grid:setTexture(grid_texture)
grid:setPosition(0, 0, 1)
ag.setCamera(2, -12, 10)
end
function key_down_event(k)
if (k == "q") then
ag.exit()
end
end