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

« back to all changes in this revision

Viewing changes to data/levels/enigma_iv/duffy41_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="Ball and Chain" el:subtitle="" el:id="duffy41"/>
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
 
enigma.ConserveLevel = 0
27
 
 
28
 
fill_floor("fl-bluegreen", 0,0,levelw,levelh)
29
 
 
30
 
function renderLine( line, pattern)
31
 
    for i=1, strlen(pattern) do
32
 
        local c = strsub( pattern, i, i)
33
 
        if c =="#" then
34
 
            set_stone( "st-greenbrown", i-1, line)
35
 
        elseif c == "o" then
36
 
            oxyd( i-1, line)
37
 
        elseif c == "!" then
38
 
            abyss(i-1,line)
39
 
        elseif c=="+" then
40
 
            set_stone( "st-wood", i-1, line)
41
 
        elseif c=="g" then
42
 
            draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
43
 
        elseif c=="l" then
44
 
            oneway(i-1,line, enigma.WEST)
45
 
        elseif c=="u" then
46
 
            oneway(i-1,line, enigma.NORTH)
47
 
        elseif c=="r" then
48
 
            oneway(i-1,line, enigma.EAST)
49
 
        elseif c=="d" then
50
 
            oneway(i-1,line, enigma.SOUTH)
51
 
        elseif c=="z" then
52
 
            set_actor("ac-blackball", i-.5,line+.5)
53
 
        elseif c=="y" then
54
 
            set_actor("ac-whiteball", i-.5,line+.5, {player=0})
55
 
        elseif c=="H" then
56
 
            hollow(i-1,line)
57
 
        elseif c=="g" then
58
 
            draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
59
 
        elseif c=="G" then
60
 
            draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
61
 
            set_item("it-seed", i-1, line)
62
 
        elseif c=="b" then
63
 
            yy1( "black",  i-1, line)
64
 
            abyss(i-1,line)
65
 
        elseif c=="B" then
66
 
            yy1( "black",  i-1, line)
67
 
        elseif c=="w" then
68
 
            yy1( "white",  i-1, line)
69
 
        end
70
 
    end
71
 
end
72
 
 
73
 
function yy1( color, x, y)
74
 
    stone = format( "st-%s4", color)
75
 
    set_stone( stone, x, y)
76
 
end
77
 
 
78
 
 
79
 
renderLine(00,"##o#o######o########")
80
 
renderLine(01,"# BbBbbbbb Bb      #")
81
 
renderLine(02,"# bb     b bb bbbb #")
82
 
renderLine(03,"#  b bbb b  b b    #")
83
 
renderLine(04,"#b b bob b bb b bbb#")
84
 
renderLine(05,"#b b  Bb   b  b b Bo")
85
 
renderLine(06,"#b bbbbb   bBb   b #")
86
 
renderLine(07,"#b b       bob b b #")
87
 
renderLine(08,"#b b bbbb  bbb b b #")
88
 
renderLine(09,"#b b   bb b    b b #")
89
 
renderLine(10,"#   bb b  b b bb b #")
90
 
renderLine(11,"# b    bb   bBbB   #")
91
 
renderLine(12,"#############o#o####")
92
 
 
93
 
oxyd_shuffle()
94
 
 
95
 
local actor1=set_actor("ac-blackball", 9.5,6.5)
96
 
local actor2=set_actor("ac-whiteball",  9.5, 9.5)
97
 
 
98
 
AddRubberBand(actor1, actor2, 15, 0)
99
 
    ]]></el:luamain>
100
 
    <el:i18n>
101
 
      <el:string el:key="title">
102
 
        <el:english el:translate="false"/>
103
 
      </el:string>
104
 
    </el:i18n>
105
 
  </el:protected>
106
 
</el:level>