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

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

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

revision 1.2 by ant_39, Mon Feb 10 19:59:07 2003 UTC revision 1.3 by ant_39, Fri Feb 21 18:01:59 2003 UTC
# Line 14  cells={} Line 14  cells={}
14  cells[" "]=cell{floor={face="fl-metal"}}  cells[" "]=cell{floor={face="fl-metal"}}
15    
16  puzzles = {};  puzzles = {};
17  cells["#"]=cell{parent={{puzzlecell, puzzles}}}  cells["#"]=cell{parent={{add_multicell, puzzles}}}
18    
19  cells["O"]=cell{parent=cells[" "],item={face="it-hollow"}}  cells["O"]=cell{item={face="it-hollow"}}
20  cells["a"]=cell{parent=cells[" "], item={face="it-trigger", attr={action="openclose", target="doorA"}}}  cells["a"]=cell{item={face="it-trigger", attr={action="openclose", target="doorA"}}}
21  cells["b"]=cell{parent=cells[" "], item={face="it-trigger", attr={action="openclose", target="doorB"}}}  cells["b"]=cell{item={face="it-trigger", attr={action="openclose", target="doorB"}}}
22  cells["c"]=cell{parent=cells[" "], item={face="it-trigger", attr={action="openclose", target="doorC"}}}  cells["c"]=cell{item={face="it-trigger", attr={action="openclose", target="doorC"}}}
23  cells["d"]=cell{parent=cells[" "], item={face="it-trigger", attr={action="openclose", target="doorD"}}}  cells["d"]=cell{item={face="it-trigger", attr={action="openclose", target="doorD"}}}
24  cells["A"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorA"}}}  cells["A"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorA"}}}
25  cells["B"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorB"}}}  cells["B"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorB"}}}
26  cells["C"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorC"}}}  cells["C"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorC"}}}
# Line 28  cells["D"]=cell{parent=cells["O"], stone Line 28  cells["D"]=cell{parent=cells["O"], stone
28    
29  blocks = {};  blocks = {};
30  actors = {};  actors = {};
31  cells["W"]=cell{parent={cells[" "],{add_multistone,{"st-block", blocks}}}}  cells["W"]=cell{parent={{add_multistone, "st-block", blocks}}}
32  cells["o"]=cell{parent={cells[" "],{add_multiactor,{"ac-whiteball-small", actors, {player=0, mouseforce=1}}}}}  cells["o"]=cell{parent={{add_multiactor, "ac-whiteball-small", actors, {player=0, mouseforce=1}}}}
33    
34  level = {  level = {
35     "####################",     "####################",
# Line 48  level = { Line 48  level = {
48  }  }
49    
50  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
51  randomseed(enigma.GetTicks())  set_default_parent(cells[" "])
52  create_world_by_map(level)  create_world_by_map(level)
53  add_rubber_band_pairs(actors, blocks, 10, 0)  add_rubber_band_pairs(actors, blocks, 10, 0)
54  render_puzzles(puzzles, cells[" "]);  render_puzzles(puzzles);
55  oxyd_shuffle()  oxyd_shuffle()

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