~ubuntu-branches/ubuntu/raring/enigma/raring

« back to all changes in this revision

Viewing changes to data/levels/enigma_ix/pulley28_1.xml

  • Committer: Bazaar Package Importer
  • Author(s): Erich Schubert
  • Date: 2010-05-26 02:27:26 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100526022726-7tnbf65s6btbibu2
Tags: 1.10~~pre-alpha+r2100-1
* New SVN checkout, shortly after upstream "pre-alpha" release
* Target unstable, to get more testing for enigma
* Remove spelling patches included upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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">
 
3
  <el:protected>
 
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"/>
 
13
    </el:info>
 
14
    <el:luamain><![CDATA[
 
15
wo["MaxOxydColor"] = OXYD_BROWN
 
16
 
 
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"}
 
23
else
 
24
    ti["#"] = ti[" "] .. {"st_oxyd_e", "oxydextra#", target = "oxyd_callback"}
 
25
end
 
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}
 
33
 
 
34
wo(ti, " ", {
 
35
    "--------------------",
 
36
    "-*                *-",
 
37
    "-        ++        -",
 
38
    "-        ++        -",
 
39
    "-        ==        -",
 
40
    "-        ==        -",
 
41
    "-        ==        -",
 
42
    "-        ==        -",
 
43
    "-        ==        -",
 
44
    "-        ==        -",
 
45
    "-        ==        -",
 
46
    "-*       ==       *-",
 
47
    "--------L==R--------",
 
48
    "#        ++        #",
 
49
    "#=++============++=o",
 
50
    "O   +          +   #",
 
51
    "#=++============++=o",
 
52
    "O   +          +   #",
 
53
    "#=++============++=o",
 
54
    "O   +          +   #",
 
55
    "#=++============++=o",
 
56
    "O   +          +   #",
 
57
    "#=++============++=o",
 
58
    "O   +          +   #",
 
59
    "S=++============++=o",
 
60
    "O   +          +   S",
 
61
    "S=++============++=o",
 
62
    "O   +          +   S",
 
63
    "S=++============++=o",
 
64
    "O   +          +   S",
 
65
    "S=++============++=o",
 
66
    "O   +          +   S",
 
67
    "S=++=====++=====++=o",
 
68
    "O @ +          +   S",
 
69
    "====================",
 
70
    "====================",
 
71
    "===================="})
 
72
 
 
73
if wo ["IsDifficult"] then
 
74
    wo:shuffleOxyd({"oxydleft#*", max=0}, {"oxydright#*", max=0}, {"oxydend#*", min=2})
 
75
else
 
76
    wo:shuffleOxyd()
 
77
end
 
78
no["oxyd*"][1]:peepall()
 
79
 
 
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
 
87
            wo:shuffleOxyd()
 
88
            no["oxyd*"][1]:peepall()
 
89
        end
 
90
    elseif sender.state == OPEN then
 
91
        last_oxyd = sender
 
92
    end
 
93
end
 
94
 
 
95
function collapse(value, sender)
 
96
    st(4, sender.y):kill()
 
97
    st(15, sender.y):kill()
 
98
    if not wo["IsDifficult"] then
 
99
        wo:shuffleOxyd()
 
100
        no["oxyd*"][1]:peepall()
 
101
    end
 
102
    wo[sender] = {"it_seed_greenbrown"}
 
103
    it(sender):grow()
 
104
end
 
105
 ]]></el:luamain>
 
106
    <el:i18n>
 
107
      <el:string el:key="title">
 
108
        <el:english el:translate="false"/>
 
109
      </el:string>
 
110
    </el:i18n>
 
111
  </el:protected>
 
112
</el:level>