added lib/demo/checkers.lua; setting window caption to "Anaglym"; added ag::clearWorld() and documentation

git-svn-id: svn://anubis/anaglym/trunk@221 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-12-16 03:43:24 +00:00
1 parent de49999c88
commit a5680ca2b8
7 files changed
+41

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
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