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

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

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

revision 1.4 by ant_39, Fri Feb 21 18:01:59 2003 UTC revision 1.5 by ant_39, Thu Jun 26 16:23:52 2003 UTC
# Line 5  Line 5 
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
# Line 20  DOORCOUNT = 0 Line 21  DOORCOUNT = 0
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    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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