2 |
-- (c) 2003 Petr Machata/ant_39 |
-- (c) 2003 Petr Machata/ant_39 |
3 |
-- Licensed under GPL v2.0 or above |
-- Licensed under GPL v2.0 or above |
4 |
-- 2003-01-13 |
-- 2003-01-13 |
5 |
|
-- 2003-06-24 -- changes in AddConstantForce |
6 |
|
|
7 |
dofile(enigma.FindDataFile("levels/ant.lua")) |
dofile(enigma.FindDataFile("levels/ant.lua")) |
8 |
dofile(enigma.FindDataFile("levels/natmaze.lua")) |
dofile(enigma.FindDataFile("levels/natmaze.lua")) |
65 |
function tick() |
function tick() |
66 |
if (not(curforce)) then |
if (not(curforce)) then |
67 |
curforce = 1 |
curforce = 1 |
|
else |
|
|
local lforce = forces[curforce] |
|
|
enigma.AddConstantForce(-lforce[1]*force,-lforce[2]*force) |
|
68 |
end |
end |
69 |
|
|
70 |
if (curforce == getn(forces)) then |
if (curforce == getn(forces)) then |