1 |
-- The Tomb -- the Enigma Level |
-- The Tomb -- the Enigma Level |
2 |
-- (c) 2002 Petr Machata/ant_39 |
-- (c) 2002 Petr Machata/ant_39 |
3 |
-- Licensed under GPL v2.0 or above |
-- Licensed under GPL v2.0 or above |
4 |
|
-- 2003-02-10 -- keeping up to date with latest additions to ant.lua |
5 |
|
|
6 |
dofile(enigma.FindDataFile("levels/ant.lua")) |
dofile(enigma.FindDataFile("levels/ant.lua")) |
7 |
|
|
10 |
cells={} |
cells={} |
11 |
cells[" "]=cell{floor={face="fl-sand"}} |
cells[" "]=cell{floor={face="fl-sand"}} |
12 |
cells["."]=cell{} |
cells["."]=cell{} |
13 |
cells["#"]=cell{parent={cells[" "]},stone={face="st-greenbrown"}} |
cells["#"]=cell{parent=cells[" "],stone={face="st-greenbrown"}} |
14 |
cells["x"]=cell{parent={cells[" "]},stone={face="st-grate1"}} |
cells["x"]=cell{parent=cells[" "],stone={face="st-grate1"}} |
15 |
cells["@"]=cell{parent={cells[" "]},stone={face="st-wood"}} |
cells["@"]=cell{parent=cells[" "],stone={face="st-wood"}} |
16 |
cells["O"]=cell{parent={cells[" "]},item={face="ac-blackball", attr={player=0}, actor=1}} |
cells["O"]=cell{parent=cells[" "],item={face="ac-blackball", attr={player=0}, actor=1}} |
17 |
cells["+"]=cell{parent={cells[" "]},stone={face="st-puzzle", attr={connections=PUZ_0000}}} |
cells["+"]=cell{parent={cells[" "], {puzzle, PUZ_0000}}} |
18 |
cells["|"]=cell{parent={cells[" "]},stone={face="st-puzzle", attr={connections=PUZ_0101}}} |
cells["|"]=cell{parent={cells[" "], {puzzle, PUZ_0101}}} |
19 |
cells[","]=cell{parent={cells[" "]},stone={face="st-puzzle", attr={connections=PUZ_0001}}} |
cells[","]=cell{parent={cells[" "], {puzzle, PUZ_0001}}} |
20 |
cells["'"]=cell{parent={cells[" "]},stone={face="st-puzzle", attr={connections=PUZ_0100}}} |
cells["'"]=cell{parent={cells[" "], {puzzle, PUZ_0100}}} |
21 |
cells["A"]=cell{parent={cells[" "]},stone={face="st-door", attr={name="doorA", type="v"}}} |
cells["A"]=cell{parent=cells[" "],stone={face="st-door", attr={name="doorA", type="v"}}} |
22 |
cells["B"]=cell{parent={cells[" "]},stone={face="st-door", attr={name="doorB", type="h"}}} |
cells["B"]=cell{parent=cells[" "],stone={face="st-door", attr={name="doorB", type="h"}}} |
23 |
cells["C"]=cell{parent={cells[" "]},stone={face="st-door", attr={name="doorC", type="h"}}} |
cells["C"]=cell{parent=cells[" "],stone={face="st-door", attr={name="doorC", type="h"}}} |
24 |
cells["D"]=cell{parent={cells[" "]},stone={face="st-door", attr={name="doorD", type="v"}}} |
cells["D"]=cell{parent=cells[" "],stone={face="st-door", attr={name="doorD", type="v"}}} |
25 |
cells["E"]=cell{parent={cells[" "]},stone={face="st-door", attr={name="doorE", type="h"}}} |
cells["E"]=cell{parent=cells[" "],stone={face="st-door", attr={name="doorE", type="h"}}} |
26 |
cells["F"]=cell{parent={cells[" "]},stone={face="st-door", attr={name="doorF", type="v"}}} |
cells["F"]=cell{parent=cells[" "],stone={face="st-door", attr={name="doorF", type="v"}}} |
27 |
cells["a"]=cell{parent={cells[" "]},item={face="it-trigger", attr={action="openclose", target="doorA"}}} |
cells["a"]=cell{parent=cells[" "],item={face="it-trigger", attr={action="openclose", target="doorA"}}} |
28 |
cells["b"]=cell{parent={cells[" "]},item={face="it-trigger", attr={action="openclose", target="doorB"}}} |
cells["b"]=cell{parent=cells[" "],item={face="it-trigger", attr={action="openclose", target="doorB"}}} |
29 |
cells["c"]=cell{parent={cells[" "]},item={face="it-trigger", attr={action="openclose", target="doorC"}}} |
cells["c"]=cell{parent=cells[" "],item={face="it-trigger", attr={action="openclose", target="doorC"}}} |
30 |
cells["d"]=cell{parent={cells[" "]},item={face="it-trigger", attr={action="openclose", target="doorD"}}} |
cells["d"]=cell{parent=cells[" "],item={face="it-trigger", attr={action="openclose", target="doorD"}}} |
31 |
cells["e"]=cell{parent={cells[" "]},item={face="it-trigger", attr={action="openclose", target="doorE"}}} |
cells["e"]=cell{parent=cells[" "],item={face="it-trigger", attr={action="openclose", target="doorE"}}} |
32 |
cells["f"]=cell{parent={cells[" "]},item={face="it-trigger", attr={action="openclose", target="doorF"}}} |
cells["f"]=cell{parent=cells[" "],item={face="it-trigger", attr={action="openclose", target="doorF"}}} |
33 |
cells["1"]=cell{parent={cells[" "]},stone={face="st-oxyd", attr={flavor="b", color="1"}}} |
cells["0"]=cell{parent={cells[" "], oxyd}} |
|
cells["2"]=cell{parent={cells[" "]},stone={face="st-oxyd", attr={flavor="b", color="2"}}} |
|
|
cells["3"]=cell{parent={cells[" "]},stone={face="st-oxyd", attr={flavor="b", color="3"}}} |
|
34 |
|
|
35 |
enigma1 = { |
enigma1 = { |
36 |
".#######.", |
".#######.", |
60 |
"# #.", |
"# #.", |
61 |
"#......#.", |
"#......#.", |
62 |
"#......#.", |
"#......#.", |
63 |
"#112233#.", |
"#000000#.", |
64 |
"########." |
"########." |
65 |
} |
} |
66 |
|
|
71 |
|
|
72 |
create_world(levelw, levelh) |
create_world(levelw, levelh) |
73 |
fill_floor("fl-abyss", 0, 0, level_width, level_height) |
fill_floor("fl-abyss", 0, 0, level_width, level_height) |
74 |
draw_map(2, 0, enigma1, TRANSPOSE_MAP) |
draw_map(2, 0, enigma1, cells, TRANSPOSE_MAP) |
75 |
oxyd_shuffle() |
oxyd_shuffle() |
76 |
display.SetFollowMode(display.FOLLOW_SCROLLING) |
display.SetFollowMode(display.FOLLOW_SCROLLING) |