anaglymtd/anaglymtd.lua
2010-11-15 23:21:34 -05:00

22 lines
399 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.createQuad(0, 0, 0, 8, 0, 0, 0, 8, 0)
grid:setTexture(grid_texture)
grid:setOffset(1)
ag.setCamera(2, -12, 10)
end
function key_down_event(k)
if (k == "q") then
ag.exit()
end
end