diff --git a/tests/managed_objects.lua b/tests/managed_objects.lua index fb7e6e5..f745c9d 100644 --- a/tests/managed_objects.lua +++ b/tests/managed_objects.lua @@ -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)