~ubuntu-branches/ubuntu/natty/enigma/natty

« back to all changes in this revision

Viewing changes to data/levels/pentomino_i/pento74_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="Pentomino LXXIV" el:subtitle="4 solutions" el:id="pento74"/>
 
6
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
 
7
      <el:author el:name="Enigma Team" el:email=""/>
 
8
      <el:copyright>Copyright © 2009 Enigma Team</el:copyright>
 
9
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
 
10
      <el:compatibility el:enigma="1.10">
 
11
        <el:dependency el:path="lib/libpento" el:id="lib/libpento" el:release="1" el:preload="true"/>
 
12
      </el:compatibility>
 
13
      <el:modes el:easy="false" el:single="true" el:network="false"/>
 
14
      <el:score el:easy="-" el:difficult="-"/>
 
15
    </el:info>
 
16
    <el:luamain><![CDATA[
 
17
ti[" "] = {"fl_plank"}
 
18
ti["+"] = {"fl_bluegreen", "source#"}
 
19
ti["."] = {"fl_lawn", "target#"}
 
20
ti["#"] = {"st_bluesand", cluster=1}
 
21
ti["%"] = {"st_bluesand", name="oxyd#", cluster=2}
 
22
ti["&"] = {"st_switch", target="pento.next"}
 
23
ti["/"] = {"st_fourswitch", target="pento.rotate"}
 
24
ti["|"] = {"st_switch", target="pento.mirror"}
 
25
ti["*"] = {"st_oxyd"}
 
26
ti["n"] = {"it_puller_n"}
 
27
ti["e"] = {"it_puller_e"}
 
28
ti["s"] = {"it_puller_s"}
 
29
ti["w"] = {"it_puller_w"}
 
30
ti["N"] = ti["n"] .. ti({"fl_plank","pullers"})
 
31
ti["!"] = {"it_sensor", target="addpullers", invisible=true}
 
32
 
 
33
ti["@"] = {"#ac_marble"}
 
34
 
 
35
pento = res.pento(ti, "source", "target")
 
36
 
 
37
wo(pento, " ", {
 
38
    "#%%%%%%%%%%%####%%%#",
 
39
    "%           ....   %",
 
40
    "%         ........ %",
 
41
    "#          ......  %",
 
42
    "& +++++    ......  %",
 
43
    "# +++++    ......  %",
 
44
    "/ +++++ @          %",
 
45
    "# +++++    ......  %",
 
46
    "| +++++    ......  %",
 
47
    "#          ......  %",
 
48
    "%!!!!!    ........ %",
 
49
    "%Nesw!      ....   %",
 
50
    "#%%%%%%%%%%%####%%%#"})
 
51
 
 
52
wo:add({"ot_timer", interval=0.5, target="check"})
 
53
 
 
54
function check(value, sender)
 
55
    if pento.check() then
 
56
        sender.state=OFF
 
57
        wo[no["oxyd#*"]:shuffle():sub(12)] = ti["*"]
 
58
        wo:shuffleOxyd()
 
59
    end
 
60
end
 
61
 
 
62
function addpullers()
 
63
    wo:drawMap(ti, no["pullers"], " ", {"nesw"})
 
64
end
 
65
 ]]></el:luamain>
 
66
    <el:i18n>
 
67
      <el:string el:key="title">
 
68
        <el:english el:translate="false"/>
 
69
      </el:string>
 
70
    </el:i18n>
 
71
  </el:protected>
 
72
</el:level>