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

« back to all changes in this revision

Viewing changes to data/levels/enigma_advent_10/zephyr30_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="Stairway to Heaven" el:subtitle="" el:id="zephyr30"/>
 
6
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
 
7
      <el:author el:name="Zephyr" el:email=""/>
 
8
      <el:copyright>Copyright © 2009 Zephyr</el:copyright>
 
9
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
 
10
      <el:compatibility el:enigma="1.10"/>
 
11
      <el:modes el:easy="true" el:single="true" el:network="false"/>
 
12
      <el:score el:easy="-" el:difficult="-"/>
 
13
    </el:info>
 
14
    <el:luamain><![CDATA[
 
15
wo["ConserveLevel"] = false
 
16
wo["GlobalForce"] = cond(wo["IsDifficult"], po(0.0,20.0), po(0.0,10.0))
 
17
 
 
18
ti[" "] = {"fl_bright"}
 
19
ti["~"] = {"fl_water"}
 
20
ti["#"] = {"st_purplegray"}
 
21
ti["1"] = {"st_door", name="door%1", faces="ns", _gravity=po(0.0,-20.0)}
 
22
ti["2"] = {"st_door", name="door%2", faces="ns", _gravity=po(20.0,0.0)}
 
23
ti["3"] = {"st_door", name="door%3", faces="ns", _gravity=po(-20.0,0.0)}
 
24
ti["t"] = {"it_trigger", action="callback", target="gravity", _doorid="door%%"}
 
25
ti["O"] = {"st_oxyd", flavor="a"}
 
26
ti["@"] = {"#ac_marble"}
 
27
 
 
28
wo(res.autotile(ti, {"a", "c", "t"}), " ", {
 
29
   "##################",
 
30
   "#O#~~~~~~~~~~   a#",
 
31
   "#3#~~~~~~~~~  ##2#",
 
32
   "#b~~~~~~~~~  ### #",
 
33
   "# ~~~~~~~~  #### #",
 
34
   "# ~~~~~~~  ##### #",
 
35
   "# ~~~~~~  ###### #",
 
36
   "# ~~~~~  ####### #",
 
37
   "# ~~~~  ######## #",
 
38
   "# ~~~  ######### #",
 
39
   "#1#~  ##########c#",
 
40
   "# @  ###########O#",
 
41
   "##################"})
 
42
 
 
43
function gravity(value, sender)
 
44
    sender["target"] = DEFAULT
 
45
    if wo["IsDifficult"] then
 
46
        wo["GlobalForce"] = no[sender["_doorid"]]["_gravity"]
 
47
    else
 
48
        wo["GlobalForce"] = 0.5 * no[sender["_doorid"]]["_gravity"]
 
49
    end
 
50
    no[sender["_doorid"]]:open()
 
51
end
 
52
 ]]></el:luamain>
 
53
    <el:i18n>
 
54
      <el:string el:key="title">
 
55
        <el:english el:translate="false"/>
 
56
      </el:string>
 
57
    </el:i18n>
 
58
  </el:protected>
 
59
</el:level>