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

« back to all changes in this revision

Viewing changes to data/levels/ant01.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 = 25
4
 
 
5
 
create_world(levelw, levelh)
6
 
 
7
 
fill_floor("fl-gray")
8
 
 
9
 
for i = 0, 100 do
10
 
        x0 = random(level_width)
11
 
        y0 = random(level_height)
12
 
        set_floor ("fl-normal",  x0, y0)
13
 
end
14
 
 
15
 
draw_border("st-marble")
16
 
draw_stones("st-marble", { 0,12},{ 1, 0},20)
17
 
draw_stones("st-grate2", { 1, 1},{ 1, 0},18)
18
 
draw_stones("st-grate2", { 1, 1},{ 0, 1},11)
19
 
draw_stones("st-grate2", { 1,11},{ 1, 0}, 9)
20
 
draw_stones("st-grate2", { 9, 6},{ 0, 1}, 5)
21
 
 
22
 
 
23
 
--abyss across the lower room
24
 
x0 = 10
25
 
y0 = 12
26
 
 
27
 
for i = y0, level_height do
28
 
        abyss(x0, i)
29
 
end
30
 
 
31
 
--balcony
32
 
set_stone  ("st-grate1", x0+0, y0+0)
33
 
fill_floor ("fl-abyss",  x0-2, y0+0, 5, 4)
34
 
fill_floor ("fl-gray",   x0-1, y0+0, 3, 3)
35
 
set_floor  ("fl-bridge", x0-1, y0+3, {name="bridge01"})
36
 
 
37
 
--grass in the upper room
38
 
fill_floor("fl-leaves",  13, 6, 3, 5)
39
 
 
40
 
--vertical walls in the upper room
41
 
draw_stones("st-marble", { 9, 6},{ 0, 1},6)
42
 
draw_stones("st-marble", {11, 6},{ 0, 1},6)
43
 
set_stone  ("st-grate1",   9,  7)
44
 
set_stone  ("st-grate1",  11,  7)
45
 
 
46
 
--grass in the lower room
47
 
fill_floor("fl-leaves",  2, 14, 5, 9)
48
 
fill_floor("fl-leaves",  7, 17, 2, 6)
49
 
fill_floor("fl-leaves", 12, 17, 4, 6)
50
 
fill_floor("fl-leaves", 14, 14, 2, 3)
51
 
fill_floor("fl-leaves", 16, 19, 2, 4)
52
 
 
53
 
set_stone("st-switch", 13, 21, {action="openclose", target="bridge01"})
54
 
 
55
 
--door
56
 
draw_stones("st-marble", { 17, 6},{ 0, 1},12)
57
 
set_stone("st-door",    18,  6, {name="door01", type="h"})
58
 
set_stone("st-door",    18,  7, {name="door02", type="h"})
59
 
set_stone("st-door",    18,  8, {name="door03", type="h"})
60
 
set_stone("st-door",    18,  9, {name="door04", type="h"})
61
 
set_stone("st-door",    18, 10, {name="door05", type="h"})
62
 
set_stone("st-door",    18, 11, {name="door06", type="h"})
63
 
set_stone("st-door",    18, 12, {name="door07", type="h"})
64
 
set_stone("st-door",    18, 13, {name="door08", type="h"})
65
 
set_stone("st-door",    18, 14, {name="door09", type="h"})
66
 
set_stone("st-door",    18, 15, {name="door10", type="h"})
67
 
set_stone("st-door",    18, 16, {name="door11", type="h"})
68
 
set_stone("st-door",    18, 17, {name="door12", type="h"})
69
 
 
70
 
--triggers
71
 
x0 = 2
72
 
y0 = 6
73
 
 
74
 
set_item ("it-trigger", x0+0, y0+0, {action="openclose", target="door01"})
75
 
set_item ("it-trigger", x0+0, y0+2, {action="openclose", target="door02"})
76
 
set_item ("it-trigger", x0+0, y0+4, {action="openclose", target="door03"})
77
 
set_item ("it-trigger", x0+2, y0+0, {action="openclose", target="door04"})
78
 
