raze-gles/polymer/eduke32/source/lunatic/test.elua
helixhorned bcd0d80bb5 First Lunatic development bits.
git-svn-id: https://svn.eduke32.com/eduke32@2034 1a8010ca-5511-0410-912e-c29ae57300e0
2011-09-20 19:12:24 +00:00

21 lines
462 B
Text

-- test script for ELua/Lunatic Interpreter
print('--- ELua Test script ---')
local i
print('tweaking sector pals')
for i = 0, gv.numsectors/2 do
sector[i].floorpal = 1;
sector[i].ceilingpal = 2;
end
print(gv.numsectors)
print(gv.numwalls)
print('--- end test script ---')
--sector[-1].ceilingpal = 4; -- this must FAIL!
--sector[0].wallnum = 0; -- as must this
--gv.numsectors = 4 -- and this
--sector[4] = sector[6] -- this is forbidden, too