/ld26

To get this branch, use:
bzr branch http://9ix.org/bzr/ld26

« back to all changes in this revision

Viewing changes to svg_levels.lua

  • Committer: Josh C
  • Date: 2013-04-27 17:09:45 UTC
  • Revision ID: josh@9ix.org-20130427170945-tdycmqprr0vu17ar
load a level, move a player around

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
svg_objects = {
3
 
village = {
4
 
 
5
 
Displacer:new{
6
 
  x = 11.560431, y = 275.256960,
7
 
  width = 773.497990, height = 31.528450
8
 
},
9
 
 
10
 
 
11
 
Transition:new{
12
 
  x = 780.854610, y = 202.741530,
13
 
  width = 18.917070, height = 398.309420,
14
 
  target = 'forest1'
15
 
},
16
 
 
17
 
 
18
 
Transition:new{
19
 
  x = -6.305690, y = 198.537730,
20
 
  width = 17.866121, height = 402.513210,
21
 
  target = 'lake'
22
 
},
23
 
 
24
 
},
25
 
cave = {
26
 
 
27
 
Displacer:new{
28
 
  x = 272.011660, y = 446.064150,
29
 
  width = 18.367348, height = 29.737610
30
 
},
31
 
 
32
 
 
33
 
Transition:new{
34
 
  x = 74.344025, y = 435.568510,
35
 
  width = 9.620992, height = 43.731777,
36
 
  target='sheep'
37
 
},
38
 
 
39
 
},
40
 
bridge = {
41
 
 
42
 
Displacer:new{
43
 
  x = 280.943910, y = 284.050320,
44
 
  width = 143.613510, height = 90.656021
45
 
},
46
 
 
47
 
 
48
 
Displacer:new{
49
 
  x = 410.196040, y = 273.279300,
50
 
  width = 387.756440, height = 71.806747
51
 
},
52
 
 
53
 
 
54
 
Displacer:new{
55
 
  x = 443.406650, y = 372.013580,
56
 
  width = 87.065681, height = 92.451187
57
 
},
58
 
 
59
 
 
60
 
Displacer:new{
61
 
  x = 55.650227, y = 481.518860,
62
 
  width = 55.650227, height = 22.439608
63
 
},
64
 
 
65
 
 
66
 
Displacer:new{
67
 
  x = 283.636660, y = 450.103420,
68
 
  width = 111.300450, height = 145.408650
69
 
},
70
 
 
71
 
 
72
 
Displacer:new{
73
 
  x = 22.439608, y = 309.182680,
74
 
  width = 274.660800, height = 26.029943
75
 
},
76
 
 
77
 
 
78
 
Displacer:new{
79
 
  x = 57.445393, y = 592.819340,
80
 
  width = 195.673370, height = 15.258933
81
 
},
82
 
 
83
 
 
84
 
Displacer:new{
85
 
  x = 393.141940, y = 468.952730,
86
 
  width = 53.855045, height = 130.149750
87
 
},
88
 
 
89
 
 
90
 
Transition:new{
91
 
  x = 791.669370, y = 347.778810,
92
 
  width = 12.566180, height = 245.040530,
93
 
  target='foresthut',
94
 
targetX = 138,
95
 
targetY = 402
96
 
},
97
 
 
98
 
 
99
 
Transition:new{
100
 
  x = 445.201810, y = 547.940120,
101
 
  width = 344.672330, height = 62.830990,
102
 
  target='lake',
103
 
targetX = 620,
104
 
targetY = 336
105
 
},
106
 
 
107
 
 
108
 
Transition:new{
109
 
  x = 7.180675, y = 347.778810,
110
 
  width = 47.571968, height = 247.733250,
111
 
  target = 'sheep'
112
 
},
113
 
 
114
 
},
115
 
flower = {
116
 
},
117
 
shore = {
118
 
 
119
 
Displacer:new{
120
 
  x = 171.725940, y = 132.299380,
121
 
  width = 19.192898, height = 16.162441
122
 
},
123
 
 
124
 
},
125
 
lakeroad = {
126
 
 
127
 
Displacer:new{
128
 
  x = 1.140190, y = 410.728450,
129
 
  width = 802.693730, height = 192.692110
130
 
},
131
 
 
132
 
 
133
 
Displacer:new{
134
 
  x = 401.346860, y = 189.531620,
135
 
  width = 400.206670, height = 94.635765
136
 
},
137
 
 
138
 
 
139
 
Displacer:new{
140
 
  x = 403.627230, y = 357.139530,
141
 
  width = 60.430069, height = 53.588928
142
 
},
143
 
 
144
 
 
145
 
Displacer:new{
146
 
  x = 401.346860, y = 279.606630,
147
 
  width = 23.943989, height = 79.813293
148
 
},
149
 
 
150
 
 
151
 
Transition:new{
152
 
  x = 782.170290, y = 276.186070,
153
 
  width = 20.523447, height = 140.243330,
154
 
  target = 'village'
155
 
},
156
 
 
157
 
},
158
 
forest1 = {
159
 
 
160
 
Displacer:new{
161
 
  x = 272.000000, y = 296.000000,
162
 
  width = 67.000000, height = 70.000000
163
 
},
164
 
 
165
 
 
166
 
Displacer:new{
167
 
  x = 621.000000, y = 492.000000,
168
 
  width = 96.000000, height = 29.000000
169
 
},
170
 
 
171
 
 
172
 
Displacer:new{
173
 
  x = 75.025925, y = 533.677860,
174
 
  width = 132.000000, height = 23.000000
175
 
},
176
 
 
177
 
 
178
 
Transition:new{
179
 
  x = -1.000000, y = 129.000000,
180
 
  width = 28.000000, height = 454.000000,
181
 
  target = 'foresthut',
182
 
targetX = 745,
183
 
targetY = 430
184
 
},
185
 
 
186
 
 
187
 
Transition:new{
188
 
  x = 773.000000, y = 134.000000,
189
 
  width = 28.000000, height = 454.000000,
190
 
  target = 'shore',
191
 
targetY = 133,
192
 
targetX = 30
193
 
},
194
 
 
195
 
 
196
 
Flower:new{
197
 
  x = 355.051060, y = 333.101410,
198
 
},
199
 
 
200
 
},
201
 
gate = {
202
 
 
203
 
Displacer:new{
204
 
  x = 338.751280, y = 372.631590,
205
 
  width = 34.059235, height = 60.754307
206
 
},
207
 
 
208
 
 
209
 
Transition:new{
210
 
  x = 1.841040, y = 348.698090,
211
 
  width = 21.171955, height = 89.290421,
212
 
  target='lake',
213
 
targetX=758,
214
 
targetY=453
215
 
},
216
 
 
217
 
},
218
 
sheep = {
219
 
 
220
 
Displacer:new{
221
 
  x = -0.903934, y = 205.884830,
222
 
  width = 293.778470, height = 44.292755
223
 
},
224
 
 
225
 
 
226
 
Displacer:new{
227
 
  x = 349.822420, y = 204.076970,
228
 
  width = 322.704410, height = 47.004555
229
 
},
230
 
 
231
 
 
232
 
Displacer:new{
233
 
  x = 649.024540, y = 251.985460,
234
 
  width = 38.869144, height = 93.105171
235
 
},
236
 
 
237
 
 
238
 
Displacer:new{
239
 
  x = 788.230350, y = 410.173890,
240
 
  width = 18.078678, height = 192.537920
241
 
},
242
 
 
243
 
 
244
 
Displacer:new{
245
 
  x = -7.231471, y = 586.440980,
246
 
  width = 802.693300, height = 19.886545
247
 
},
248
 
 
249
 
 
250
 
Displacer:new{
251
 
  x = -7.231471, y = 249.273650,
252
 
  width = 12.655074, height = 338.975190
253
 
},
254
 
 
255
 
 
256
 
Transition:new{
257
 
  x = 703.260560, y = 347.802460,
258
 
  width = 100.336660, height = 51.524231,
259
 
  target = 'bridge',
260
 
targetX = 107,
261
 
targetY = 400
262
 
},
263
 
 
264
 
 
265
 
Transition:new{
266
 
  x = 300.106050, y = 219.443850,
267
 
  width = 42.484894, height = 24.406214,
268
 
  target='cave'
269
 
},
270
 
 
271
 
},
272
 
castle = {
273
 
 
274
 
Displacer:new{
275
 
  x = 673.720150, y = 410.580200,
276
 
  width = 47.098976, height = 63.481228
277
 
},
278
 
 
279
 
 
280
 
Transition:new{
281
 
  x = 73.720139, y = 401.365170,
282
 
  width = 17.406143, height = 72.696243,
283
 
  target='gate',
284
 
targetX=239,
285
 
targetY=388
286
 
},
287
 
 
288
 
},
289
 
lake = {
290
 
 
291
 
Displacer:new{
292
 
  x = 1.140190, y = 532.673520,
293
 
  width = 802.693730, height = 70.747047
294
 
},
295
 
 
296
 
 
297
 
Displacer:new{
298
 
  x = 199.036710, y = 475.319240,
299
 
  width = 88.884743, height = 62.226845
300
 
},
301
 
 
302
 
 
303
 
Displacer:new{
304
 
  x = 254.349850, y = 415.082730,
305
 
  width = 161.585140, height = 76.176979
306
 
},
307
 
 
308
 
 
309
 
Displacer:new{
310
 
  x = 327.690250, y = 337.549840,
311
 
  width = 23.943989, height = 79.813293
312
 
},
313
 
 
314
 
 
315
 
Displacer:new{
316
 
  x = 441.939640, y = 545.003050,
317
 
  width = 77.584961, height = 16.695486
318
 
},
319
 
 
320
 
 
321
 
Displacer:new{
322
 
  x = 293.644320, y = 354.478000,
323
 
  width = 126.689360, height = 22.588020
324
 
},
325
 
 
326
 
 
327
 
Displacer:new{
328
 
  x = 321.142820, y = 298.498960,
329
 
  width = 66.781998, height = 55.979023
330
 
},
331
 
 
332
 
 
333
 
Displacer:new{
334
 
  x = 314.268190, y = 206.182680,
335
 
  width = 193.471360, height = 54.996933
336
 
},
337
 
 
338
 
 
339
 
Displacer:new{
340
 
  x = 318.112060, y = 260.220860,
341
 
  width = 34.470348, height = 39.394684
342
 
},
343
 
 
344
 
 
345
 
Transition:new{
346
 
  x = 782.170290, y = 295.827820,
347
 
  width = 20.523447, height = 239.434230,
348
 
  target = 'gate'
349
 
},
350
 
 
351
 
 
352
 
Transition:new{
353
 
  x = 508.191440, y = 257.266270,
354
 
  width = 275.762790, height = 30.530880,
355
 
  target='bridge',
356
 
targetX=555,
357
 
targetY=487
358
 
},
359
 
 
360
 
},
361
 
foresthut = {
362
 
 
363
 
Displacer:new{
364
 
  x = 10.420785, y = 557.369510,
365
 
  width = 777.769530, height = 50.209240
366
 
},
367
 
 
368
 
 
369
 
Displacer:new{
370
 
  x = 624.299800, y = 248.535320,
371
 
  width = 165.785220, height = 16.104851
372
 
},
373
 
 
374
 
 
375
 
Displacer:new{
376
 
  x = 528.618040, y = 253.272050,
377
 
  width = 96.629105, height = 45.472519
378
 
},
379
 
 
380
 
 
381
 
Displacer:new{
382
 
  x = 459.461910, y = 228.641110,
383
 
  width = 34.104382, height = 62.524715
384
 
},
385
 
 
386
 
 
387
 
Displacer:new{
388
 
  x = 4.736721, y = 227.693760,
389
 
  width = 452.830510, height = 30.315012
390
 
},
391
 
 
392
 
 
393
 
Displacer:new{
394
 
  x = 290.823460, y = 260.068940,
395
 
  width = 67.261436, height = 88.795479
396
 
},
397
 
 
398
 
 
399
 
Displacer:new{
400
 
  x = 182.837420, y = 253.272050,
401
 
  width = 70.103462, height = 56.840649
402
 
},
403
 
 
404
 
 
405
 
Displacer:new{
406
 
  x = 35.051731, y = 493.897460,
407
 
  width = 105.155200, height = 38.841110
408
 
},
409
 
 
410
 
 
411
 
Displacer:new{
412
 
  x = 655.562130, y = 502.423550,
413
 
  width = 92.839722, height = 29.367668
414
 
},
415
 
 
416
 
 
417
 
Transition:new{
418
 
  x = 789.137630, y = 253.272050,
419
 
  width = 22.736259, height = 344.833250,
420
 
  target = 'forest1'
421
 
},
422
 
 
423
 
 
424
 
Transition:new{
425
 
  x = -16.104849, y = 254.219410,
426
 
  width = 22.736259, height = 344.833250,
427
 
  target = 'bridge',
428
 
targetX = 735,
429
 
targetY = 434
430
 
},
431
 
 
432
 
},
433
 
}