~ubuntu-branches/ubuntu/trusty/enigma/trusty-proposed

« back to all changes in this revision

Viewing changes to data/levels/enigma_ii/xerxes02_1.xml

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2013-04-06 14:54:02 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130406145402-jgjrtk7hac8gtvza
Tags: 1.20-dfsg.1-1
* New upstream release (Closes: #704595)
  (Repacked: dropped zipios++ source and main menu music)
* Update watch file, sf.net again.
* Fix documentation links (Closes: #653508)
* Conflict with enigma-level-previews to encourage deinstallation
  (Pregenerated level previews were only used with version 1.01)
* Use dh7 for building instead of CDBS
* Update to policy 3.9.4.0 (no changes)
* Register documentation with doc-base

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="Dirt Clod" el:subtitle="" el:id="xerxes02"/>
6
 
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
7
 
      <el:author  el:name="Xerxes M. Dynatos" el:email="" el:homepage=""/>
8
 
      <el:copyright>Copyright © 2005 Xerxes M. Dynatos</el:copyright>
9
 
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
10
 
      <el:compatibility el:enigma="0.92">
11
 
      </el:compatibility>
12
 
      <el:modes el:easy="false" el:single="true" el:network="false"/>
13
 
      <el:comments>
14
 
        <el:code>Lua 5.1 and XML converted by Leveladministrators</el:code>
15
 
      </el:comments>
16
 
      <el:score el:easy="-" el:difficult="-"/>
17
 
    </el:info>
18
 
    <el:luamain><![CDATA[
19
 
levelw=60
20
 
levelh=33
21
 
 
22
 
create_world( levelw, levelh)
23
 
 
24
 
fill_floor("fl-himalaya", 0,0,levelw,levelh) --fl-leaves --fl-acblack
25
 
 
26
 
function renderLine( line, pattern)
27
 
    for i=1, strlen(pattern) do
28
 
        local c = strsub( pattern, i, i)
29
 
        if c =="#" then
30
 
            set_stone( "st-greenbrown", i-1, line)
31
 
        elseif c == "o" then
32
 
            oxyd( i-1, line)
33
 
        elseif c == "H" then
34
 
            set_stone( "st-greenbrown_hole", i-1, line)
35
 
        elseif c == "h" then
36
 
            set_stone( "st-greenbrown_hole", i-1, line)
37
 
            set_item("it-key_a", i-1 ,line)
38
 
        elseif c == "G" then
39
 
            set_stone( "st-glass1_hole", i-1, line)
40
 
                elseif c == "!" then
41
 
            fill_floor("fl-water", i-1,line, 1,1)
42
 
        elseif c=="z" then
43
 
            set_actor("ac-blackball", i-.5,line+.5)
44
 
            --set_actor("ac-whiteball", i-.5,line+.5)
45
 
            --set_item("it-extralife", i-.5,line+.5)
46
 
            --set_item("it-extralife", i-.5,line+.5)
47
 
            --set_item("it-extralife", i-.5,line+.5)
48
 
        elseif c=="+" then
49
 
            set_stone( "st-wood", i-1, line)
50
 
            --fill_floor("fl-leaves", i-1,line, 1,1)
51
 
            fill_floor("fl-brick", i-1,line, 1,1)
52
 
        elseif c=="A" then
53
 
            doorv(i-1,line,{name="door1"})
54
 
        elseif c=="B" then
55
 
            doorv(i-1,line,{name="door2"})
56
 
        elseif c=="E" then
57
 
            doorv(i-1,line,{name="door3"})
58
 
        elseif c=="D" then
59
 
            set_stone("st-floppy", i-1, line, {action="openclose", target="door2"})
60
 
        elseif c=="d" then
61
 
            set_stone( "st-greenbrown_hole", i-1, line)
62
 
            set_item("it-floppy", i-1, line)
63
 
        elseif c=="C" then
64
 
            set_stone("st-key_a", i-1, line, {action="openclose", target="door1"})
65
 
        elseif c=="c" then        
66
 
            set_item("it-key_a", i-1 ,line)
67
 
            elseif c=="e" then
68
 
            set_stone("st-switch", i-1,line, {action="openclose",target="door5"})
69
 
        elseif c=="x" then
70
 
            set_stone( "st-greenbrown_hole", i-1, line)
71
 
            set_item("it-extralife", i-.5,line+.5)
72
 
        elseif c=="r" then
73
 
            set_stone("st-door_b", i-1,line, {name="door5"})
74
 
        elseif c=="q" then
75
 
            set_stone("st-door_b", i-1,line, {name="door6"})
76
 
        elseif c=="W" then
77
 
            set_stone( "st-greenbrown_hole", i-1, line)
78
 
            set_item("it-wormhole", i-1,line, {strength=1,targetx="5",targety="6"})
79
 
        elseif c=="M" then
80
 
            set_stone( "st-greenbrown_hole", i-1, line)
81
 
            set_item("it-coin1",i-1,line)
82
 
        elseif c=="f" then
83
 
            set_stone( "st-fart", i-1, line)
84
 
        elseif c=="S" then
85
 
            set_stone( "st-coinslot", i-1, line, {action="openclose", target="door8"})
86
 
        elseif c=="s" then
87
 
            doorv(i-1,line,{name="door8"})
88
 
        elseif c=="P" then
89
 
            doorv(i-1,line,{name="door9"})
90
 
        elseif c=="p" then
91
 
            set_stone("st-switch", i-1,line, {action="openclose",target="door9"})
92
 
        end
93
 
    end    
94
 
end
95
 
 
96
 
 
97
 
renderLine(00,"############################################################")
98
 
renderLine(01,"#HHHHHHHHHHHHHHHHH##########################################")
99
 
renderLine(02,"#H###############H####W##H######W#####p######W#######HH#####")
100
 
renderLine(03,"#H#         o    B          o         s      +  ! o      ###")
101
 
renderLine(04,"#H#         o    #          o         q      +  !       # d#")
102
 
renderLine(05,"#H#         o    #          o         E      +  ! o    #  ##")
103
 
renderLine(06,"#H#z        H    #          G         q     +   !     #   ##")
104
 
renderLine(07,"#H#         h    C          o         q    +    !    ##   W#")
105
 
renderLine(08,"#H#         H    A          G         E     +   !    P    ##")
106
 
renderLine(09,"#H#         o    #          o         q   +     ! o ##    ##")
107
 
renderLine(10,"#H#              #          G         q    +    !   #     H#")
108
 
renderLine(11,"#H#         o    E          o         r   +     ! o#     f##")
109
 
renderLine(12,"#H##HH########H###M###H############H##########H#########H###")
110
 
renderLine(13,"#H##WH########H#######W############H##########H#########H###")
111
 
renderLine(14,"#H###H########H####################H##########H#########H###")
112
 
renderLine(15,"#H###HHHHHHHHHH#############xxxxx#HHHHHHHHHHeHH#########H###")
113
 
renderLine(16,"#H###########################################S##########H###")
114
 
renderLine(17,"#H######################################################HHH#")
115
 
renderLine(18,"#H########################################################H#")
116
 
renderLine(19,"# HHHHHHHHHHHHHHHHH     HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH #H#")
117
 
renderLine(20,"########################################################H#H#")
118
 
renderLine(21,"########################################################H#H#")
119
 
renderLine(22,"########################################################H#H#")
120
 
renderLine(23,"########################################################H#H#")
121
 
renderLine(24,"########################################################H#H#")
122
 
renderLine(25,"########################################################H#H#")
123
 
renderLine(26,"########################################################H#H#")
124
 
renderLine(27,"########################################################H#H#")
125
 
renderLine(28,"############HHH##H   H##H H###################H H#H  H##H#H#")
126
 
renderLine(29,"#########o##H#H##H###H##H#H###################H H#H##H##H#H#")
127
 
renderLine(30,"########W    #HHHH###H  H#HHHHH     HHHHHHHHHHH#HHH##HHH #H#")
128
 
renderLine(31,"#########H#################################H##############D#")
129
 
renderLine(32,"############################################################")
130
 
renderLine(33,"############################################################")
131
 
 
132
 
oxyd_shuffle()
133
 
 
134
 
display.SetFollowMode(display.FOLLOW_SCROLLING)
135
 
    ]]></el:luamain>
136
 
    <el:i18n>
137
 
      <el:string el:key="title">
138
 
        <el:english el:translate="false"/>
139
 
      </el:string>
140
 
    </el:i18n>
141
 
  </el:protected>
142
 
</el:level>