~ubuntu-branches/ubuntu/intrepid/enigma/intrepid

« back to all changes in this revision

Viewing changes to data/levels/ss_esp88.lua

  • Committer: Bazaar Package Importer
  • Author(s): Erich Schubert
  • Date: 2005-08-28 15:30:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050828153009-sky64kb6tcq37xt5
Tags: 0.92.1-1
* New upstream subversion checkout
* Remove menu.s3m, which we are allowed to distributed but not to modify
  also copyright notice is confusing... (Closes: #321669)
* Rebuild with new libzipios (Closes: #325405)
  I hope this works without a versioned build-dependency
* Added "enigma replaces enigma-data" for upgrades (Closes: #308558)
* Added notes about the fonts copyright.
* updated to policy 3.6.2.1 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
levelw = 39
3
 
levelh = 13
4
 
create_world(levelw, levelh)
5
 
 
6
 
set_actor("ac-blackball", 2.5,10.5)
7
 
 
8
 
fill_floor("fl-bluegray")
9
 
 
10
 
 
11
 
function renderLine( line, pattern)
12
 
    for i=1, strlen(pattern) do
13
 
      local c = strsub( pattern, i, i)
14
 
      if c ==   "#" then
15
 
         set_stone("st-door_b", i-1,line, {type="v"})
16
 
      elseif c=="A" then
17
 
         abyss(i-1,line)
18
 
      elseif c=="x" then
19
 
         set_item("it-key_a", i-1,line)
20
 
      elseif c=="y" then
21
 
         set_item("it-key_b", i-1,line)
22
 
      elseif c=="z" then
23
 
         set_item("it-key_c", i-1,line)
24
 
      elseif c=="1" then
25
 
         set_stone("st-key_a", i-1, line, {action="openclose", target="a"})
26
 
      elseif c=="2" then
27
 
         set_stone("st-key_b", i-1, line, {action="openclose", target="b"})
28
 
      elseif c=="3" then
29
 
         set_stone("st-key_a", i-1, line, {action="openclose", target="c"})
30
 
      elseif c=="4" then
31
 
         set_stone("st-key_c", i-1, line, {action="openclose", target="d"})
32
 
      elseif c=="5" then
33
 
         set_stone("st-key_b", i-1, line, {action="openclose", target="e"})
34
 
      elseif c=="6" then
35
 
         set_stone("st-key_c", i-1, line, {action="openclose", target="f"})
36
 
      elseif c=="7" then
37
 
         set_stone("st-key_b", i-1, line, {action="openclose", target="g"})
38
 
      elseif c=="8" then
39
 
         set_stone("st-key_c", i-1, line, {action="openclose", target="h"})
40
 
      elseif c=="9" then
41
 
         set_stone("st-key_a", i-1, line, {action="openclose", target="i"})
42
 
      elseif c=="a" then
43
 
         set_stone("st-door_c", i-1, line, {name="a"})
44
 
      elseif c=="b" then
45
 
         set_stone("st-door_c", i-1, line, {name="b"})
46
 
      elseif c=="c" then
47
 
         set_stone("st-door_c", i-1, line, {name="c"})
48
 
      elseif c=="d" then
49
 
         set_stone("st-door_c", i-1, line, {name="d"})
50
 
      elseif c=="e" then
51
 
         set_stone("st-door_c", i-1, line, {name="e"})
52
 
      elseif c=="f" then
53
 
         set_stone("st-door_c", i-1, line, {name="f"})
54
 
      elseif c=="g" then
55
 
         set_stone("st-door_c", i-1, line, {name="g"})
56
 
      elseif c=="h" then
57
 
         set_stone("st-door_c", i-1, line, {name="h"})
58
 
      elseif c=="i" then
59
 
         set_stone("st-door_c", i-1, line, {name="i"})
60
 
      elseif c=="o" then
61
 
         set_stone("st-key_a", i-1, line)
62
 
      elseif c=="p" then
63
 
         set_stone("st-key_b", i-1, line)
64
 
      elseif c=="q" then
65
 
         set_stone("st-key_c", i-1, line)
66
 
      elseif c=="O" then 
67
 
         oxyd(i-1,line)  
68
 
        end
69
 
    end
70
 
end
71
 
renderLine(00, "#########AA####A#######A####AA#########")
72
 
renderLine(01, "#O  g  O#AA#x #A# y#  #A# z#AA#O  c  O#")
73
 
renderLine(02, "#   #   #AA#  #A#  #  #A#  #AA#   #   #")
74
 
renderLine(03, "#   #   #AA#  #A#  #  #A#  #AA#   #   #")
75
 
renderLine(04, "##e######AA#  #A#  #  #A#  #AA##h##bd##")  
76
 
renderLine(05, "#O  a  O#AA#  #A#  #  #A#  #AA#O  f  O#")
77
 
renderLine(06, "#   #   #AA#  #A#  #  #A#  #AA#   #   #")
78
 
renderLine(07, "#   #   #AA#  #A#  #  #A#  #AA#   i   #")
79
 
renderLine(08, "#p1o2qoq34p#  ###  #  ###  #5o6p7q89qp#")
80
 
renderLine(09, "#                                     #")
81
 
renderLine(10, "#                                     #")
82
 
renderLine(11, "#                                     #")
83
 
renderLine(12, "#######################################")
84
 
 
85
 
set_actor("ac-whiteball-small", 2.5, 2.5, {controllers=1})
86
 
set_actor("ac-whiteball-small",36.5, 2.5, {controllers=1})
87
 
 
88
 
oxyd_shuffle()