Engine calling update_event, key_pressed_event, and key_released_event

git-svn-id: svn://anubis/anaglym/trunk@98 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-10-18 22:20:22 +00:00
1 parent 624f8a8dcc
commit c63a4bb808
4 files changed
+33 -3

No files matched your search

+7 -1
View File
@@ -1,9 +1,15 @@
function update()
function update_event()
ballx, bally, ballz = ball:getPosition()
ag.setCamera(7, -6, 15, ballx, bally, ballz, 0, 0, 1)
end
function key_pressed_event(key)
if (key == "d") then
ball2:destroy()
end
end
arena = ag.loadStaticModel("boxarena")
ball = ag.loadModel("checkerball")
ball:setPosition(-7, 7.4, 12)