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

« back to all changes in this revision

Viewing changes to data/levels/duffy59.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-leaves", 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=="A" then
29
 
                   set_item("it-hollow",i-1,line)
30
 
                elseif c=="B" then
31
 
                   set_floor("fl-space",i-1,line)
32
 
                   set_item("it-hollow",i-1,line)
33
 
             end
34
 
        end     
35
 
end
36
 
 
37
 
renderLine(00,"####################")
38
 
renderLine(01,"#A                A#")
39
 
renderLine(02,"#  w            w  #")
40
 
renderLine(03,"# w==============w #")
41
 
renderLine(04,"#  ==============  #")
42
 
renderLine(05,"#  ====B====B====  #")
43
 
renderLine(06,"#  ==============  #")
44
 
renderLine(07,"#  ====B====B====  #")
45
 
renderLine(08,"#  ==============  #")
46
 
renderLine(09,"# w==============w #")
47
 
renderLine(10,"#  w            w  #")
48
 
renderLine(11,"#A                A#")
49
 
renderLine(12,"####################")