5 |
-- 2003-01-10 -- modified base floor beneath doorE, doorF, removed document |
-- 2003-01-10 -- modified base floor beneath doorE, doorF, removed document |
6 |
-- 2003-01-11 -- modified so that it uses object groups from ant.lua |
-- 2003-01-11 -- modified so that it uses object groups from ant.lua |
7 |
-- 2003-02-09 -- fixes in object groups |
-- 2003-02-09 -- fixes in object groups |
8 |
|
-- 2003-06-24 -- changes in AddConstantForce |
9 |
|
|
10 |
dofile(enigma.FindDataFile("levels/ant.lua")) |
Require("levels/ant.lua") |
11 |
|
|
12 |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
13 |
function construct(x, y) set_floor("fl-metal", x, y) end |
function construct(x, y) set_floor("fl-metal", x, y) end |
21 |
|
|
22 |
function forceup() |
function forceup() |
23 |
forcecount = forcecount + 1 |
forcecount = forcecount + 1 |
24 |
enigma.AddConstantForce(force,0) |
enigma.AddConstantForce(forcecount*force,0) |
25 |
end |
end |
26 |
|
|
27 |
function forcedn() |
function forcedn() |
28 |
enigma.AddConstantForce((-1)*force*forcecount,0) |
enigma.AddConstantForce(0,0) |
29 |
forcecount = 0 |
forcecount = 0 |
30 |
end |
end |
31 |
|
|