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

« back to all changes in this revision

Viewing changes to data/levels/duffy78.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=60
3
 
levelh=15
4
 
 
5
 
create_world( levelw, levelh)
6
 
enigma.ConserveLevel=FALSE
7
 
 
8
 
fill_floor("fl-hay", 0,0,levelw,levelh)
9
 
 
10
 
enigma.SlopeForce=100
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-greenbrown", i-1, line)
17
 
                elseif c =="S" then
18
 
                        set_stone( "st-thief", i-1, line)
19
 
                        set_floor("fl-gradient",  i-1,  line, {type=1})
20
 
                elseif c =="T" then
21
 
                        set_stone( "st-thief", i-1, line)
22
 
                        set_floor("fl-gradient",  i-1,  line, {type=2})
23
 
                elseif c =="X" then
24
 
                        set_stone( "st-death", i-1, line)
25
 
                elseif c == "o" then
26
 
                   oxyd(i-1,line)
27
 
                elseif c == "*" then
28
 
                        set_stone( "st-brownie", i-1, line)
29
 
                                           set_floor("fl-water",i-1,line)
30
 
                elseif c == "!" then
31
 
                        abyss(i-1,line)
32
 
                elseif c == "~" then
33
 
                   set_floor("fl-water",i-1,line)
34
 
                elseif c=="z" then
35
 
                   set_actor("ac-blackball", i-1,line+.5, {player=0})
36
 
                elseif c == "g" then
37
 
                        draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
38
 
                elseif c=="+" then
39
 
                        set_stone( "st-wood", i-1, line)
40
 
                elseif c=="=" then
41
 
                        set_floor("fl-space",i-1,line)
42
 
                elseif c == "d" then --1-d
43
 
                        set_floor("fl-gradient",  i-1,  line, {type=1})
44
 
                elseif c == "u" then --2-u
45
 
                        set_floor("fl-gradient",  i-1,  line, {type=2})
46
 
                elseif c == "r" then --3-r
47
 
                        set_floor("fl-gradient",  i-1,  line, {type=3})
48
 
                elseif c == "l" then --4-l
49
 
                        set_floor("fl-gradient",  i-1,  line, {type=4})
50
 
                elseif c == "1" then --ur
51
 
                        set_floor("fl-gradient",  i-1,  line, {type=11})
52
 
                elseif c == "3" then --dl
53
 
                        set_floor("fl-gradient",  i-1,  line, {type=9})
54
 
                elseif c == "7" then --dr
55
 
                        set_floor("fl-gradient",  i-1,  line, {type=12})
56
 
                elseif c == "9" then --ul
57
 
                        set_floor("fl-gradient",  i-1,  line, {type=10})
58
 
                elseif c == "D" then --1-d
59
 
                        set_floor("fl-gradient",  i-1,  line, {type=1})
60
 
                        draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
61
 
                elseif c == "U" then --2-u
62
 
                        set_floor("fl-gradient",  i-1,  line, {type=2})
63
 
                        draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
64
 
                elseif c=="c" then
65
 
                        set_item("it-coin1", i-1,line)
66
 
                elseif c=="C" then
67
 
                        set_stone("st-coinslot", i-1,line, {action="openclose", target="door1"})
68
 
                elseif c=="A" then
69
 
                   doorv( i-1,line, {name="door1"})
70
 
             end
71
 
        end     
72
 
     end
73
 
 
74
 
renderLine(00,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
75
 
renderLine(01,"!###############!!!!!!!!!!!!!!!!!!!!!!!!!!!###############!")
76
 
renderLine(02,"!#            cTTTTTTTTTTTTTTTTTTTTTTTTTTTTT             #!")
77
 
renderLine(03,"!# ####        UuuuuuuuuuuuuuuuuuuuuuuuuuuuU        #### #!")
78
 
renderLine(04,"!#    #        TTTTTTTTTTTTTTTTTTTTTTTTTTTTT        #    #!")
79
 
renderLine(05,"!###  #        #!!!!!!!!!!!!!!!!!!!!!!!!!!!#        #  ###!")
80
 
renderLine(06,"!#C   o    z   #!!!!!!!!!!!!!!!!!!!!!!!!!!!#        *  Ao#!")
81
 
renderLine(07,"!###  #        #!!!!!!!!!!!!!!!!!!!!!!!!!!!#        #  ###!")
82
 
renderLine(08,"!#    #        SSSSSSSSSSSSSSSSSSSSSSSSSSSSS        #    #!")
83
 
renderLine(09,"!# ####        DdddddddddddddddddddddddddddD        #### #!")
84
 
renderLine(10,"!#            cSSSSSSSSSSSSSSSSSSSSSSSSSSSSS             #!")
85
 
renderLine(11,"!###############!!!!!!!!!!!!!!!!!!!!!!!!!!!###############!")
86
 
renderLine(12,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
87
 
 
88
 
oxyd_shuffle()
 
 
b'\\ No newline at end of file'