messing with tests/bowling.lua more
git-svn-id: svn://anubis/anaglym/trunk@182 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
ff8fe856d6
commit
42762f4f3c
@ -41,6 +41,17 @@ function mousebutton_down_event(button)
|
||||
end
|
||||
end
|
||||
|
||||
function key_down_event(key)
|
||||
if (key == "s") then
|
||||
local s = ag.createSphere(0.5)
|
||||
s:setPosition(0, 0, 5)
|
||||
s:setColor(0.1, 0.2, 0.3)
|
||||
elseif (key == "c") then
|
||||
local c = ag.loadModel("crate")
|
||||
c:setPosition(-3, -3, 5)
|
||||
end
|
||||
end
|
||||
|
||||
--function update_overlay_event(width, height)
|
||||
-- local tw, th = ag.getTextSize("Hi there", 18)
|
||||
-- ag.drawText("Hi there", 1, 1, 1, 18, width - tw - 4, height - th - 4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user