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

« back to all changes in this revision

Viewing changes to data/levels/enigma_vi/edward14_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="Holes!" el:subtitle="" el:id="edward14"/>
6
 
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
7
 
      <el:author  el:name="Edward" el:email="" el:homepage=""/>
8
 
      <el:copyright>Copyright © 2006 Edward</el:copyright>
9
 
      <el:license el:type="Donated to Enigma under the projects license" 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="1:11"/>
17
 
    </el:info>
18
 
    <el:luamain><![CDATA[
19
 
create_world(20,13)
20
 
 
21
 
draw_border("st-glass")
22
 
 
23
 
function oxydline(line,p)
24
 
    for i=1, strlen(p) do
25
 
        local c=strsub(p,i,i)
26
 
        if c=="#" then
27
 
            set_floor("fl-white",i-1,line)
28
 
        elseif c==" " then
29
 
            set_floor("fl-black",i-1,line)
30
 
        elseif c=="x" then
31
 
            oxyd(i-1,line)
32
 
        end
33
 
    end
34
 
end
35
 
 
36
 
oxydline(00,"                    ")
37
 
oxydline(01," x    x   x   x   x ")
38
 
oxydline(02,"                    ")
39
 
oxydline(03,"   ##  # # # # ##   ")
40
 
oxydline(04,"  #  # # # # # # #  ")
41
 
oxydline(05,"  #  # # # # # # #  ")
42
 
oxydline(06,"  #  #  #   #  # #  ")
43
 
oxydline(07,"  #  # # #  #  # #  ")
44
 
oxydline(08,"  #  # # #  #  # #  ")
45
 
oxydline(09,"   ##  # #  #  ##   ")
46
 
oxydline(10,"                    ")
47
 
oxydline(11," x    x   x   x   x ")
48
 
oxydline(12,"                    ")
49
 
 
50
 
--Holes with random target:
51
 
for y=1, 11 do
52
 
    for x=1,18 do
53
 
        set_item("it-vortex-open",x,y,{targetx=random(1,18)+.5,targety=random(1,11)+.5})
54
 
    end
55
 
end
56
 
 
57
 
--ugly: overwriting items!
58
 
x=random(1,18)
59
 
y=random(3,9)
60
 
set_actor("ac-blackball",x+0.5,y+0.5,{player=0})
61
 
set_item("it-yinyang",x,y)
62
 
 
63
 
x=random(1,18)
64
 
y=random(3,9)
65
 
set_actor("ac-whiteball",x+0.5,y+0.5,{player=1})
66
 
set_item("it-yinyang",x,y)
67
 
 
68
 
oxyd_shuffle()
69
 
    ]]></el:luamain>
70
 
    <el:i18n>
71
 
      <el:string el:key="title">
72
 
        <el:english el:translate="true"/>
73
 
      </el:string>
74
 
    </el:i18n>
75
 
  </el:protected>
76
 
</el:level>