/usr/share/games/trackballs/levels/mhm2.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 | ;;; Madness
(set-track-name (_ "Mayhem"))
(set-author "Warren D. Ober")
(set-start-position 251.5 249.5)
(start-time 180)
(restart-time 30)
;;Weather conditions.
(day)
;;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)))
;;pipe rails...
(pipe-connector 238 249 3.3 0.1)
(pipe 238 249 3.3 241 249 3.3 0.1)
(pipe-connector 241 249 3.3 0.1)
(pipe 241 249 3.3 241 246 3.3 0.1)
(pipe-connector 241 246 3.3 0.1)
(pipe-connector 241 244 3.3 0.1)
(pipe 241 244 3.3 244 244 3.3 0.1)
(pipe-connector 244 244 3.3 0.1)
(pipe 244 244 3.3 244 241 3.3 0.1)
(pipe-connector 244 241 3.3 0.1)
(pipe-connector 246 243 3.8 0.1)
(pipe 246 243 3.8 249 243 3.8 0.1)
(pipe-connector 249 243 3.8 0.1)
(pipe 249 243 3.8 249 240 3.8 0.1)
(pipe-connector 249 240 3.8 0.1)
;;Some balls.
(define mr1 (new-mr-black 243 214))
(set-acceleration mr1 7.0)
(define mr1-animator
(animator
1.0 0.0 1.0 0.0 1.0 *animator-bounce*
(lambda (value1) (set-primary-color mr1 value1 value1 0.0)))
)
(define mr2 (new-mr-black 245 214))
(set-acceleration mr2 7.0)
(define mr2-animator
(animator
1.0 0.0 1.0 0.0 1.0 *animator-bounce*
(lambda (value2) (set-primary-color mr2 value2 0.0 value2)))
)
(define mr3 (new-mr-black 241 214))
(set-acceleration mr3 7.0)
(define mr3-animator
(animator
1.0 0.0 1.0 0.0 1.0 *animator-bounce*
(lambda (value3) (set-primary-color mr3 0.0 value3 value3)))
)
;;Pipes to get back to top of level.
;(multi-pipe
;'((219.5 226.0 -2.2)(219.5 225.0 -2.2)
; (219.5 224.0 -7.2)(219.5 222.0 -7.2)) 0.5 #t)
(define pipe1(pipe 219 225.5 -2.2 219. 224.5 -2.2 0.5))
(set-primary-color pipe1 0.0 0.0 0.0 1.0)
;(set-wind pipe1 0.0 0.0)
(set-primary-color (pipe-connector 219. 224.5 -2.2 0.5) 0.0 0.0 0.0 1.0)
(define pipe2(pipe 219. 224.5 -2.2 219. 223.5 -7.2 0.5))
(set-primary-color pipe2 0.0 0.0 0.0 1.0)
(set-wind pipe2 -12.0 -6.0)
(set-primary-color (pipe-connector 219. 223.5 -7.2 0.5) 0.0 0.0 0.0 1.0)
(define pipe3(pipe 219. 223.5 -7.2 219.0 221.5 -7.2 0.5))
(set-primary-color pipe3 0.0 0.0 0.0 1.0)
(set-wind pipe3 -12.0 -6.0)
;forcefield & switch.
(define doorff (forcefield 216.5 247.5 0.0 0.0 3.0 0.0 3.0 *ff-bounce*))
(switch 249.5 187.5 (lambda () (set-onoff doorff #t)) (lambda () (set-onoff doorff #f)))
(diamond 234.5 187.5)
(if (= (difficulty) *easy*)
(diamond 208 249) ;; Creates a savepoint easy
(add-flag 208 249 50 #t 0.1) ;; or just a flag...
)
;;HOTSPOTS
(smart-trigger 206 239 0.5
(lambda () (set-cell-heights 206 239 206 239 -2.1 -2.1 -2.1 -2.1)
)
(lambda () (set-cell-heights 206 239 206 239 -5.1 -5.1 -5.1 -5.1))
)
(smart-trigger 208 235 0.5
(lambda () (set-cell-heights 208 235 208 235 -2.8 -2.8 -2.8 -2.8)
)
(lambda () (set-cell-heights 208 235 208 235 -5.8 -5.8 -5.8 -5.8))
)
(smart-trigger 207 228 0.5
(lambda () (set-cell-heights 207 228 207 228 -4.2 -4.2 -4.2 -4.2)
)
(lambda () (set-cell-heights 207 228 207 228 -7.2 -7.2 -7.2 -7.2))
)
(smart-trigger 206 222 0.5
(lambda () (set-cell-heights 206 222 206 222 -3.7 -3.7 -3.7 -3.7)
)
(lambda () (set-cell-heights 206 222 206 222 -6.7 -6.7 -6.7 -6.7))
)
(smart-trigger 208 217 0.5
(lambda () (set-cell-heights 208 217 208 217 -2.6 -2.6 -2.6 -2.6)
)
(lambda () (set-cell-heights 208 217 208 217 -5.6 -5.6 -5.6 -5.6))
)
(smart-trigger 210 211 0.5
(lambda () (set-cell-heights 210 211 210 211 -1.6 -1.6 -1.6 -1.6)
)
(lambda () (set-cell-heights 210 211 210 211 -4.6 -4.6 -4.6 -4.6))
)
(smart-trigger 206 207 0.5
(lambda () (set-cell-heights 206 207 206 207 -0.8 -0.8 -0.8 -0.8)
)
(lambda () (set-cell-heights 206 207 206 207 -3.8 -3.8 -3.8 -3.8))
)
(set-horizon (new-baby 239 228) 2.5)
(set-horizon (new-baby 239 227) 2.5)
(add-flag 198 200 100 #t 0.1)
(add-flag 200 202 100 #t 0.1)
(add-flag 198 202 100 #t 0.1)
(add-flag 200 200 100 #t 0.1)
(add-flag 194 200 100 #t 0.1)
(add-flag 192 202 100 #t 0.1)
(add-flag 194 202 100 #t 0.1)
(add-flag 192 200 100 #t 0.1)
(add-flag 188 200 100 #t 0.1)
(add-flag 186 202 100 #t 0.1)
(add-flag 188 202 100 #t 0.1)
(add-flag 186 200 100 #t 0.1)
(add-flag 182 200 100 #t 0.1)
(add-flag 180 202 100 #t 0.1)
(add-flag 182 202 100 #t 0.1)
(add-flag 180 200 100 #t 0.1)
(add-flag 204 194 100 #t 0.1)
(add-flag 206 196 100 #t 0.1)
(add-flag 204 196 100 #t 0.1)
(add-flag 206 194 100 #t 0.1)
(add-flag 198 194 100 #t 0.1)
(add-flag 200 196 100 #t 0.1)
(add-flag 198 196 100 #t 0.1)
(add-flag 200 194 100 #t 0.1)
(add-flag 194 194 100 #t 0.1)
(add-flag 192 196 100 #t 0.1)
(add-flag 194 196 100 #t 0.1)
(add-flag 192 194 100 #t 0.1)
(add-flag 188 194 100 #t 0.1)
(add-flag 186 196 100 #t 0.1)
(add-flag 188 196 100 #t 0.1)
(add-flag 186 194 100 #t 0.1)
(add-flag 182 194 100 #t 0.1)
(add-flag 180 196 100 #t 0.1)
(add-flag 182 196 100 #t 0.1)
(add-flag 180 194 100 #t 0.1)
(add-flag 204 188 100 #t 0.1)
(add-flag 206 190 100 #t 0.1)
(add-flag 204 190 100 #t 0.1)
(add-flag 206 188 100 #t 0.1)
(add-flag 198 188 100 #t 0.1)
(add-flag 200 190 100 #t 0.1)
(add-flag 198 190 100 #t 0.1)
(add-flag 200 188 100 #t 0.1)
(add-flag 194 188 100 #t 0.1)
(add-flag 192 190 100 #t 0.1)
(add-flag 194 190 100 #t 0.1)
(add-flag 192 188 100 #t 0.1)
(add-flag 188 188 100 #t 0.1)
(add-flag 186 190 100 #t 0.1)
(add-flag 188 190 100 #t 0.1)
(add-flag 186 188 100 #t 0.1)
(add-flag 182 188 100 #t 0.1)
(add-flag 180 190 100 #t 0.1)
(add-flag 182 190 100 #t 0.1)
(add-flag 180 188 100 #t 0.1)
(add-flag 204 182 100 #t 0.1)
(add-flag 206 184 100 #t 0.1)
(add-flag 204 184 100 #t 0.1)
(add-flag 206 182 100 #t 0.1)
(add-flag 198 182 100 #t 0.1)
(add-flag 200 184 100 #t 0.1)
(add-flag 198 184 100 #t 0.1)
(add-flag 200 182 100 #t 0.1)
(add-flag 194 182 100 #t 0.1)
(add-flag 192 184 100 #t 0.1)
(add-flag 194 184 100 #t 0.1)
(add-flag 192 182 100 #t 0.1)
(add-flag 188 182 100 #t 0.1)
(add-flag 186 184 100 #t 0.1)
(add-flag 188 184 100 #t 0.1)
(add-flag 186 182 100 #t 0.1)
(add-flag 182 182 100 #t 0.1)
(add-flag 180 184 100 #t 0.1)
(add-flag 182 184 100 #t 0.1)
(add-flag 180 182 100 #t 0.1)
(add-flag 204 176 100 #t 0.1)
(add-flag 206 178 100 #t 0.1)
(add-flag 204 178 100 #t 0.1)
(add-flag 206 176 100 #t 0.1)
(add-flag 198 176 100 #t 0.1)
(add-flag 200 178 100 #t 0.1)
(add-flag 198 178 100 #t 0.1)
(add-flag 200 176 100 #t 0.1)
(add-flag 194 176 100 #t 0.1)
(add-flag 192 178 100 #t 0.1)
(add-flag 194 178 100 #t 0.1)
(add-flag 192 176 100 #t 0.1)
(add-flag 188 176 100 #t 0.1)
(add-flag 186 178 100 #t 0.1)
(add-flag 188 178 100 #t 0.1)
(add-flag 186 176 100 #t 0.1)
;;End of level
(add-goal 181 177 #t "mhm3")
|