1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
<el:level xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://enigma-game.org/schema/level/1 level.xsd" xmlns:el="http://enigma-game.org/schema/level/1">
4
<el:info el:type="level">
5
<el:identity el:title="Collapsing Building" el:subtitle="" el:id="20081018pulley001"/>
6
<el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
7
<el:author el:name="Mark Pulley" el:email="" el:homepage=""/>
8
<el:copyright>Copyright © 2009 Mark Pulley</el:copyright>
9
<el:license el:type="GPL v2.0 or above" el:open="true"/>
10
<el:compatibility el:enigma="1.10"/>
11
<el:modes el:easy="true" el:single="true" el:network="false"/>
12
<el:score el:easy="2:34" el:difficult="1:21"/>
15
wo["MaxOxydColor"] = OXYD_BROWN
17
ti[" "] = {"fl_blueslab"}
18
ti["="] = {"st_puzzle_blue", cluster=1}
19
ti["+"] = {"st_puzzle_blue", cluster=1, hollow=true}
20
ti["-"] = {"st_puzzle_blue", cluster=2}
21
if wo ["IsDifficult"] then
22
ti["#"] = {"st_greenbrown"}
24
ti["#"] = ti[" "] .. {"st_oxyd_e", "oxydextra#", target = "oxyd_callback"}
26
ti["L"] = {"st_rotator_cw"}
27
ti["R"] = {"st_rotator_ccw"}
28
ti["S"] = {"st_switch", action="callback", target="collapse", safeaction=true}
29
ti["O"] = {"st_oxyd_e", name="oxydleft#", target="oxyd_callback"}
30
ti["o"] = {"st_oxyd_e", name="oxydright#", target="oxyd_callback"}
31
ti["*"] = {"st_oxyd_e", name="oxydend#", target="oxyd_callback"}
32
ti["@"] = {"#ac_marble_black", 0.5, 0.0}
35
"--------------------",
47
"--------L==R--------",
49
"#=++============++=o",
51
"#=++============++=o",
53
"#=++============++=o",
55
"#=++============++=o",
57
"#=++============++=o",
59
"S=++============++=o",
61
"S=++============++=o",
63
"S=++============++=o",
65
"S=++============++=o",
67
"S=++=====++=====++=o",
69
"====================",
70
"====================",
71
"===================="})
73
if wo ["IsDifficult"] then
74
wo:shuffleOxyd({"oxydleft#*", max=0}, {"oxydright#*", max=0}, {"oxydend#*", min=2})
78
no["oxyd*"][1]:peepall()
80
function oxyd_callback(value, sender)
81
local name = sender.name
82
if sender.state == OXYDPAIR then
83
wo[sender] = {"it_seed_greenbrown"}
84
wo[last_oxyd] = {"it_seed_greenbrown"}
85
it(grp(sender, last_oxyd)):grow()
86
if not wo["IsDifficult"] then
88
no["oxyd*"][1]:peepall()
90
elseif sender.state == OPEN then
95
function collapse(value, sender)
96
st(4, sender.y):kill()
97
st(15, sender.y):kill()
98
if not wo["IsDifficult"] then
100
no["oxyd*"][1]:peepall()
102
wo[sender] = {"it_seed_greenbrown"}
107
<el:string el:key="title">
108
<el:english el:translate="false"/>