This file is indexed.

/usr/share/games/trackballs/levels/bx2.scm is in trackballs-data 1.2.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
;;; Four Doors

;; Environment Section. (defines Level settings)

(set-track-name (_ "Four Doors"))
(set-author "Warren D. Ober")
(set-start-position 13.5 1.5)     ;try these: 31 44)  82 24)  66 63)
(start-time 720)
(restart-time 90)

;; SET JUMP TO Default;

(jump 1.0)

;;Weather conditions.

(day)
(fog)

;(map (lambda(p) (set-wind p 1.0 -4.0)) p1)

;;Clear local areas of fog


;;Set ball velocity.

(define speed 0.3)
(cond
 ((= (difficulty) *easy*) (set! speed 0.20))
 ((= (difficulty) *normal*) (set! speed 0.30))
 ((= (difficulty) *hard*) (set! speed 0.40)))


;;;Object declaration section. (defines objects.)

;;These four doors must open to exit level.


(define doorff1 (forcefield 28.5 28.5 0.0 5.0 0.0 0.0 6.0 *ff-bounce*))
(switch 15 54 (lambda () (set-onoff doorff1 #f)) (lambda () (set-onoff doorff1 #f)))

(define doorff2 (forcefield 28.5 30.5 0.0 5.0 0.0 0.0 6.0 *ff-bounce*))
(switch 31 84 (lambda () (set-onoff doorff2 #f)) (lambda () (set-onoff doorff2 #f)))

(define doorff3 (forcefield 28.5 32.5 0.0 5.0 0.0 0.0 6.0 *ff-bounce*))
(switch 68 42 (lambda () (set-onoff doorff3 #f)) (lambda () (set-onoff doorff3 #f)))

(define doorff4 (forcefield 28.5 34.5 0.0 5.0 0.0 0.0 6.0 *ff-bounce*))
(switch 48 5 (lambda () (set-onoff doorff4 #f)) (lambda () (set-onoff doorff4 #f)))


;;Flags near start.

(add-flag 14 18 350 #t 0.1)
(add-flag 14 26 150 #t 0.1)
(add-flag 17 26 350 #t 0.1)
(add-flag 16 40 200 #t 0.1)

;;Flags by spikes.

(add-flag 9 48 150 #t 0.1)
(add-flag 9 51 250 #t 0.1)
(add-flag 9 55 150 #t 0.1)
(add-flag 9 57 350 #t 0.1)

;;Flags near garden.

(add-flag 15 64 350 #t 0.1)
(add-flag 17 60 250 #t 0.1)
(add-flag 19 66 250 #t 0.1)
(add-flag 16 69 150 #t 0.1)
(add-flag 13 69 350 #t 0.1)
(add-flag 13 67 150 #t 0.1)
(add-flag 12 62 350 #t 0.1)

;;Flags in park.

(add-flag 22 88 350 #t 0.1)
(add-flag 21 90 250 #t 0.1)
(add-flag 33 83 250 #t 0.1)
(add-flag 34 84 150 #t 0.1)

;;Flags in city.

(add-flag 61 63 350 #t 0.1)
(add-flag 66 56 150 #t 0.1)
(add-flag 83 28 350 #t 0.1)
(add-flag 81 37 350 #t 0.1)
(add-flag 78 37 250 #t 0.1)
(add-flag 78 40 250 #t 0.1)
(add-flag 80 40 150 #t 0.1)
(add-flag 80 44 350 #t 0.1)
(add-flag 81 50 250 #t 0.1)
(add-flag 81 54 250 #t 0.1)
(add-flag 76 55 150 #t 0.1)
(add-flag 66 62 350 #t 0.1)
(add-flag 66 66 250 #t 0.1)

;;Flags on Moon.

(add-flag 35 14 350 #t 0.1)
(add-flag 39 8 350 #t 0.1)
(add-flag 44 15 350 #t 0.1)


;;Flags in pyramids.

(add-flag 31 41 1000 #t 0.1)
(add-flag 31 44 1000 #t 0.1)

;;Spikes of doom

(add-sidespike 11 49 speed 0.1 1)
(add-sidespike 11 53 speed 0.1 4)
(add-sidespike 12 49 speed 0.2 4)
(add-sidespike 12 51 speed 0.2 4)
(add-sidespike 14 53 speed 0.1 4)
(add-sidespike 14 52 speed 0.1 2)
(add-sidespike 15 50 speed 0.1 1)
(add-spike 13 49 speed -0.00)
(add-spike 13 50 speed -0.20)
(add-spike 13 51 speed -0.40)
(add-spike 13 52 speed -0.60)
(add-spike 10 50 speed -0.00)
(add-spike 11 50 speed -0.20)
(add-spike 11 51 speed -0.40)
(add-spike 11 52 speed -0.60)
(add-spike 12 53 speed -0.80)
(add-spike 12 54 speed -0.00)
(add-spike 13 54 speed -0.00)
(add-spike 13 53 speed -0.20)
(add-spike 15 53 speed -0.60)
(add-spike 14 49 speed -0.60)
(add-spike 15 49 speed -0.80)
(add-spike 14 51 speed -0.00)
(add-spike 15 51 speed -0.00)

;;Garden Platforms.  x0  y0  x1  y1   Low  Hi  Offset Speed.

(add-cyclic-platform 12  70  12  70  -6.0 -3.5  1.0   0.8)
(add-cyclic-platform 15  69  15  69  -6.0 -3.5  1.5   0.6)
(add-cyclic-platform 18  67  18  67  -6.0 -3.5  2.0   0.7)
(add-cyclic-platform 14  62  14  62  -6.0 -3.5  1.0   1.0)
(add-cyclic-platform 17  62  17  62  -6.0 -3.5  1.5   0.9)


;;These are the guides in the city

(forcefield 68.0 51.6 0.2 7.0 0.0 0.0 0.1 *ff-bounce*)
(forcefield 67.6 52.0 -0.1 7.8 0.0 0.0 0.1 *ff-bounce*)
(forcefield 68.0 52.4 0.2 7.0 0.0 0.0 0.1 *ff-bounce*)

(forcefield 75.6 50.0 0.2 0.0 -10.0 0.0 0.1 *ff-bounce*)
(forcefield 76.0 50.4 -0.1 0.0 -10.8 0.0 0.1 *ff-bounce*)
(forcefield 76.4 50.0 0.2 0.0 -10.0 0.0 0.1 *ff-bounce*)

(forcefield 68.0 37.6 0.2 7.0 0.0 0.0 0.1 *ff-bounce*)
(forcefield 67.6 38.0 -0.1 7.8 0.0 0.0 0.1 *ff-bounce*)
(forcefield 68.0 38.4 0.2 7.0 0.0 0.0 0.1 *ff-bounce*)

(forcefield 65.6 37.0 0.2 0.0 -10.0 0.0 0.1 *ff-bounce*)
(forcefield 66.0 37.4 -0.1 0.0 -10.8 0.0 0.1 *ff-bounce*)
(forcefield 66.4 37.0 0.2 0.0 -10.0 0.0 0.1 *ff-bounce*)

(forcefield 67.0 22.6 0.2 10.0 0.0 0.0 0.1 *ff-bounce*)
(forcefield 66.6 23.0 -0.1 10.8 0.0 0.0 0.1 *ff-bounce*)
(forcefield 67.0 23.4 0.2 10.0 0.0 0.0 0.1 *ff-bounce*)

;;2nd set of guides (It is possible!)

(forcefield 67.0 24.6 0.2 14.0 0.0 0.0 0.1 *ff-bounce*)
(forcefield 66.6 25.0 -0.1 14.8 0.0 0.0 0.1 *ff-bounce*)
(forcefield 67.0 25.4 0.2 14.0 0.0 0.0 0.1 *ff-bounce*)

(forcefield 63.6 41.0 0.2 0.0 -17.0 0.0 0.1 *ff-bounce*)
(forcefield 64.0 41.4 -0.1 0.0 -17.8 0.0 0.1 *ff-bounce*)
(forcefield 64.4 41.0 0.2 0.0 -17.0 0.0 0.1 *ff-bounce*)

(forcefield 63.6 68.0 0.2 0.0 -26.0 0.0 0.1 *ff-bounce*)
(forcefield 64.0 68.4 -0.1 0.0 -26.8 0.0 0.1 *ff-bounce*)
(forcefield 64.4 68.0 0.2 0.0 -26.0 0.0 0.1 *ff-bounce*)


;;PIPES GROUP 1 (from first raised area to second)

(define pipe2(pipe 84 13 14.0 84 10.1 12.5 0.5))
(set-primary-color pipe2 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 84 10 12.5 0.6) 0.0 0.5 0.0 0.3)

(define pipe3(pipe 84 10 12.5 84 7.1 12.5 0.5))
(set-primary-color pipe3 0.0 0.5 0.0 0.3)
 
(define pipe4(pipe 84 7 12.5 80 7.1 12.5 0.5))
(set-primary-color pipe4 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 84 7 12.5 0.6) 0.0 0.5 0.0 0.3)

(define pipe5(pipe 80 7.1 12.5 77 10 12.5 0.5))
(set-primary-color pipe5 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 80 7 12.5 0.6) 0.0 0.5 0.0 0.3)


;;PIPES GROUP 2 (from second raised area to lower area)

(define pipe6(pipe 73 9.5 12.3 73 4.7 9.7 0.5))
(set-primary-color pipe6 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 73 4.6 9.6 0.6) 0.0 0.5 0.0 0.3)

(define pipe11(pipe 73 4.6 9.5 73 8 7.5 0.5))
(set-primary-color pipe11 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 73 8 7.5 0.6) 0.0 0.5 0.0 0.3)

(define pipe12(pipe 73 8 7.5 70 13 9.0 0.5))
(set-primary-color pipe12 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 70 13 9.0 0.6) 0.0 0.5 0.0 0.3)

(define pipe13(pipe 70 13 9.0 65 13 9.0 0.5))
(set-primary-color pipe13 0.0 0.5 0.0 0.3)


;;PIPES GROUP 3 (from second raised area to upper area)

(define pipe7(pipe 70 12 12.5 66.1 12 12.5 0.5))
(set-primary-color pipe7 0.0 0.5 0.0 0.3)

(define pipe8(pipe 65.9 11.9 12.5 60.2 15.0 14.0 0.5))
(set-primary-color pipe8 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 65.9 11.9 12.5 0.6) 0.0 0.5 0.0 0.3)

(define pipe9(pipe 60.1 15.0 14.0 56 10 14.0 0.5))
(set-primary-color pipe9 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 60 15 14.0 0.6) 0.0 0.5 0.0 0.3)

(define pipe10(pipe 56 10 14.0 50.5 6 14.5 0.5))
(set-primary-color pipe10 0.0 0.5 0.0 0.3)

;Pipes group 4 (from upper raised area to moon.)

(define pipe14(pipe 55.1 13.2 5.7 51 13.2 3.5 0.5))
(set-primary-color pipe14 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 51.0 13.2 3.5 0.6) 0.0 0.5 0.0 0.3)

(define pipe15(pipe 51.0 13.2 3.5 44.5 13.5 -3.5 0.5))
(set-primary-color pipe15 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 44.5 13.5 -3.5 0.6) 0.0 0.5 0.0 0.3)

(define pipe16(pipe 44.5 13.5 -3.5 40.5 13.5 -3.5 0.5))
(set-primary-color pipe16 0.0 0.5 0.0 0.3)



;;Bumpers in Starship Green-rooms.
   
(forcefield 29.5 45.5 0.2  3.0 0.0 0.0 0.1 *ff-bounce*)
(forcefield 32.5 45.5 -3.3  0.0 -3.0 0.0 0.1 *ff-bounce*)
(forcefield 32.5 42.5 0.2 -3.0 0.0 0.0 0.1 *ff-bounce*)
(forcefield 29.5 42.5 0.2  0.0 3.0 0.0 0.1 *ff-bounce*)

(forcefield 29.5 42 0.2  3.0 0.0 0.0 0.1 *ff-bounce*)
(forcefield 32.5 42 0.2  0.0 -3.0 0.0 0.1 *ff-bounce*)
(forcefield 32.5 39 0.2 -3.0 0.0 0.0 0.1 *ff-bounce*)
(forcefield 29.5 39 0.2  0.0 3.0 0.0 0.1 *ff-bounce*)


;;Pyramids of forcefields (Greenrooms).

;(forcefield rX   rY    rZ rDx  rDy rDz rHeight �flag�)

(forcefield 29 45.0 -3.5 2.0 -2.0 3.5 3.5 *ff-bounce*)
(forcefield 33 45.0 -7.0 -2.0 -2.0 3.5 3.5 *ff-bounce*)
(forcefield 33 41.0 -3.5 -2.0 2.0 3.5 3.5 *ff-bounce*)
(forcefield 29 41.0 -3.5 2.0 2.0 3.5 3.5 *ff-bounce*)

(forcefield 29 42.5 -3.5 2.0 -2.0 3.5 3.5 *ff-bounce*)
(forcefield 33 42.5 -3.5 -2.0 -2.0 3.5 3.5 *ff-bounce*)
(forcefield 33 38.5 -3.5 -2.0 2.0 3.5 3.5 *ff-bounce*)
(forcefield 29 38.5 -3.5 2.0 2.0 3.5 3.5 *ff-bounce*)



;;Procedure Section. (Gameplay starts.)


(set-primary-color (sign (_ "4 hidden switches open exit doors.") 0.8 0.0 -0.1 14 22) 0.2 0.5 1.0 1.0)

(set-primary-color (sign (_ "A switch is nearby.") 0.8 0.0 -0.1 13 48) 0.2 0.5 1.0 1.0)

(set-primary-color (sign (_ "Peace.") 0.8 0.0 -0.1 15 66) 0.2 0.5 1.0 1.0)
 

;;Extra life near start.

(add-modpill 18 34 *mod-extra-life* 30 -1)


;;Made it to the Garden! Save your place.


(diamond 9 59)
(trigger 8.5 58.5 1.0 (lambda () (fog)))
(trigger 9.2 59.2 1.0 (lambda () (jump 1.0)))


;;A bird flys by in Park.

(add-bird 11 95 50 60 0.5 2)


;;A floater for the pond jump.

(add-modpill 23 81 *mod-float* 60 -1)


;;This is the water pipe.

(pipe 31 81 -7.5 27.5 81 -7 1.0)


;;Mr. Black in Pipe

(define mr-black1 (new-mr-black 28 81))
(set-acceleration mr-black1 2.0)


;;Extra life Near Switch.

(add-modpill 35 81 *mod-extra-life* 30 -1)



;;Welcome to the city. Save your place here.

(diamond 60 70)
(trigger 59.5 69.5 1.0 (lambda () (fog)))
(trigger 59.8 69.8 1.0 (lambda () (jump 1.0)))


;;Made it through guides, save your place again.

(diamond 80 24)
(trigger 79.5 23.5 1.0 (lambda () (fog)))
(trigger 80.2 24.2 1.0 (lambda () (jump 1.0)))

;;Up to next level

(add-cyclic-platform 
 ;;; Positions
80 21 81 22 
 ;;; Low, High, Time Offset, Speed
 -3. 7. 1. 1.0)



;;Extra life By Platform.

(add-modpill 82 27 *mod-extra-life* 30 -1)



;;BEGIN LIFT SHUTE

(define shute(pipe 84 24 7.5 84 23.1 15.4 0.5))
(set-primary-color shute 0.0 0.5 0.0 0.3)
(set-wind shute 9.0 0.0)

(define pipe1(pipe 84 22.9 15.6 84 20.8 15.5 0.5))
(set-primary-color pipe1 0.0 0.5 0.0 0.3)
(set-wind pipe1 2.0 0.0)

(set-primary-color (pipe-connector 84 23 15.5 0.6) 0.0 0.5 0.0 0.3)
 
;;SET NIGHT-TIME ON UPPER PLATFORMS.

(trigger 84 21 2.0 (lambda () (night)))

(diamond 84 20)



;; SET JUMP TO HIGH ON MOON;

(trigger 56 13 1.0 (lambda () (jump 1.6)))





;; SET TIME DAY ON MOON.

(trigger 40 13.5 2.0 (lambda () (day)))


;; SET JUMP TO HIGH;

(trigger 47 8 1.0 (lambda () (jump 1.6)))


;(define pipetemp3 
;(multi-pipe
;'((47.7 7.7 13.6)(44.5 8.0 11.5)
;  (44.5 18.0 -0.5)(40.5 18.0 -0.5)) 0.5 #t))

(define pipe17(pipe 47.2 7.2 13.6 44 7.5 11.5 0.5))
(set-primary-color pipe17 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 44 7.5 11.5 0.6) 0.0 0.5 0.0 0.3)

(define pipe18(pipe 44 7.5 11.5 44 17.5 -0.5 0.5))
(set-primary-color pipe18 0.0 0.5 0.0 0.3)

(set-primary-color (pipe-connector 44 17.5 -0.5 0.6) 0.0 0.5 0.0 0.3)

(define pipe19(pipe 44 17.5 -0.5 40.5 18.0 -0.5 0.5))
(set-primary-color pipe19 0.0 0.5 0.0 0.3)




;; SET DAY TIME AFTER SWITCH.

(trigger 40 17 2.0 (lambda () (day)))



;;Extra balls on Moon.

(add-modpill 44 17 *mod-extra-life* 30 -1)

(add-modpill 38 13 *mod-extra-life* 30 -1)



;; Moon Base to Exit.


(pipe-connector 35.5 22.9 -2.0 0.1)
(pipe 35.5 22.9 -2.0 38.9 18.5 -1.0 0.1) 
(pipe-connector 38.9 18.5 -1.0 0.1)

(pipe-connector 35.1 22.5 -2.0 0.1)
(pipe 35.1 22.5 -2.0 38.5 18.1 -1.0 0.1)
(pipe-connector 38.5 18.1 -1.0 0.1)

;; SET JUMP TO Low + Fog.

(trigger 35 23 0.5 (lambda () (jump 1.0)))
(trigger 34.5 23.5 1.0 (lambda () (fog)))

;;Star Ship - Save Place.

(diamond 31 37)


;;Extra LIfe at top of city

(add-modpill 63 64 *mod-extra-life* 60 -1)

;;back from top of city

(define pipee 
(multi-pipe
'((66 61 2.5) (66 60.5 1.0) 
 (67 67 -2.5) (72 67 -2.5)) 0.5 #t))


;;up to lift-off

(define pipef (pipe 81 33 2.5 81 31.2 2.5 0.5))
(pipe-connector 81 31 2.5 0.5)
(define pipeg (pipe 81 31 2.6 81 30 9.2 0.5))
(set-wind pipeg 2.2 0.0)


;;Last set of guides (Cargo Hold).

(forcefield 33.6 51.0 0.2 0.0 8.0 0.0 0.1 *ff-nothing*)
(forcefield 34.0 50.6 -0.1 0.0 8.8 0.0 0.1 *ff-bounce*)
(forcefield 34.4 51.0 0.2 0.0 8.0 0.0 0.1 *ff-bounce*)

;;Final door and switch.

(define doorff5 (forcefield 33.5 58.5 0.0 1.0 0.0 0.0 2.0 *ff-bounce*))
(switch 31.0 58 (lambda () (set-onoff doorff5 #t)) (lambda () (set-onoff doorff5 #f)))

;;End of level

(add-goal 34 60 #f "bx3")