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

« back to all changes in this revision

Viewing changes to data/levels/duffy110.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
 
rooms_wide=1
3
 
rooms_high=1
4
 
 
5
 
levelw=1+(19*rooms_wide)
6
 
levelh=1+(12*rooms_high)
7
 
 
8
 
create_world( levelw, levelh)
9
 
enigma.ConserveLevel=FALSE
10
 
 
11
 
fill_floor("fl-bluegreen", 0,0,levelw,levelh)
12
 
 
13
 
function renderLine( line, pattern)
14
 
        for i=1, strlen(pattern) do
15
 
                local c = strsub( pattern, i, i)
16
 
                if c =="#" then
17
 
                        set_stone( "st-metal", i-1, line)
18
 
                elseif c == "o" then
19
 
                        oxyd( i-1, line)
20
 
                elseif c == "*" then
21
 
                        set_stone( "st-brownie", i-1, line)
22
 
                elseif c == "!" then
23
 
                        abyss(i-1,line)
24
 
                elseif c == "~" then
25
 
                   set_floor("fl-water",i-1,line)
26
 
                elseif c=="z" then
27
 
                   set_actor("ac-blackball", i-.5,line+.5, {player=0})
28
 
                elseif c=="y" then
29
 
                   set_actor("ac-whiteball", i-1,line+.5, {player=1})
30
 
                elseif c == "g" then
31
 
                        draw_stones("st-grate1",{i-1,line}, {1,1}, 1)
32
 
                elseif c=="+" then
33
 
                        set_stone( "st-wood", i-1, line)
34
 
                elseif c=="=" then
35
 
                        set_floor("fl-space",i-1,line)
36
 
                elseif c=="X" then
37
 
                        set_stone("st-turnstile",i-1,line)
38
 
                elseif c=="U" then
39
 
                        set_stone("st-turnstile-n",i-1,line)
40
 
                elseif c=="R" then
41
 
                        set_stone("st-turnstile-e",i-1,line)
42
 
                elseif c=="D" then
43
 
                        set_stone("st-turnstile-s",i-1,line)
44
 
                elseif c=="L" then
45
 
                        set_stone("st-turnstile-w",i-1,line)
46
 
                elseif c=="u" then
47
 
                   puzzle(i-1,line,PUZ_1000)
48
 
                elseif c=="r" then
49
 
                   puzzle(i-1,line,PUZ_0001)
50
 
                elseif c=="d" then
51
 
                   puzzle(i-1,line,PUZ_0010)
52
 
                elseif c=="l" then
53
 
                   puzzle(i-1,line,PUZ_0100)
54
 
             end
55
 
        end     
56
 
end
57
 
 
58
 
renderLine(00,"####################")
59
 
renderLine(01,"o U U U U U U U U o#")
60
 
renderLine(02,"# X X X X X X X X  #")
61
 
renderLine(03,"# U U   U   U   U  #")
62
 
renderLine(04,"# X X # X # X # X  #")
63
 
renderLine(05,"# Ulr    U  U XR ~ #")
64
 
renderLine(06,"ozX LXRU X LXRD o# #")
65
 
renderLine(07,"# D  D XRDlr  ## ~ #")
66
 
renderLine(08,"# X # X # X # X X  #")
67
 
renderLine(09,"# D   D   D   D D  #")
68
 
renderLine(10,"# X X X X X X X X  #")
69
 
renderLine(11,"o D D D D D D D D o#")
70
 
renderLine(12,"####################")
71
 
 
72
 
oxyd_shuffle()