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

« back to all changes in this revision

Viewing changes to data/levels/ss_esp86.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 = 20
3
 
levelh = 13
4
 
create_world(levelw, levelh)
5
 
oxyd_default_flavor = "c"
6
 
enigma.SlopeForce = 90
7
 
set_actor("ac-blackball", 10,5)
8
 
set_actor("ac-top", 10,10.5, {range=100, force=100})
9
 
fill_floor("fl-leaves",0,0,levelw,7)
10
 
fill_floor("fl-abyss",0,7,levelw,6)
11
 
 
12
 
function renderLine( line, pattern)
13
 
    for i=1, strlen(pattern) do
14
 
      local c = strsub( pattern, i, i)
15
 
      if c ==   "#" then
16
 
         set_stone("st-plain", i-1,line)
17
 
      elseif c=="b" then
18
 
         set_stone("st-actorimpulse", i-1,line) 
19
 
      elseif c=="x" then
20
 
         set_stone("st-door_c", i-1,line, {name="s1"})
21
 
      elseif c=="y" then
22
 
         set_stone("st-door_c", i-1,line, {name="s2"})
23
 
      elseif c=="1" then
24
 
         set_stone("st-switch", i-1,line, {action="callback", target="s1"}) 
25
 
      elseif c=="2" then
26
 
         set_stone("st-switch", i-1,line, {action="callback", target="s2"}) 
27
 
      elseif c=="g" then
28
 
         set_floor("fl-gradient",  i-1,  line, {type=21})   
29
 
         --set_floor("fl-normal",  i-1,  line)
30
 
      elseif c=="O" then
31
 
         oxyd(i-1,line)         
32
 
        end
33
 
    end  
34
 
end
35
 
renderLine(00 , "####################")
36
 
renderLine(01 , "#O  #          #  O#")
37
 
renderLine(02 , "#   #          #   #")
38
 
renderLine(03 , "####################")
39
 
renderLine(04 , "#   #          #   #")  
40
 
renderLine(05 , "#O  #          #  O#")
41
 
renderLine(06 , "####################")
42
 
renderLine(07 , "                    ")
43
 
renderLine(08 , "                    ")
44
 
renderLine(09 , "  #b############b#  ")
45
 
renderLine(10 , "  2gggggggggggggg1  ")
46
 
renderLine(11 , "  #b############b#  ")
47
 
renderLine(12 , "                    ") 
48
 
 
49
 
set_stone("st-door_c", 4,2, {name="x1"})
50
 
set_stone("st-door_c", 2,3, {name="x2"})
51
 
set_stone("st-door_c", 15,5, {name="x3"})
52
 
set_stone("st-door_c", 15,1, {name="y1"})
53
 
set_stone("st-door_c", 17,3, {name="y2"})
54
 
set_stone("st-door_c", 4,4, {name="y3"})
55
 
oxyd_shuffle()
56
 
 
57
 
function s1()
58
 
SendMessage("x1", "openclose")
59
 
SendMessage("x2", "openclose")
60
 
SendMessage("x3", "openclose")
61
 
end
62
 
 
63
 
function s2()
64
 
SendMessage("y1", "openclose")
65
 
SendMessage("y2", "openclose")
66
 
SendMessage("y3", "openclose")
67
 
end
68