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

« back to all changes in this revision

Viewing changes to data/levels/duffy47.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
 
 
5
 
create_world( levelw, levelh)
6
 
 
7
 
fill_floor("fl-hay", 0,0,levelw,levelh)
8
 
 
9
 
function renderLine( line, pattern)
10
 
        for i=1, strlen(pattern) do
11
 
                local c = strsub( pattern, i, i)
12
 
                if c =="#" then
13
 
                        set_stone( "st-greenbrown", i-1, line)
14
 
                elseif c =="X" then
15
 
                        set_stone( "st-death", i-1, line)
16
 
                elseif c == "o" then
17
 
                        oxyd( i-1, line)
18
 
                elseif c == "*" then
19
 
                        set_stone( "st-brownie", i-1, line)
20
 
                elseif c == "!" then
21
 
                        abyss(i-1,line)
22
 
--                      fill_floor("fl-water", i-1,line, 1,1)
23
 
                elseif c == "~" then
24
 
--                      abyss(i-1,line)
25
 
                        fill_floor("fl-water", i-1,line, 1,1)
26
 
                elseif c=="z" then
27
 
                        set_actor("ac-blackball", i,line+.5)
28
 
                elseif c == "g" then
29
 
                        draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
30
 
                elseif c=="+" then
31
 
                        set_stone( "st-wood", i-1, line)
32
 
                elseif c=="=" then
33
 
                        set_floor("fl-space",i-1,line)
34
 
                elseif c == "d" then --1-d
35
 
                        set_floor("fl-gradient",  i-1,  line, {type=1})
36
 
                elseif c == "u" then --2-u
37
 
                        set_floor("fl-gradient",  i-1,  line, {type=2})
38
 
                elseif c == "r" then --3-r
39
 
                        set_floor("fl-gradient",  i-1,  line, {type=3})
40
 
                elseif c == "l" then --4-l
41
 
                        set_floor("fl-gradient",  i-1,  line, {type=4})
42
 
                elseif c == "1" then --ur
43
 
                        set_floor("fl-gradient",  i-1,  line, {type=11})
44
 
                elseif c == "3" then --dl
45
 
                        set_floor("fl-gradient",  i-1,  line, {type=9})
46
 
                elseif c == "7" then --dr
47
 
                        set_floor("fl-gradient",  i-1,  line, {type=12})
48
 
                elseif c == "9" then --ul
49
 
                        set_floor("fl-gradient",  i-1,  line, {type=10})
50
 
                elseif c=="T" then
51
 
                   set_actor("ac-top", i-.5,line+.5, {player=1, mouseforce=0, range=30, force=30})
52
 
                elseif c=="R" then
53
 
                   set_actor("ac-rotor", i-.5,line+.5, {player=1, mouseforce=0, range=30, force=30})
54
 
                elseif c =="H" then
55
 
                        set_stone("st-switch", i-1,line, {action="callback", target="funcc1"})
56
 
                elseif c =="F" then
57
 
                   set_stone("st-door_b",i-1,line,{name="door1"})
58
 
                elseif c =="G" then
59
 
                   set_stone("st-door_b",i-1,line,{name="door2"})
60
 
                elseif c =="a" then
61
 
                        set_item("it-trigger", i-1,line, {action="openclose", target="door3"})
62
 
                elseif c =="b" then
63
 
                        set_item("it-trigger", i-1,line, {action="openclose", target="door4"})
64
 
                elseif c =="c" then
65
 
                        set_item("it-trigger", i-1,line, {action="openclose", target="door5"})
66
 
                elseif c =="e" then
67
 
                        set_item("it-trigger", i-1,line, {action="openclose", target="door6"})
68
 
                elseif c=="A" then
69
 
                        doorv( i-1,line, {name="door3"})
70
 
                elseif c=="B" then
71
 
                        doorv( i-1,line, {name="door4"})
72
 
                elseif c=="C" then
73
 
                        doorv( i-1,line, {name="door5"})
74
 
                elseif c=="D" then
75
 
                        doorv( i-1,line, {name="door6"})
76
 
             end
77
 
        end     
78
 
end
79
 
 
80
 
function yy1( color, x, y)
81
 
       stone = format( "st-%s4", color)
82
 
        set_stone( stone, x, y)
83
 
     end
84
 
 
85
 
renderLine(00,"####################")
86
 
renderLine(01,"#RF  3d1         ABo")
87
 
renderLine(02,"###  r l         ###")
88
 
renderLine(03,"#    9u7  # #  3d1 #")
89
 
renderLine(04,"#  ###    #e#  r l #")
90
 
renderLine(05,"#   a#    ###  9u7 #")
91
 
renderLine(06,"H  ###   z    ###  H")
92
 
renderLine(07,"# 3d1  ###    #c   #")
93
 
renderLine(08,"# r l  #b#    ###  #")
94
 
renderLine(09,"# 9u7  # #  3d1    #")
95
 
renderLine(10,"###         r l  ###")
96
 
renderLine(11,"oDC         9u7  GR#")
97
 
renderLine(12,"####################")
98
 
 
99
 
oxyd_shuffle()
100
 
 
101
 
function funcc1()
102
 
    SendMessage("door1", "openclose")
103
 
    SendMessage("door2", "openclose")
104
 
end
 
 
b'\\ No newline at end of file'