/[enigma]/enigma/data/levels/ant17.lua
ViewVC logotype

Diff of /enigma/data/levels/ant17.lua

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by ant_39, Fri Feb 21 18:01:59 2003 UTC revision 1.3 by ant_39, Thu Jun 26 16:23:52 2003 UTC
# Line 2  Line 2 
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"))
# Line 64  curforce = nil Line 65  curforce = nil
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

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26