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

« back to all changes in this revision

Viewing changes to data/levels/pentomino_i/pento30_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 XXX" el:subtitle="6 solutions" el:id="pento30"/>
 
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
wo["FollowGrid"] = true
 
18
wo["FollowMethod"] = FOLLOW_SCROLL
 
19
wo["FollowAction"] = FOLLOW_HALFSCREEN
 
20
 
 
21
ti[" "] = {"fl_plank"}
 
22
ti["+"] = {"fl_bluegreen", "source#"}
 
23
ti["."] = {"fl_lawn", "target#"}
 
24
ti["#"] = {"st_bluesand", cluster=1}
 
25
ti["%"] = {"st_bluesand", name="oxyd#", cluster=2}
 
26
ti["&"] = {"st_switch", target="pento.next"}
 
27
ti["/"] = {"st_fourswitch", target="pento.rotate"}
 
28
ti["|"] = {"st_switch", target="pento.mirror"}
 
29
ti["*"] = {"st_oxyd"}
 
30
ti["n"] = {"it_puller_n"}
 
31
ti["e"] = {"it_puller_e"}
 
32
ti["s"] = {"it_puller_s"}
 
33
ti["w"] = {"it_puller_w"}
 
34
ti["N"] = ti["n"] .. ti({"fl_plank","pullers"})
 
35
ti["!"] = {"it_sensor", target="addpullers", invisible=true}
 
36
 
 
37
ti["@"] = {"#ac_marble"}
 
38
 
 
39
pento = res.pento(ti, "source", "target")
 
40
 
 
41
wo(pento, " ", {
 
42
    "##&#/#|#%%%%%%%%%%%%%%#",
 
43
    "%@               !Nesw%",
 
44
    "% +++++          !!!!!%",
 
45
    "% +++++               %",
 
46
    "% +++++               %",
 
47
    "% +++++               %",
 
48
    "% +++++               %",
 
49
    "%                     %",
 
50
    "%                     %",
 
51
    "#.....................#",
 
52
    "#.... ..... ..... ....#",
 
53
    "#.....................#",
 
54
    "#######################"})
 
55
 
 
56
wo:add({"ot_timer", interval=0.5, target="check"})
 
57
 
 
58
function check(value, sender)
 
59
    if pento.check() then
 
60
        sender.state=OFF
 
61
        wo[no["oxyd#*"]:shuffle():sub(12)] = ti["*"]
 
62
        wo:shuffleOxyd()
 
63
    end
 
64
end
 
65
 
 
66
function addpullers()
 
67
    wo:drawMap(ti, no["pullers"], " ", {"nesw"})
 
68
end
 
69
 ]]></el:luamain>
 
70
    <el:i18n>
 
71
      <el:string el:key="title">
 
72
        <el:english el:translate="false"/>
 
73
      </el:string>
 
74
    </el:i18n>
 
75
  </el:protected>
 
76
</el:level>