t = ag.createSolidTextBox("Hi there", 0, 0, 1) t2 = ag.createShadedTextBox("Hi there", 0, 1, 1, 0, 0, 0) t3 = ag.createBlendedTextBox("Hi there", 1, 1, 1) ag.setAutoEndFrame(false) ag.setAutoDrawObjects(false) function update_event() ballx, bally, ballz = ball:getPosition() ag.setCamera(7, -6, 15, ballx, bally, ballz, 0, 0, 1) if (ag.isKeyDown("m")) then ball:setPosition(-7, 7.4, 12) end ag.drawObjects() ag.endFrame() t:draw(10, 10) t2:draw(10, 40) t3:draw(10, 90) end function key_down_event(key) if (key == "d") then ball2:destroy() elseif (key == "p") then ball:addForce(-10000, 0, 0) end end arena = ag.loadStaticModel("boxarena") ball = ag.loadModel("checkerball") ball:setPosition(-7, 7.4, 12) ball2 = ball:clone() ball2:setPosition(-7, 7.4, 14) ball3 = ball:clone() ball3:setPosition(-7, 7.4, 16) logo = ag.loadModel("dwlogo", 0.5) logo:setPosition(-1, 2, 11) crate = ag.loadModel("crate") crate:setPosition(-5, -3, 10)