added cratestack.lua test
git-svn-id: svn://anubis/anaglym/trunk@103 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
724622e094
commit
6b5d200863
16
tests/cratestack.lua
Normal file
16
tests/cratestack.lua
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
levels = 5
|
||||
crate = ag.loadModel("crate", 0.5)
|
||||
offset = 0.5
|
||||
crate:setPosition(0, 0, offset + levels + 0.5)
|
||||
for level = 2, levels do
|
||||
for x = 1, level do
|
||||
local c = crate:clone()
|
||||
c:setPosition((x - 1) * 1.5 - (level * 1.5 - 0.5)/2 + 0.5,
|
||||
0, offset + levels - level + 1.5)
|
||||
end
|
||||
end
|
||||
|
||||
ground = ag.loadStaticModel("crate", 10)
|
||||
ground:setPosition(0, 0, -10)
|
||||
ag.setCamera(2, -12, 8, 0, 0, 2, 0, 0, 1)
|
Loading…
x
Reference in New Issue
Block a user