~ubuntu-branches/ubuntu/edgy/enigma/edgy

« back to all changes in this revision

Viewing changes to data/levels/duffy67.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
 
enigma.SlopeForce=20
7
 
 
8
 
fill_floor("fl-metal", 0,0,levelw,levelh)
9
 
 
10
 
function renderLine( line, pattern)
11
 
        for i=1, strlen(pattern) do
12
 
                local c = strsub( pattern, i, i)
13
 
                if c =="#" then
14
 
                        set_stone( "st-rock6", i-1, line)
15
 
                elseif c == "o" then
16
 
                        oxyd( i-1, line)
17
 
                elseif c == "*" then
18
 
                        set_stone( "st-brownie", i-1, line)
19
 
                elseif c == "!" then
20
 
                        abyss(i-1,line)
21
 
                elseif c == " " then
22
 
                        abyss(i-1,line)
23
 
                elseif c=="w" then
24
 
                   set_actor("ac-whiteball-small", i-.5,line+.5, {player=0,mouseforce=1})
25
 
                elseif c == "g" then
26
 
                        draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
27
 
                elseif c=="+" then
28
 
                        set_stone( "st-wood", i-1, line)
29
 
                elseif c=="=" then
30
 
                        set_floor("fl-space",i-1,line)
31
 
                elseif c=="H" then
32
 
                   set_item("it-hollow",i-1,line)
33
 
                elseif c=="A" then
34
 
                   set_item("it-wormhole", i-1, line, {strength=3,targetx="2.5",targety="1.5", name="ww1"})
35
 
                elseif c=="B" then
36
 
                   set_item("it-wormhole", i-1, line, {strength=3,targetx="9.5",targety="11.5", name="ww2"})
37
 
                elseif c=="C" then
38
 
                   set_item("it-wormhole", i-1, line, {strength=3,targetx="18.5",targety="4.5", name="ww3"})
39
 
                elseif c=="D" then
40
 
                   set_item("it-wormhole", i-1, line, {strength=3,targetx="13.5",targety="2.5", name="ww4"})
41
 
                elseif c=="E" then
42
 
                   set_item("it-wormhole", i-1, line, {strength=3,targetx="13.5",targety="7.5", name="ww5"})
43
 
                elseif c=="F" then
44
 
                   set_item("it-wormhole", i-1, line, {strength=3,targetx="2.5",targety="7.5", name="ww6"})
45
 
                elseif c == "d" then --1-d
46
 
                        set_floor("fl-gradient",  i-1,  line, {type=1})
47
 
                elseif c == "u" then --2-u
48
 
                        set_floor("fl-gradient",  i-1,  line, {type=2})
49
 
                elseif c == "r" then --3-r
50
 
                        set_floor("fl-gradient",  i-1,  line, {type=3})
51
 
                elseif c == "l" then --4-l
52
 
                        set_floor("fl-gradient",  i-1,  line, {type=4})
53
 
                elseif c == "1" then --ur
54
 
                        set_floor("fl-gradient",  i-1,  line, {type=11})
55
 
                elseif c == "3" then --dl
56
 
                        set_floor("fl-gradient",  i-1,  line, {type=9})
57
 
                elseif c == "7" then --dr
58
 
                        set_floor("fl-gradient",  i-1,  line, {type=12})
59
 
                elseif c == "9" then --ul
60
 
                        set_floor("fl-gradient",  i-1,  line, {type=10})
61
 
                elseif c=="R" then
62
 
                   set_actor("ac-whiteball-small", i-.5,line+.5, {player=0,mouseforce=1})
63
 
                        set_floor("fl-gradient",  i-1,  line, {type=3})
64
 
                elseif c=="L" then
65
 
                   set_actor("ac-whiteball-small", i-.5,line+.5, {player=0,mouseforce=1})
66
 
                        set_floor("fl-gradient",  i-1,  line, {type=4})
67
 
                elseif c=="U" then
68
 
                   set_actor("ac-whiteball-small", i-.5,line+.5, {player=0,mouseforce=1})
69
 
                        set_floor("fl-gradient",  i-1,  line, {type=2})
70
 
                elseif c=="S" then
71
 
                   set_actor("ac-whiteball-small", i-.5,line+.5, {player=0,mouseforce=1})
72
 
                        set_floor("fl-gradient",  i-1,  line, {type=1})
73
 
             end
74
 
        end     
75
 
end
76
 
 
77
 
renderLine(00,"########### ###     ")
78
 
renderLine(01,"#HRrrrrrr1# #H# ####")
79
 
renderLine(02,"#########d# #S# #D1#")
80
 
renderLine(03,"        #B# #E# ##u#")
81
 
renderLine(04," ###    ### ###  #U#")
82
 
renderLine(05," #A#             #H#")
83
 
renderLine(06," #u# ########### ###")
84
 
renderLine(07," #U# #FllllllLH#    ")
85
 
renderLine(08," #H# ########### ###")
86
 
renderLine(09," ###             #C#")
87
 
renderLine(10,"       ###########u#")
88
 
renderLine(11,"       #HRrrrrrrrr7#")
89
 
renderLine(12,"       #############")