set_item ("it-trigger", x0+2, y0+2, {action="openclose", target="door05"})
79
 
set_item ("it-trigger", x0+2, y0+4, {action="openclose", target="door06"})
80
 
set_item ("it-trigger", x0+4, y0+0, {action="openclose", target="door07"})
81
 
set_item ("it-trigger", x0+4, y0+2, {action="openclose", target="door08"})
82
 
set_item ("it-trigger", x0+4, y0+4, {action="openclose", target="door09"})
83
 
set_item ("it-trigger", x0+6, y0+0, {action="openclose", target="door10"})
84
 
set_item ("it-trigger", x0+6, y0+2, {action="openclose", target="door11"})
85
 
set_item ("it-trigger", x0+6, y0+4, {action="openclose", target="door12"})
86
 
 
87
 
--PUZZLES
88
 
 
89
 
--two
90
 
x0 = 14
91
 
y0 = 2
92
 
puzzle( x0+0, y0+0, PUZ_0100)
93
 
puzzle( x0+1, y0+0, PUZ_0001)
94
 
 
95
 
--four
96
 
x0 = 2
97
 
y0 = 4
98
 
puzzle( x0+0, y0+0, PUZ_0100)
99
 
puzzle( x0+1, y0+0, PUZ_0101)
100
 
puzzle( x0+2, y0+0, PUZ_1001)
101
 
puzzle( x0+2, y0-1, PUZ_0010)
102
 
 
103
 
--five
104
 
x0 = 15
105
 
y0 = 3
106
 
puzzle( x0+0, y0+0, PUZ_0100)
107
 
puzzle( x0+1, y0+0, PUZ_0101)
108
 
puzzle( x0+2, y0+0, PUZ_1001)
109
 
puzzle( x0+2, y0-1, PUZ_0110)
110
 
puzzle( x0+3, y0-1, PUZ_0001)
111
 
 
112
 
--seven
113
 
x0 = 10
114
 
y0 = 3
115
 
puzzle( x0+0, y0+0, PUZ_0100)
116
 
puzzle( x0+1, y0+0, PUZ_1001)
117
 
puzzle( x0+1, y0-1, PUZ_0110)
118
 
puzzle( x0+2, y0-1, PUZ_0101)
119
 
puzzle( x0+3, y0-1, PUZ_0011)
120
 
puzzle( x0+3, y0+0, PUZ_1100)
121
 
puzzle( x0+4, y0+0, PUZ_0001)
122
 
 
123
 
--eight
124
 
x0 = 6
125
 
y0 = 4
126
 
puzzle( x0+0, y0+0, PUZ_0100)
127
 
puzzle( x0+1, y0+0, PUZ_0101)
128
 
puzzle( x0+2, y0+0, PUZ_0101)
129
 
puzzle( x0+3, y0+0, PUZ_0101)
130
 
puzzle( x0+4, y0+0, PUZ_0101)
131
 
puzzle( x0+5, y0+0, PUZ_0101)
132
 
puzzle( x0+6, y0+0, PUZ_1001)
133
 
puzzle( x0+6, y0-1, PUZ_0010)
134
 
 
135
 
--nine
136
 
x0 = 3
137
 
y0 = 3
138
 
puzzle( x0+0, y0+0, PUZ_1000)
139
 
puzzle( x0+0, y0-1, PUZ_0110)
140
 
puzzle( x0+1, y0-1, PUZ_0101)
141
 
puzzle( x0+2, y0-1, PUZ_0101)
142
 
puzzle( x0+3, y0-1, PUZ_0101)
143
 
puzzle( x0+4, y0-1, PUZ_0011)
144
 
puzzle( x0+4, y0+0, PUZ_1100)
145
 
puzzle( x0+5, y0+0, PUZ_0101)
146
 
puzzle( x0+6, y0+0, PUZ_0001)
147
 
 
148
 
 
149
 
oxyd ( 2,14)
150
 
oxyd ( 6,14)
151
 
oxyd ( 2,22)
152
 
oxyd ( 8,22)
153
 
oxyd_shuffle()
154
 
 
155
 
set_actor("ac-blackball", 2.5, 2.5)