~ubuntu-branches/ubuntu/saucy/enigma/saucy

« back to all changes in this revision

Viewing changes to data/levels/enigma_oxyd/oxydlink95_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="OxydLink 95" el:subtitle="Oxyd Link 95" el:id="siegfried103"/>
 
6
      <el:version el:score="1" el:release="1" el:revision="0" el:status="released"/>
 
7
      <el:author  el:name="Siegfried Fennig" el:email="" el:homepage=""/>
 
8
      <el:copyright>Copyright © 2004 Siegfried Fennig</el:copyright>
 
9
      <el:license el:type="GPL version 2" el:open="true"/>
 
10
      <el:compatibility el:enigma="0.92" el:engine="oxyd1">
 
11
      </el:compatibility>
 
12
      <el:modes el:easy="false" el:single="true" el:network="true"/>
 
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 = 20
 
20
levelh = 13
 
21
 
 
22
create_world(levelw, levelh)
 
23
enigma.ConserveLevel = FALSE
 
24
oxyd_default_flavor = "d"
 
25
fill_floor("fl-samba")
 
26
 
 
27
function renderLine( line, pattern)
 
28
    for i=1, strlen(pattern) do
 
29
      local c = strsub( pattern, i, i)
 
30
      if c =="B" then
 
31
         set_stone("st-block", i-1,line)
 
32
      elseif c == "w" then
 
33
         set_stone("st-wood",i-1,line)
 
34
      elseif c == "y" then
 
35
         set_stone("st-yinyang1",i-1,line)
 
36
      elseif c == "s" then
 
37
         set_stone("st-rock1",i-1,line)
 
38
      elseif c == "W" then
 
39
         set_stone("st-oneway_white-w",i-1,line)
 
40
      elseif c == "#" then
 
41
         set_floor("fl-abyss",i-1,line)
 
42
      elseif c == "x" then
 
43
         set_item("it-blackbomb",i-1,line)
 
44
      elseif c == "X" then
 
45
         set_stone("st-bombs",i-1,line)
 
46
      elseif c == "S" then
 
47
         set_stone("st-switch",i-1,line, {action="callback", target="sw1"})
 
48
      elseif c == "1" then
 
49
         set_stone("st-door",i-1,line, {name="door1", type="v"})
 
50
      elseif c == "2" then
 
51
         set_stone("st-door",i-1,line, {name="door2", type="h"})
 
52
      elseif c == "c" then
 
53
         set_item("it-crack3",i-1,line)
 
54
      elseif c == "Y" then
 
55
         f1( i-1, line)
 
56
      elseif c == "o" then
 
57
         oxyd( i-1, line)
 
58
      elseif c == "a" then
 
59
         set_actor("ac-blackball", i-.5,line+.5)
 
60
         set_item("it-yinyang", i-1, line+.5)
 
61
      elseif c == "b" then
 
62
         set_actor("ac-whiteball", i-.5,line+.5)
 
63
         set_item("it-yinyang", i-1, line+.5)
 
64
        end
 
65
    end
 
66
end
 
67
 
 
68
function f1( x, y)
 
69
        set_stone("st-grate1", x, y)
 
70
        set_floor("fl-abyss", x, y)
 
71
end
 
72
 
 
73
function sw1()
 
74
    SendMessage("door1", "openclose")
 
75
    SendMessage("door2", "openclose")
 
76
end
 
77
 
 
78
--                        1
 
79
--              01234567890123456789
 
80
renderLine(00, "####################")
 
81
renderLine(01, "o#Y################S")
 
82
renderLine(02, "# 1x#########o# c  #")
 
83
renderLine(03, "Y2Yx#  yw   ### YY #")
 
84
renderLine(04, "# #x  ## ##    yYY #")
 
85
renderLine(05, "#xxxB W  ## ###   y#")
 
86
renderLine(06, "Yx###### ## ###### #")
 
87
renderLine(07, "YyxxxB  accb   y   #")
 
88
renderLine(08, "Yxxsssss ###### ## #")
 
89
renderLine(09, " X sssss ###### ## #")
 
90
renderLine(10, "oXxxx          y   #")
 
91
renderLine(11, "###################o")
 
92
renderLine(12, "####################")
 
93
--              01234567890123456789
 
94
--                        1
 
95
oxyd_shuffle()
 
96
    ]]></el:luamain>
 
97
    <el:i18n>
 
98
      <el:string el:key="title">
 
99
        <el:english el:translate="false"/>
 
100
      </el:string>
 
101
    </el:i18n>
 
102
  </el:protected>
 
103
</el:level>