bonusblock.stl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. (supertux-level
  2. (version 2)
  3. (name (_ "Bonusblock Test"))
  4. (author "LMH")
  5. (license "GPL 2 / CC-by-sa 3.0" )
  6. (sector (name "main" )
  7. (ambient-light 1 1 1 )
  8. (camera (mode "normal" ))
  9. (init-script " lightson <- true; ")
  10. (spawnpoint (name "main" )
  11. (x 80 )(y 704 ))
  12. (tilemap (name "Interactive" )
  13. (z-pos 0 )(solid #t )
  14. (width 42 )(height 30 )
  15. (tiles ; 160 192 224 256 288 320 352 384 416 448 480 512 544 576 608 640 672 704 736 768 800 832 864 896 928 960 992 1024 1056 1088 1120 1152 1184 1216 1248 1280 1312
  16. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  17. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 32
  18. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 64
  19. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 96
  20. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 128
  21. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 512
  33. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 544
  34. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 576
  35. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 608
  36. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2943 0 0 0 2944 2945 0 0 0 0 0 0 0 0 ; 640
  37. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; 672
  38. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 132 0 ; 704
  39. 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 48 8 ; 736
  40. 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 ; 768
  41. 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ; 800
  42. 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ; 832
  43. 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ; 864
  44. 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ; 896
  45. 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ; 928
  46. ))
  47. (bonusblock
  48. (x 256 )
  49. (y 640 )
  50. (contents "coin" )
  51. (count 3 )
  52. )
  53. (bonusblock
  54. (x 384 )
  55. (y 640 )
  56. (contents "firegrow" )
  57. (sprite "images/objects/bonus_block/brick.sprite" )
  58. )
  59. (bonusblock
  60. (x 512 )
  61. (y 640 )
  62. (contents "1up" )
  63. (sprite "images/objects/bonus_block/hiddenbonus.sprite" )
  64. )
  65. (bonusblock
  66. (x 640 )
  67. (y 640 )
  68. (contents "script" )
  69. (script "
  70. vineA.goto_node(8);
  71. vineB.goto_node(8);
  72. vineC.goto_node(8);
  73. vineD.goto_node(8);
  74. vineE.goto_node(8);
  75. vineF.goto_node(8);
  76. vineG.goto_node(8);
  77. vineH.goto_node(8);
  78. ")
  79. )
  80. (bonusblock
  81. (x 768 )
  82. (y 640 )
  83. (contents "script" )
  84. (sprite "images/objects/bonus_block/hiddenbonus.sprite" )
  85. (count 0 )
  86. (script "
  87. if(lightson){
  88. lightson <- false;
  89. settings.set_ambient_light(0, 0, 0);
  90. cover.fade(0,0);
  91. } else {
  92. lightson <- true;
  93. settings.set_ambient_light(1, 1, 1);
  94. cover.fade(1,0);
  95. }
  96. ")
  97. )
  98. (candle (x 768 )(y 640 ))
  99. (tilemap (name "cover" )(alpha 1 )
  100. (z-pos -100 )(solid #f )
  101. (path (node (x 767 )(y 640 )) )
  102. (width 1 )(height 1 )
  103. (tiles 131 ))
  104. (tilemap
  105. (z-pos -200 )(solid #f )
  106. (path (node (x 767 )(y 640 )) )
  107. (width 1 )(height 1 )
  108. (tiles 61 ))
  109. (tilemap (name "vineA" )
  110. (z-pos -50 )(solid #t )
  111. (path (node (x 640 )(y 640 )(time 0.25 ))
  112. (node (x 640 )(y 608 )(time 0.25 ))
  113. (node (x 640 )(y 576 )(time 0.25 ))
  114. (node (x 640 )(y 544 )(time 0.25 ))
  115. (node (x 640 )(y 512 )(time 0.25 ))
  116. (node (x 640 )(y 480 )(time 0.25 ))
  117. (node (x 640 )(y 448 )(time 0.25 ))
  118. (node (x 640 )(y 416 )(time 0.25 ))
  119. (node (x 640 )(y 384 )(time 0.25 )) )
  120. (width 1 )(height 1 )
  121. (tiles 2163 ))
  122. (tilemap (name "vineB" )
  123. (z-pos -50 )(solid #t )
  124. (path (node (x 640 )(y 640 )(time 0.25 ))
  125. (node (x 640 )(y 640 )(time 0.25 ))
  126. (node (x 640 )(y 608 )(time 0.25 ))
  127. (node (x 640 )(y 576 )(time 0.25 ))
  128. (node (x 640 )(y 544 )(time 0.25 ))
  129. (node (x 640 )(y 512 )(time 0.25 ))
  130. (node (x 640 )(y 480 )(time 0.25 ))
  131. (node (x 640 )(y 448 )(time 0.25 ))
  132. (node (x 640 )(y 416 )(time 0.25 )) )
  133. (width 1 )(height 1 )
  134. (tiles 2162 ))
  135. (tilemap (name "vineC" )
  136. (z-pos -50 )(solid #t )
  137. (path (node (x 640 )(y 640 )(time 0.25 ))
  138. (node (x 640 )(y 640 )(time 0.25 ))
  139. (node (x 640 )(y 640 )(time 0.25 ))
  140. (node (x 640 )(y 608 )(time 0.25 ))
  141. (node (x 640 )(y 576 )(time 0.25 ))
  142. (node (x 640 )(y 544 )(time 0.25 ))
  143. (node (x 640 )(y 512 )(time 0.25 ))
  144. (node (x 640 )(y 480 )(time 0.25 ))
  145. (node (x 640 )(y 448 )(time 0.25 )) )
  146. (width 1 )(height 1 )
  147. (tiles 2162 ))
  148. (tilemap (name "vineD" )
  149. (z-pos -50 )(solid #t )
  150. (path (node (x 640 )(y 640 )(time 0.25 ))
  151. (node (x 640 )(y 640 )(time 0.25 ))
  152. (node (x 640 )(y 640 )(time 0.25 ))
  153. (node (x 640 )(y 640 )(time 0.25 ))
  154. (node (x 640 )(y 608 )(time 0.25 ))
  155. (node (x 640 )(y 576 )(time 0.25 ))
  156. (node (x 640 )(y 544 )(time 0.25 ))
  157. (node (x 640 )(y 512 )(time 0.25 ))
  158. (node (x 640 )(y 480 )(time 0.25 )) )
  159. (width 1 )(height 1 )
  160. (tiles 2162 ))
  161. (tilemap (name "vineE" )
  162. (z-pos -50 )(solid #t )
  163. (path (node (x 640 )(y 640 )(time 0.25 ))
  164. (node (x 640 )(y 640 )(time 0.25 ))
  165. (node (x 640 )(y 640 )(time 0.25 ))
  166. (node (x 640 )(y 640 )(time 0.25 ))
  167. (node (x 640 )(y 640 )(time 0.25 ))
  168. (node (x 640 )(y 608 )(time 0.25 ))
  169. (node (x 640 )(y 576 )(time 0.25 ))
  170. (node (x 640 )(y 544 )(time 0.25 ))
  171. (node (x 640 )(y 512 )(time 0.25 )) )
  172. (width 1 )(height 1 )
  173. (tiles 2163 ))
  174. (tilemap (name "vineF" )
  175. (z-pos -50 )(solid #t )
  176. (path (node (x 640 )(y 640 )(time 0.25 ))
  177. (node (x 640 )(y 640 )(time 0.25 ))
  178. (node (x 640 )(y 640 )(time 0.25 ))
  179. (node (x 640 )(y 640 )(time 0.25 ))
  180. (node (x 640 )(y 640 )(time 0.25 ))
  181. (node (x 640 )(y 640 )(time 0.25 ))
  182. (node (x 640 )(y 608 )(time 0.25 ))
  183. (node (x 640 )(y 576 )(time 0.25 ))
  184. (node (x 640 )(y 544 )(time 0.25 )) )
  185. (width 1 )(height 1 )
  186. (tiles 2162 ))
  187. (tilemap (name "vineG" )
  188. (z-pos -50 )(solid #t )
  189. (path (node (x 640 )(y 640 )(time 0.25 ))
  190. (node (x 640 )(y 640 )(time 0.25 ))
  191. (node (x 640 )(y 640 )(time 0.25 ))
  192. (node (x 640 )(y 640 )(time 0.25 ))
  193. (node (x 640 )(y 640 )(time 0.25 ))
  194. (node (x 640 )(y 640 )(time 0.25 ))
  195. (node (x 640 )(y 640 )(time 0.25 ))
  196. (node (x 640 )(y 608 )(time 0.25 ))
  197. (node (x 640 )(y 576 )(time 0.25 )) )
  198. (width 1 )(height 1 )
  199. (tiles 2162 ))
  200. (tilemap (name "vineH" )
  201. (z-pos -50 )(solid #t )
  202. (path (node (x 640 )(y 640 )(time 0.25 ))
  203. (node (x 640 )(y 640 )(time 0.25 ))
  204. (node (x 640 )(y 640 )(time 0.25 ))
  205. (node (x 640 )(y 640 )(time 0.25 ))
  206. (node (x 640 )(y 640 )(time 0.25 ))
  207. (node (x 640 )(y 640 )(time 0.25 ))
  208. (node (x 640 )(y 640 )(time 0.25 ))
  209. (node (x 640 )(y 640 )(time 0.25 ))
  210. (node (x 640 )(y 608 )(time 0.25 )) )
  211. (width 1 )(height 1 )
  212. (tiles 2162 ))
  213. ))