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

« back to all changes in this revision

Viewing changes to data/levels/enigma_ii/duffy45_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="Washing Machine" el:subtitle="" el:id="duffy45"/>
6
 
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
7
 
      <el:author  el:name="Jacob Scott" el:email="" el:homepage=""/>
8
 
      <el:copyright>Copyright © 2003 Jacob Scott</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
 
rooms_wide=1
20
 
rooms_high=1
21
 
 
22
 
levelw=1+(19*rooms_wide)
23
 
levelh=1+(12*rooms_high)
24
 
 
25
 
create_world( levelw, levelh)
26
 
 
27
 
fill_floor("fl-metal", 0,0,levelw,levelh)
28
 
 
29
 
function renderLine( line, pattern)
30
 
    for i=1, strlen(pattern) do
31
 
        local c = strsub( pattern, i, i)
32
 
        if c =="#" then
33
 
            set_stone( "st-greenbrown", i-1, line)
34
 
        elseif c == "!" then
35
 
            fill_floor("fl-water", i-1,line, 1,1)
36
 
        elseif c == " " then
37
 
            abyss(i-1,line)
38
 
        elseif c=="w" then
39
 
            set_actor("ac-whiteball-small", i-.5,line+.5, {player=0, mouseforce=1})
40
 
        elseif c=="H" then
41
 
            hollow(i-1,line)
42
 
        elseif c=="*" then
43
 
            set_stone("st-greenbrown",i-1,line)
44
 
        elseif c=="r" then
45
 
            set_floor("fl-gradient", i-1,line , {type=23})
46
 
        elseif c=="l" then
47
 
            set_floor("fl-gradient", i-1,line , {type=24})
48
 
        elseif c=="d" then
49
 
            set_floor("fl-gradient", i-1,line , {type=21})
50
 
        elseif c=="u" then
51
 
            set_floor("fl-gradient", i-1,line , {type=22})
52
 
        elseif c=="R" then
53
 
            set_floor("fl-gradient", i-1,line , {type=23})
54
 
            set_actor("ac-whiteball-small", i-.5,line+.5, {player=0, mouseforce=1, essential=1})
55
 
        elseif c=="L" then
56
 
            set_floor("fl-gradient", i-1,line , {type=24})
57
 
            set_actor("ac-whiteball-small", i-.5,line+.5, {player=0, mouseforce=1, essential=1})
58
 
        elseif c=="D" then
59
 
            set_floor("fl-gradient", i-1,line , {type=21})
60
 
            set_actor("ac-whiteball-small", i-.5,line+.5, {player=0, mouseforce=1, essential=1})
61
 
        elseif c=="U" then
62
 
            set_floor("fl-gradient", i-1,line , {type=22})
63
 
            set_actor("ac-whiteball-small", i-.5,line+.5, {player=0, mouseforce=1, essential=1})
64
 
        elseif c=="x" then
65
 
            set_floor("fl-metal", i-1,line)
66
 
        end
67
 
    end
68
 
end
69
 
 
70
 
renderLine(00,"   #############    ")
71
 
renderLine(01,"   #RrrrrrddddD#    ")
72
 
renderLine(02,"   #rrrrrrddddd#    ")
73
 
renderLine(03,"   #rrrrrrddddd#    ")
74
 
renderLine(04,"   #rrrrrrddddd#    ")
75
 
renderLine(05,"   #rrrrHrHdddd#    ")
76
 
renderLine(06,"   #uuuuu ddddd#    ")
77
 
renderLine(07,"   #uuuuHlHllll#    ")
78
 
renderLine(08,"   #uuuuullllll#    ")
79
 
renderLine(09,"   #uuuuullllll#    ")
80
 
renderLine(10,"   #uuuuullllll#    ")
81
 
renderLine(11,"   #UuuuulllllL#    ")
82
 
renderLine(12,"   #############    ")
83
 
    ]]></el:luamain>
84
 
    <el:i18n>
85
 
      <el:string el:key="title">
86
 
        <el:english el:translate="false"/>
87
 
      </el:string>
88
 
    </el:i18n>
89
 
  </el:protected>
90
 
</el:level>