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:
parent
a9ab2a2be4
commit
9319b39d2a
@ -1,12 +1,7 @@
|
|||||||
|
|
||||||
while (9)
|
ground = ag.createStaticPlane(0, 0, 1, 0)
|
||||||
do
|
|
||||||
end
|
|
||||||
|
|
||||||
ground = ag.createStaticPlane(0, 0, 0, 0, 0, 0)
|
|
||||||
ground:setColor(0.2, 1.0, 0.2)
|
ground:setColor(0.2, 1.0, 0.2)
|
||||||
ag.setCamera(10, -10, 10, 0, 0, 0)
|
ag.setCamera(10, -10, 10, 0, 0, 0)
|
||||||
crate_texture = ag.loadTexture("crate.png")
|
|
||||||
|
|
||||||
if (ag.import("rot_camera") ~= true) then
|
if (ag.import("rot_camera") ~= true) then
|
||||||
ag.println("error importing rot_camera")
|
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)
|
obj:setPosition((math.random() - 0.5) * 10, (math.random() - 0.5) * 10, 10)
|
||||||
end
|
end
|
||||||
|
|
||||||
function update_event()
|
-- function update_event()
|
||||||
rot_camera()
|
-- rot_camera()
|
||||||
end
|
-- end
|
||||||
|
|
||||||
function key_down_event(key)
|
function key_down_event(key)
|
||||||
if (key == "b") then
|
if (key == "b") then
|
||||||
local box = ag.createBox(1, 1, 1)
|
local box = ag.createBox(1, 1, 1)
|
||||||
box:setTexture(crate_texture)
|
|
||||||
init(box)
|
init(box)
|
||||||
elseif (key == "c") then
|
elseif (key == "c") then
|
||||||
local cyl = ag.createCylinder(0.5, 1)
|
local cyl = ag.createCylinder(0.5, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user