anaglym/lib/demo/checkers.lua
Josh Holtrop 02f02f6500 updated todo
git-svn-id: svn://anubis/anaglym/trunk@224 99a6e188-d820-4881-8870-2d33a10e2619
2010-01-02 06:16:56 +00:00

22 lines
476 B
Lua

function createWorld()
board = ag.createBoxStatic(8, 8, 0.01)
board:setPosition(0, 0, -0.005)
board:setTexture(checker)
board:setTextureScale(2)
ground = ag.createPlane(0, 0, 1, -0.005)
ground:setColor(0, 0.4, 0)
ag.setCamera(2, -8, 8)
end
function init_event()
checker = ag.loadTexture("checker.jpg")
createWorld()
end
function reinit_event()
ball = ag.createSphere(0.5)
ball:setColor(1, 1, 0)
ball:setPosition(3, 3, 4)
end