key handler, grid raised (not sure why needed yet)

This commit is contained in:
Josh Holtrop 2010-11-10 22:41:42 -05:00
parent 26b2ac4864
commit d1fc5f3478

View File

@ -5,5 +5,16 @@ 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