key handler, grid raised (not sure why needed yet)
This commit is contained in:
parent
26b2ac4864
commit
d1fc5f3478
@ -5,5 +5,16 @@ function init_event()
|
|||||||
ground = std.createPlanePointNormal(0, 0, 0, 0, 0, 1)
|
ground = std.createPlanePointNormal(0, 0, 0, 0, 0, 1)
|
||||||
ground:setColor(0, 1, 0)
|
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)
|
ag.setCamera(2, -12, 10)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function key_down_event(k)
|
||||||
|
if (k == "q") then
|
||||||
|
ag.exit()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user