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

« back to all changes in this revision

Viewing changes to data/levels/enigma_ii/luc25_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="One Way Ticket" el:subtitle="" el:id="luc25"/>
6
 
      <el:version el:score="1" el:release="1" el:revision="0" el:status="released"/>
7
 
      <el:author  el:name="Lukas Schüller" el:email="Lucky_Luc@web.de" el:homepage=""/>
8
 
      <el:copyright>Copyright © 2006 Lukas Schüller</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
 
CreateWorld(39,13)
20
 
done = 0
21
 
-------------------------------------------
22
 
--environment
23
 
fill_floor("fl-leaves",0,0,39,13)
24
 
set_actor("ac-blackball",1.5,6.5,{player=0})
25
 
-------------------------------------------
26
 
--function to create one line of the level
27
 
function line(line,commands)
28
 
  lx = 1
29
 
  while(lx <= strlen(commands)) do
30
 
    i = strsub(commands,lx,lx)
31
 
    if(i == "#") then
32
 
      set_stone("st-greenbrown",lx-1,line-1)
33
 
    end
34
 
    if(i == "I") then
35
 
      set_stone("st-door",lx-1,line-1,{name="doora",type="v"})
36
 
    end
37
 
    if(i == "=") then
38
 
      set_stone("st-door",lx-1,line-1,{name="doorb",type="h"})
39
 
    end
40
 
    if(i == "-") then
41
 
      set_stone("st-door",lx-1,line-1,{name="doorc",type="h"})
42
 
    end
43
 
    if(i == "h") then
44
 
      set_stone("st-greenbrown_hole",lx-1,line-1)
45
 
    end
46
 
    if(i == "m") then
47
 
      set_stone("st-greenbrown_move",lx-1,line-1)
48
 
    end
49
 
    if(i == "F") then
50
 
      set_stone("st-floppy",lx-1,line-1,{action="openclose",target="doora"})
51
 
    end
52
 
    if(i == "A") then
53
 
      set_stone("st-key_a",lx-1,line-1,{action="openclose",target="doorb"})
54
 
    end
55
 
    if(i == "B") then
56
 
      set_stone("st-key_b",lx-1,line-1,{action="openclose",target="doorc"})
57
 
    end
58
 
    if(i == "f") then
59
 
      set_item("it-floppy",lx-1,line-1)
60
 
    end
61
 
    if(i == "a") then
62
 
      set_item("it-key_a",lx-1,line-1)
63
 
    end
64
 
    if(i == "b") then
65
 
      set_item("it-key_b",lx-1,line-1)
66
 
    end
67
 
    if(i == "t") then
68
 
      set_item("it-trigger",lx-1,line-1,{action="close",target="doora",invisible=1})
69
 
    end
70
 
    if(i == "s") then
71
 
      set_stone("st-switch",lx-1,line-1,{action="callback",target="draw_line"})
72
 
    end
73
 
    if(i == "o") then
74
 
      oxyd(lx-1,line-1)
75
 
    end
76
 
    lx = lx + 1
77
 
  end
78
 
end
79
 
----------------------------------------
80
 
--function that changes the 10th line (used for the solution)
81
 
function draw_line()
82
 
  if(done == 0) then
83
 
    line(10,"#        mh")
84
 
    done = 1
85
 
  end
86
 
end
87
 
-----------------------------------------
88
 
--environment
89
 
oxyd_default_flavor = "c"
90
 
line(01,"#######################################")
91
 
line(02,"#o#      ##a       #o                o#")
92
 
line(03,"#=A      ##        h                  #")
93
 
line(04,"#        ##        #                  #")
94
 
line(05,"#        ##        #                  #")
95
 
line(06,"#        F#        #                  #")
96
 
line(07,"#        I t       #        s         #")
97
 
line(08,"#        ##        #                  #")
98
 
line(09,"#        ##        #                  #")
99
 
line(10,"#        ##        #                  #")
100
 
line(11,"#-B      ##        #                  #")
101
 
line(12,"#o#     f##b       #o                o#")
102
 
line(13,"#######################################")
103
 
oxyd_shuffle()
104
 
enigma.ConserveLevel = FALSE
105
 
    ]]></el:luamain>
106
 
    <el:i18n>
107
 
      <el:string el:key="title">
108
 
        <el:english el:translate="false"/>
109
 
      </el:string>
110
 
    </el:i18n>
111
 
  </el:protected>
112
 
</el:level>