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

« back to all changes in this revision

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