diff --git a/anaglymtd.lua b/anaglymtd.lua index d8c9ebb..d01e1a9 100644 --- a/anaglymtd.lua +++ b/anaglymtd.lua @@ -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