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

« back to all changes in this revision

Viewing changes to data/levels/duffy65.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-mortar", 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 == "o" then
15
 
                        oxyd( i-1, line)
16
 
                elseif c == "*" then
17
 
                        set_stone( "st-brownie", i-1, line)
18
 
                elseif c == "!" then
19
 
                        abyss(i-1,line)
20
 
                elseif c=="w" then
21
 
                   set_actor("ac-whiteball-small", i-.5,line+.5, {player=0,mouseforce=1})
22
 
                elseif c == "g" then
23
 
                        draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
24
 
                elseif c=="+" then
25
 
                        set_stone( "st-wood", i-1, line)
26
 
                elseif c=="=" then
27
 
                        set_floor("fl-space",i-1,line)
28
 
                elseif c=="i" then
29
 
                        set_floor("fl-ice_001",i-1,line)
30
 
                elseif c=="h" then
31
 
                   set_item("it-hill",i-1,line)
32
 
                   set_actor("ac-whiteball-small", i-.5,line+.5, {player=0,mouseforce=1})
33
 
                elseif c=="H" then
34
 
                   set_item("it-hollow",i-1,line)
35
 
                elseif c=="I" then
36
 
                   set_item("it-hollow",i-1,line)
37
 
                   set_actor("ac-whiteball-small", i-.5,line+.5, {player=0,mouseforce=1})
38
 
        elseif c=="A" then
39
 
           if difficult==false then
40
 
              xx=i-.5
41
 
              yy=line-4.5
42
 
           else
43
 
              xx=i-.5
44
 
              yy=line-2.5
45
 
           end
46
 
           set_item("it-wormhole", i-1, line, {strength=2,targetx=xx,targety=yy})
47
 
        elseif c=="B" then
48
 
           if difficult==false then
49
 
              xx=i+5.5
50
 
              yy=line+.5
51
 
           else
52
 
              xx=i+2.5
53
 
              yy=line+.5
54
 
           end
55
 
           set_item("it-wormhole", i-1, line, {strength=2,targetx=xx,targety=yy})
56
 
        elseif c=="C" then
57
 
           if difficult==false then
58
 
              xx=i-.5
59
 
              yy=line+5.5
60
 
           else
61
 
              xx=i-.5
62
 
              yy=line+3.5
63
 
           end
64
 
           set_item("it-wormhole", i-1, line, {strength=2,targetx=xx,targety=yy})
65
 
        elseif c=="D" then
66
 
           if difficult==false then
67
 
              xx=i-6.5
68
 
              yy=line+.5
69
 
           else
70
 
              xx=i-3.5
71
 
              yy=line+.5
72
 
           end
73
 
           set_item("it-wormhole", i-1, line, {strength=2,targetx=xx,targety=yy})
74
 
             end
75
 
        end     
76
 
     end
77
 
 
78
 
if not difficult then
79
 
 
80
 
renderLine(00,"!!!!!!!!!!!!!!!!!!!!")
81
 
renderLine(01,"!!###!!!!###!!!!###!")
82
 
renderLine(02,"!##H##!!##H##!!##H##")
83
 
renderLine(03,"!#IhB#!!#DhB#!!#DhI#")
84
 
renderLine(04,"!##C##!!##C##!!##C##")
85
 
renderLine(05,"!!###!!!!###!!!!###!")
86
 
renderLine(06,"!!!!!!!!!!!!!!!!!!!!")
87
 
renderLine(07,"!!###!!!!###!!!!###!")
88
 
renderLine(08,"!##A##!!##A##!!##A##")
89
 
renderLine(09,"!#IhB#!!#DhB#!!#DhI#")
90
 
renderLine(10,"!##H##!!##H##!!##H##")
91
 
renderLine(11,"!!###!!!!###!!!!###!")
92
 
renderLine(12,"!!!!!!!!!!!!!!!!!!!!")
93
 
 
94
 
else
95
 
 
96
 
renderLine(00,"!!!###!###!###!###!!")
97
 
renderLine(01,"!!##H###H###H###H##!")
98
 
renderLine(02,"!!#HhB#DhB#DhB#DhH#!")
99
 
renderLine(03,"!!##C###C###C###C##!")
100
 
renderLine(04,"!!!###!###!###!###!!")
101
 
renderLine(05,"!!##A###A###A###A##!")
102
 
renderLine(06,"!!#IhB#DhB#DhB#DhI#!")
103
 
renderLine(07,"!!##C###C###C###C##!")
104
 
renderLine(08,"!!!###!###!###!###!!")
105
 
renderLine(09,"!!##A###A###A###A##!")
106
 
renderLine(10,"!!#HhB#DhB#DhB#DhH#!")
107
 
renderLine(11,"!!##H###H###H###H##!")
108
 
renderLine(12,"!!!###!###!###!###!!")
109
 
 
110
 
end