removed infinite loop from managed_objects test script

git-svn-id: svn://anubis/anaglym/trunk@152 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2009-11-03 04:32:10 +00:00
parent a9ab2a2be4
commit 9319b39d2a

View File

@ -1,12 +1,7 @@
while (9)
do
end
ground = ag.createStaticPlane(0, 0, 0, 0, 0, 0)
ground = ag.createStaticPlane(0, 0, 1, 0)
ground:setColor(0.2, 1.0, 0.2)
ag.setCamera(10, -10, 10, 0, 0, 0)
crate_texture = ag.loadTexture("crate.png")
if (ag.import("rot_camera") ~= true) then
ag.println("error importing rot_camera")
@ -18,14 +13,13 @@ function init(obj)
obj:setPosition((math.random() - 0.5) * 10, (math.random() - 0.5) * 10, 10)
end
function update_event()
rot_camera()
end
-- function update_event()
-- rot_camera()
-- end
function key_down_event(key)
if (key == "b") then
local box = ag.createBox(1, 1, 1)
box:setTexture(crate_texture)
init(box)
elseif (key == "c") then
local cyl = ag.createCylinder(0.5, 1)