special_switch_scripts.s 19 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105
  1. *Special case scripts
  2. Use_Key_On_Door
  3. dc.w SWITCH_ADD_DESTROY_BLOCK_ROW
  4. dc.w 0,0,240,241,$ffff
  5. dc.w SWITCH_WAIT
  6. dc.w SWITCH_ADD_DESTROY_BLOCK_ROW
  7. dc.w 0,0,220,221,$ffff
  8. dc.w SWITCH_WAIT
  9. dc.w SWITCH_ADD_DESTROY_BLOCK_ROW
  10. dc.w 0,0,200,201,$ffff
  11. dc.w SWITCH_END
  12. *This is the script for blowing up the main door - i do not
  13. *have the graphics for the blown up door but when you do replace
  14. *the 1's - It assumes the door is four blocks wide and three high
  15. *the bottom line of door blocks is the first set in the script
  16. Blow_Up_Big_Door
  17. dc.w SWITCH_ADD_DESTROY_BLOCK_ROW
  18. dc.w 0,0,290,291,292,293,$ffff
  19. dc.w SWITCH_WAIT
  20. dc.w SWITCH_ADD_DESTROY_BLOCK_ROW
  21. dc.w 0,0,270,271,272,273,$ffff
  22. dc.w SWITCH_WAIT
  23. dc.w SWITCH_ADD_DESTROY_BLOCK_ROW
  24. dc.w 0,0,250,251,252,253,$ffff
  25. dc.w SWITCH_WAIT
  26. dc.w SWITCH_ADD_DESTROY_BLOCK_ROW
  27. dc.w 0,0,230,231,232,233,$ffff
  28. dc.w SWITCH_END
  29. Generator_Appear_Example
  30. dc.w SWITCH_ADD_ALIEN_TO_MAP
  31. dc.w Pig_Generator3
  32. dc.w (44*16),(77*16)
  33. dc.l Pig_Generator_Object3
  34. dc.w SWITCH_ADD_FIRE_BLOCK
  35. dc.w 44,78,444
  36. dc.w SWITCH_ADD_FIRE_BLOCK
  37. dc.w 45,78,445
  38. dc.w SWITCH_ADD_ALIEN
  39. dc.w (44*16)+12,(79*16)+8
  40. dc.l Block_Split_Object_3
  41. dc.w SWITCH_ADD_ALIEN
  42. dc.w (44*16)+20,(79*16)+8
  43. dc.l Block_Split_Object_4
  44. dc.w SWITCH_WAIT
  45. dc.w SWITCH_ADD_FIRE_BLOCK
  46. dc.w 44,77,424
  47. dc.w SWITCH_ADD_FIRE_BLOCK
  48. dc.w 45,77,425
  49. dc.w SWITCH_END
  50. Rain_Script
  51. *start by spotting
  52. dc.w SWITCH_SET_VAR
  53. dc.l WeatherFx
  54. dc.w 0
  55. dc.w SWITCH_EXECUTE_CODE
  56. dc.l Start_Looping_Sample
  57. dc.w SWITCH_EXECUTE_CODE
  58. dc.l Add_Small_Rain_Drop
  59. dc.w SWITCH_WAIT
  60. dc.w SWITCH_WAIT
  61. dc.w SWITCH_SET_RAIN_VOL
  62. dc.w 5
  63. dc.w SWITCH_WAIT
  64. dc.w SWITCH_WAIT
  65. dc.w SWITCH_SET_RAIN_VOL
  66. dc.w 10
  67. dc.w SWITCH_WAIT
  68. dc.w SWITCH_WAIT
  69. dc.w SWITCH_EXECUTE_CODE
  70. dc.l Add_Small_Rain_Drop
  71. dc.w SWITCH_WAIT
  72. dc.w SWITCH_WAIT
  73. dc.w SWITCH_SET_RAIN_VOL
  74. dc.w 15
  75. dc.w SWITCH_WAIT
  76. dc.w SWITCH_WAIT
  77. dc.w SWITCH_SET_RAIN_VOL
  78. dc.w 20
  79. dc.w SWITCH_WAIT
  80. dc.w SWITCH_EXECUTE_CODE
  81. dc.l Add_Big_Rain_Drop
  82. dc.w SWITCH_WAIT
  83. dc.w SWITCH_WAIT
  84. dc.w SWITCH_SET_RAIN_VOL
  85. dc.w 25
  86. dc.w SWITCH_WAIT
  87. dc.w SWITCH_WAIT
  88. dc.w SWITCH_SET_RAIN_VOL
  89. dc.w 30
  90. dc.w SWITCH_WAIT
  91. dc.w SWITCH_WAIT
  92. dc.w SWITCH_EXECUTE_CODE
  93. dc.l Add_Small_Rain_Drop
  94. dc.w SWITCH_WAIT
  95. dc.w SWITCH_WAIT
  96. dc.w SWITCH_SET_RAIN_VOL
  97. dc.w 35
  98. dc.w SWITCH_WAIT
  99. dc.w SWITCH_WAIT
  100. dc.w SWITCH_EXECUTE_CODE
  101. dc.l Add_Big_Rain_Drop
  102. dc.w SWITCH_SET_RAIN_VOL
  103. dc.w 40
  104. dc.w SWITCH_WAIT
  105. dc.w SWITCH_WAIT
  106. dc.w SWITCH_SET_RAIN_VOL
  107. dc.w 45
  108. dc.w SWITCH_WAIT
  109. dc.w SWITCH_EXECUTE_CODE
  110. dc.l Add_Small_Rain_Drop
  111. dc.w SWITCH_WAIT
  112. dc.w SWITCH_WAIT
  113. dc.w SWITCH_SET_RAIN_VOL
  114. dc.w 50
  115. dc.w SWITCH_EXECUTE_CODE
  116. dc.l Add_Small_Rain_Drop
  117. *start raining properly
  118. Full_Rain
  119. dc.w SWITCH_EXECUTE_CODE
  120. dc.l Add_Big_Rain_Drop
  121. dc.w SWITCH_EXECUTE_CODE
  122. dc.l Add_Big_Rain_Drop
  123. dc.w SWITCH_WAIT
  124. dc.w SWITCH_EXECUTE_CODE
  125. dc.l Add_Small_Rain_Drop
  126. dc.w SWITCH_WAIT
  127. dc.w SWITCH_EXECUTE_CODE
  128. dc.l Add_Big_Rain_Drop
  129. dc.w SWITCH_EXECUTE_CODE
  130. dc.l Add_Big_Rain_Drop
  131. dc.w SWITCH_WAIT
  132. dc.w SWITCH_TEST
  133. dc.l WeatherFx
  134. dc.w 0
  135. dc.l Full_Rain
  136. dc.w SWITCH_END
  137. Rain_Script500
  138. *start by spotting
  139. dc.w SWITCH_SET_VAR
  140. dc.l WeatherFx
  141. dc.w 0
  142. dc.w SWITCH_EXECUTE_CODE
  143. dc.l Add_Small_Rain_Drop
  144. dc.w SWITCH_WAIT
  145. dc.w SWITCH_WAIT
  146. dc.w SWITCH_SET_RAIN_VOL
  147. dc.w 5
  148. dc.w SWITCH_WAIT
  149. dc.w SWITCH_WAIT
  150. dc.w SWITCH_SET_RAIN_VOL
  151. dc.w 10
  152. dc.w SWITCH_WAIT
  153. dc.w SWITCH_WAIT
  154. dc.w SWITCH_EXECUTE_CODE
  155. dc.l Add_Small_Rain_Drop
  156. dc.w SWITCH_WAIT
  157. dc.w SWITCH_WAIT
  158. dc.w SWITCH_SET_RAIN_VOL
  159. dc.w 15
  160. dc.w SWITCH_WAIT
  161. dc.w SWITCH_WAIT
  162. dc.w SWITCH_SET_RAIN_VOL
  163. dc.w 20
  164. dc.w SWITCH_WAIT
  165. dc.w SWITCH_EXECUTE_CODE
  166. dc.l Add_Big_Rain_Drop
  167. dc.w SWITCH_WAIT
  168. dc.w SWITCH_WAIT
  169. dc.w SWITCH_SET_RAIN_VOL
  170. dc.w 25
  171. dc.w SWITCH_WAIT
  172. dc.w SWITCH_WAIT
  173. dc.w SWITCH_WAIT
  174. dc.w SWITCH_SET_RAIN_VOL
  175. dc.w 30
  176. dc.w SWITCH_WAIT
  177. dc.w SWITCH_EXECUTE_CODE
  178. dc.l Add_Small_Rain_Drop
  179. dc.w SWITCH_WAIT
  180. dc.w SWITCH_WAIT
  181. dc.w SWITCH_SET_RAIN_VOL
  182. dc.w 40
  183. dc.w SWITCH_WAIT
  184. dc.w SWITCH_WAIT
  185. dc.w SWITCH_EXECUTE_CODE
  186. dc.l Start_Looping_Sample
  187. dc.w SWITCH_EXECUTE_CODE
  188. dc.l Add_Big_Rain_Drop
  189. dc.w SWITCH_WAIT
  190. dc.w SWITCH_SET_RAIN_VOL
  191. dc.w 45
  192. dc.w SWITCH_WAIT
  193. dc.w SWITCH_WAIT
  194. dc.w SWITCH_EXECUTE_CODE
  195. dc.l Add_Small_Rain_Drop
  196. dc.w SWITCH_WAIT
  197. dc.w SWITCH_SET_RAIN_VOL
  198. dc.w 50
  199. dc.w SWITCH_WAIT
  200. dc.w SWITCH_EXECUTE_CODE
  201. dc.l Add_Small_Rain_Drop
  202. *start raining properly
  203. Full_Rain500
  204. dc.w SWITCH_EXECUTE_CODE
  205. dc.l Add_Big_Rain_Drop
  206. dc.w SWITCH_WAIT
  207. dc.w SWITCH_EXECUTE_CODE
  208. dc.l Add_Small_Rain_Drop
  209. dc.w SWITCH_WAIT
  210. dc.w SWITCH_EXECUTE_CODE
  211. dc.l Add_Big_Rain_Drop
  212. dc.w SWITCH_WAIT
  213. dc.w SWITCH_TEST
  214. dc.l WeatherFx
  215. dc.w 0
  216. dc.l Full_Rain500
  217. dc.w SWITCH_END
  218. ThunderStorm
  219. *gradually darken the screen
  220. dc.w SWITCH_SET_VAR
  221. dc.l WeatherFx
  222. dc.w 0
  223. dc.w SWITCH_INSERT_PALETTE
  224. dc.w PALETTE_DIM1
  225. dc.w Switch_Set_Count
  226. dc.w 80
  227. dc.w Switch_Wait
  228. dc.w Switch_Count
  229. dc.w 0
  230. dc.w SWITCH_INSERT_PALETTE
  231. dc.w PALETTE_DIM2
  232. dc.w Switch_Set_Count
  233. dc.w 80
  234. dc.w Switch_Wait
  235. dc.w Switch_Count
  236. dc.w 0
  237. dc.w SWITCH_INSERT_PALETTE
  238. dc.w PALETTE_DIM3
  239. dc.w Switch_Set_Count
  240. dc.w 80
  241. dc.w Switch_Wait
  242. dc.w Switch_Count
  243. dc.w 0
  244. *start by spotting
  245. dc.w SWITCH_EXECUTE_CODE
  246. dc.l Start_Looping_Sample
  247. dc.w SWITCH_EXECUTE_CODE
  248. dc.l Add_Small_Rain_Drop
  249. dc.w SWITCH_WAIT
  250. dc.w SWITCH_WAIT
  251. dc.w SWITCH_SET_RAIN_VOL
  252. dc.w 5
  253. dc.w SWITCH_WAIT
  254. dc.w SWITCH_WAIT
  255. dc.w SWITCH_SET_RAIN_VOL
  256. dc.w 10
  257. dc.w SWITCH_WAIT
  258. dc.w SWITCH_WAIT
  259. dc.w SWITCH_EXECUTE_CODE
  260. dc.l Add_Small_Rain_Drop
  261. dc.w SWITCH_WAIT
  262. dc.w SWITCH_WAIT
  263. dc.w SWITCH_SET_RAIN_VOL
  264. dc.w 15
  265. dc.w SWITCH_WAIT
  266. dc.w SWITCH_WAIT
  267. dc.w SWITCH_SET_RAIN_VOL
  268. dc.w 20
  269. dc.w SWITCH_WAIT
  270. dc.w SWITCH_EXECUTE_CODE
  271. dc.l Add_Big_Rain_Drop
  272. dc.w SWITCH_WAIT
  273. dc.w SWITCH_WAIT
  274. dc.w SWITCH_WAIT
  275. dc.w SWITCH_SET_RAIN_VOL
  276. dc.w 25
  277. dc.w SWITCH_WAIT
  278. dc.w SWITCH_WAIT
  279. dc.w SWITCH_SET_RAIN_VOL
  280. dc.w 30
  281. dc.w SWITCH_WAIT
  282. dc.w SWITCH_EXECUTE_CODE
  283. dc.l Add_Small_Rain_Drop
  284. dc.w SWITCH_WAIT
  285. dc.w SWITCH_WAIT
  286. dc.w SWITCH_SET_RAIN_VOL
  287. dc.w 35
  288. dc.w SWITCH_WAIT
  289. dc.w SWITCH_WAIT
  290. dc.w SWITCH_SET_RAIN_VOL
  291. dc.w 40
  292. dc.w SWITCH_EXECUTE_CODE
  293. dc.l Add_Big_Rain_Drop
  294. dc.w SWITCH_WAIT
  295. dc.w SWITCH_WAIT
  296. dc.w SWITCH_SET_RAIN_VOL
  297. dc.w 45
  298. dc.w SWITCH_WAIT
  299. dc.w SWITCH_EXECUTE_CODE
  300. dc.l Add_Small_Rain_Drop
  301. dc.w SWITCH_WAIT
  302. dc.w SWITCH_WAIT
  303. dc.w SWITCH_SET_RAIN_VOL
  304. dc.w 50
  305. dc.w SWITCH_EXECUTE_CODE
  306. dc.l Add_Small_Rain_Drop
  307. dc.w SWITCH_WAIT
  308. dc.w SWITCH_INSERT_PALETTE
  309. dc.w PALETTE_DIM4
  310. *start raining properly
  311. ThunderStormRepeat
  312. dc.w SWITCH_EXECUTE_CODE
  313. dc.l Add_Big_Rain_Drop
  314. dc.w SWITCH_EXECUTE_CODE
  315. dc.l Add_Big_Rain_Drop
  316. dc.w SWITCH_WAIT
  317. dc.w SWITCH_EXECUTE_CODE
  318. dc.l Add_Small_Rain_Drop
  319. dc.w SWITCH_WAIT
  320. dc.w SWITCH_EXECUTE_CODE
  321. dc.l Add_Big_Rain_Drop
  322. dc.w SWITCH_EXECUTE_CODE
  323. dc.l Add_Big_Rain_Drop
  324. dc.w SWITCH_WAIT
  325. dc.w SWITCH_EXECUTE_CODE
  326. dc.l Random_Flash
  327. dc.w SWITCH_TEST
  328. dc.l WeatherFx
  329. dc.w 0
  330. dc.l ThunderStormRepeat
  331. *stop thunderstorm
  332. dc.w SWITCH_INSERT_PALETTE
  333. dc.w PALETTE_DIM3
  334. dc.w Switch_Set_Count
  335. dc.w 80
  336. dc.w Switch_Wait
  337. dc.w Switch_Count
  338. dc.w 0
  339. dc.w SWITCH_INSERT_PALETTE
  340. dc.w PALETTE_DIM2
  341. dc.w Switch_Set_Count
  342. dc.w 80
  343. dc.w Switch_Wait
  344. dc.w Switch_Count
  345. dc.w 0
  346. dc.w SWITCH_INSERT_PALETTE
  347. dc.w PALETTE_DIM1
  348. dc.w Switch_Set_Count
  349. dc.w 80
  350. dc.w Switch_Wait
  351. dc.w Switch_Count
  352. dc.w 0
  353. dc.w SWITCH_INSERT_PALETTE
  354. dc.w PALETTE_NORMAL
  355. dc.w SWITCH_END
  356. ThunderStorm500
  357. *gradually darken the screen
  358. dc.w SWITCH_SET_VAR
  359. dc.l WeatherFx
  360. dc.w 0
  361. dc.w SWITCH_INSERT_PALETTE
  362. dc.w PALETTE_DIM1
  363. dc.w Switch_Set_Count
  364. dc.w 80
  365. dc.w Switch_Wait
  366. dc.w Switch_Count
  367. dc.w 0
  368. dc.w SWITCH_INSERT_PALETTE
  369. dc.w PALETTE_DIM2
  370. dc.w Switch_Set_Count
  371. dc.w 80
  372. dc.w Switch_Wait
  373. dc.w Switch_Count
  374. dc.w 0
  375. dc.w SWITCH_INSERT_PALETTE
  376. dc.w PALETTE_DIM3
  377. dc.w Switch_Set_Count
  378. dc.w 80
  379. dc.w Switch_Wait
  380. dc.w Switch_Count
  381. dc.w 0
  382. *start by spotting
  383. dc.w SWITCH_EXECUTE_CODE
  384. dc.l Add_Small_Rain_Drop
  385. dc.w SWITCH_WAIT
  386. dc.w SWITCH_WAIT
  387. dc.w SWITCH_SET_RAIN_VOL
  388. dc.w 5
  389. dc.w SWITCH_WAIT
  390. dc.w SWITCH_WAIT
  391. dc.w SWITCH_WAIT
  392. dc.w SWITCH_SET_RAIN_VOL
  393. dc.w 10
  394. dc.w SWITCH_WAIT
  395. dc.w SWITCH_EXECUTE_CODE
  396. dc.l Add_Small_Rain_Drop
  397. dc.w SWITCH_WAIT
  398. dc.w SWITCH_WAIT
  399. dc.w SWITCH_SET_RAIN_VOL
  400. dc.w 15
  401. dc.w SWITCH_WAIT
  402. dc.w SWITCH_WAIT
  403. dc.w SWITCH_SET_RAIN_VOL
  404. dc.w 20
  405. dc.w SWITCH_WAIT
  406. dc.w SWITCH_EXECUTE_CODE
  407. dc.l Add_Big_Rain_Drop
  408. dc.w SWITCH_WAIT
  409. dc.w SWITCH_WAIT
  410. dc.w SWITCH_SET_RAIN_VOL
  411. dc.w 25
  412. dc.w SWITCH_WAIT
  413. dc.w SWITCH_WAIT
  414. dc.w SWITCH_WAIT
  415. dc.w SWITCH_SET_RAIN_VOL
  416. dc.w 30
  417. dc.w SWITCH_WAIT
  418. dc.w SWITCH_EXECUTE_CODE
  419. dc.l Add_Small_Rain_Drop
  420. dc.w SWITCH_WAIT
  421. dc.w SWITCH_WAIT
  422. dc.w SWITCH_SET_RAIN_VOL
  423. dc.w 35
  424. dc.w SWITCH_WAIT
  425. dc.w SWITCH_WAIT
  426. dc.w SWITCH_SET_RAIN_VOL
  427. dc.w 40
  428. dc.w SWITCH_EXECUTE_CODE
  429. dc.l Add_Big_Rain_Drop
  430. dc.w SWITCH_WAIT
  431. dc.w SWITCH_WAIT
  432. dc.w SWITCH_SET_RAIN_VOL
  433. dc.w 45
  434. dc.w SWITCH_WAIT
  435. dc.w SWITCH_EXECUTE_CODE
  436. dc.l Add_Small_Rain_Drop
  437. dc.w SWITCH_WAIT
  438. dc.w SWITCH_WAIT
  439. dc.w SWITCH_EXECUTE_CODE
  440. dc.l Add_Small_Rain_Drop
  441. dc.w SWITCH_WAIT
  442. dc.w SWITCH_SET_RAIN_VOL
  443. dc.w 50
  444. dc.w SWITCH_INSERT_PALETTE
  445. dc.w PALETTE_DIM4
  446. *start raining properly
  447. ThunderStormRepeat500
  448. dc.w SWITCH_EXECUTE_CODE
  449. dc.l Add_Big_Rain_Drop
  450. dc.w SWITCH_WAIT
  451. dc.w SWITCH_EXECUTE_CODE
  452. dc.l Add_Big_Rain_Drop
  453. dc.w SWITCH_WAIT
  454. dc.w SWITCH_EXECUTE_CODE
  455. dc.l Add_Small_Rain_Drop
  456. dc.w SWITCH_WAIT
  457. dc.w SWITCH_WAIT
  458. dc.w SWITCH_EXECUTE_CODE
  459. dc.l Add_Big_Rain_Drop
  460. dc.w SWITCH_WAIT
  461. dc.w SWITCH_EXECUTE_CODE
  462. dc.l Add_Big_Rain_Drop
  463. dc.w SWITCH_WAIT
  464. dc.w SWITCH_EXECUTE_CODE
  465. dc.l Random_Flash
  466. dc.w SWITCH_TEST
  467. dc.l WeatherFx
  468. dc.w 0
  469. dc.l ThunderStormRepeat500
  470. *stop thunderstorm
  471. dc.w SWITCH_INSERT_PALETTE
  472. dc.w PALETTE_DIM3
  473. dc.w Switch_Set_Count
  474. dc.w 80
  475. dc.w Switch_Wait
  476. dc.w Switch_Count
  477. dc.w 0
  478. dc.w SWITCH_INSERT_PALETTE
  479. dc.w PALETTE_DIM2
  480. dc.w Switch_Set_Count
  481. dc.w 80
  482. dc.w Switch_Wait
  483. dc.w Switch_Count
  484. dc.w 0
  485. dc.w SWITCH_INSERT_PALETTE
  486. dc.w PALETTE_DIM1
  487. dc.w Switch_Set_Count
  488. dc.w 80
  489. dc.w Switch_Wait
  490. dc.w Switch_Count
  491. dc.w 0
  492. dc.w SWITCH_INSERT_PALETTE
  493. dc.w PALETTE_NORMAL
  494. dc.w SWITCH_END
  495. Lightning1
  496. dc.w SWITCH_WAIT
  497. dc.w SWITCH_INSERT_PALETTE
  498. dc.w PALETTE_BRIGHT
  499. dc.w SWITCH_WAIT
  500. dc.w SWITCH_INSERT_PALETTE
  501. dc.w PALETTE_DIM4
  502. dc.w SWITCH_WAIT
  503. dc.w SWITCH_EXECUTE_CODE
  504. dc.l Add_Small_Rain_Drop
  505. dc.w SWITCH_WAIT
  506. dc.w SWITCH_EXECUTE_CODE
  507. dc.l Add_Small_Rain_Drop
  508. dc.w SWITCH_WAIT
  509. dc.w SWITCH_WAIT
  510. dc.w SWITCH_EXECUTE_CODE
  511. dc.l Add_Big_Rain_Drop
  512. dc.w SWITCH_INSERT_PALETTE
  513. dc.w PALETTE_BRIGHT
  514. dc.w SWITCH_WAIT
  515. dc.w SWITCH_INSERT_PALETTE
  516. dc.w PALETTE_DIM4
  517. dc.w SWITCH_WAIT
  518. dc.w SWITCH_SOUND_THUN
  519. dc.w SWITCH_JUMP
  520. Lightning1_500
  521. dc.l ThunderStormRepeat
  522. Lightning2
  523. dc.w SWITCH_WAIT
  524. dc.w SWITCH_INSERT_PALETTE
  525. dc.w PALETTE_BRIGHT
  526. dc.w SWITCH_WAIT
  527. dc.w SWITCH_EXECUTE_CODE
  528. dc.l Add_Small_Rain_Drop
  529. dc.w SWITCH_WAIT
  530. dc.w SWITCH_WAIT
  531. dc.w SWITCH_INSERT_PALETTE
  532. dc.w PALETTE_DIM4
  533. dc.w SWITCH_WAIT
  534. dc.w SWITCH_JUMP
  535. Lightning2_500
  536. dc.l ThunderStormRepeat
  537. Lightning3
  538. dc.w SWITCH_WAIT
  539. dc.w SWITCH_INSERT_PALETTE
  540. dc.w PALETTE_DIM2
  541. dc.w SWITCH_WAIT
  542. dc.w SWITCH_INSERT_PALETTE
  543. dc.w PALETTE_NORMAL
  544. dc.w SWITCH_WAIT
  545. dc.w SWITCH_EXECUTE_CODE
  546. dc.l Add_Small_Rain_Drop
  547. dc.w SWITCH_SOUND_THUN
  548. dc.w SWITCH_WAIT
  549. dc.w SWITCH_INSERT_PALETTE
  550. dc.w PALETTE_DIM2
  551. dc.w SWITCH_WAIT
  552. dc.w SWITCH_INSERT_PALETTE
  553. dc.w PALETTE_DIM4
  554. dc.w SWITCH_WAIT
  555. dc.w SWITCH_JUMP
  556. Lightning3_500
  557. dc.l ThunderStormRepeat
  558. SnowStorm
  559. dc.w SWITCH_SET_VAR
  560. dc.l WeatherFx
  561. dc.w 0
  562. dc.w SWITCH_EXECUTE_CODE
  563. dc.l Add_Snow_Flake
  564. dc.w SWITCH_WAIT
  565. dc.w SWITCH_WAIT
  566. dc.w SWITCH_WAIT
  567. dc.w SWITCH_EXECUTE_CODE
  568. dc.l Add_Snow_Flake
  569. dc.w SWITCH_WAIT
  570. dc.w SWITCH_WAIT
  571. dc.w SWITCH_WAIT
  572. dc.w SWITCH_WAIT
  573. dc.w SWITCH_EXECUTE_CODE
  574. dc.l Add_Snow_Flake
  575. dc.w SWITCH_WAIT
  576. dc.w SWITCH_WAIT
  577. dc.w SWITCH_WAIT
  578. dc.w SWITCH_WAIT
  579. SnowStormRepeat
  580. dc.w SWITCH_EXECUTE_CODE
  581. dc.l Add_Snow_Flake
  582. dc.w SWITCH_WAIT
  583. dc.w SWITCH_EXECUTE_CODE
  584. dc.l Add_Snow_Flake2
  585. dc.w SWITCH_WAIT
  586. dc.w SWITCH_WAIT
  587. dc.w SWITCH_EXECUTE_CODE
  588. dc.l Add_Snow_Flake
  589. dc.w SWITCH_WAIT
  590. dc.w SWITCH_EXECUTE_CODE
  591. dc.l Add_Snow_Flake3
  592. dc.w SWITCH_WAIT
  593. dc.w SWITCH_TEST
  594. dc.l WeatherFx
  595. dc.w 0
  596. dc.l SnowStormRepeat
  597. dc.w SWITCH_WAIT
  598. dc.w SWITCH_WAIT
  599. dc.w SWITCH_WAIT
  600. dc.w SWITCH_WAIT
  601. dc.w SWITCH_WAIT
  602. dc.w SWITCH_EXECUTE_CODE
  603. dc.l Add_Snow_Flake
  604. dc.w SWITCH_WAIT
  605. dc.w SWITCH_EXECUTE_CODE
  606. dc.l Add_Snow_Flake2
  607. dc.w SWITCH_END
  608. SnowStorm500
  609. dc.w SWITCH_SET_VAR
  610. dc.l WeatherFx
  611. dc.w 0
  612. dc.w SWITCH_EXECUTE_CODE
  613. dc.l Add_Snow_Flake
  614. dc.w SWITCH_WAIT
  615. dc.w SWITCH_WAIT
  616. dc.w SWITCH_WAIT
  617. dc.w SWITCH_EXECUTE_CODE
  618. dc.l Add_Snow_Flake
  619. dc.w SWITCH_WAIT
  620. dc.w SWITCH_WAIT
  621. dc.w SWITCH_WAIT
  622. dc.w SWITCH_WAIT
  623. dc.w SWITCH_EXECUTE_CODE
  624. dc.l Add_Snow_Flake
  625. dc.w SWITCH_WAIT
  626. dc.w SWITCH_WAIT
  627. dc.w SWITCH_WAIT
  628. dc.w SWITCH_WAIT
  629. SnowStormRepeat500
  630. dc.w SWITCH_EXECUTE_CODE
  631. dc.l Add_Snow_Flake
  632. dc.w SWITCH_WAIT
  633. dc.w SWITCH_WAIT
  634. dc.w SWITCH_EXECUTE_CODE
  635. dc.l Add_Snow_Flake2
  636. dc.w SWITCH_WAIT
  637. dc.w SWITCH_WAIT
  638. dc.w SWITCH_WAIT
  639. dc.w SWITCH_EXECUTE_CODE
  640. dc.l Add_Snow_Flake
  641. dc.w SWITCH_WAIT
  642. dc.w SWITCH_WAIT
  643. dc.w SWITCH_EXECUTE_CODE
  644. dc.l Add_Snow_Flake3
  645. dc.w SWITCH_WAIT
  646. dc.w SWITCH_WAIT
  647. dc.w SWITCH_TEST
  648. dc.l WeatherFx
  649. dc.w 0
  650. dc.l SnowStormRepeat500
  651. dc.w SWITCH_WAIT
  652. dc.w SWITCH_WAIT
  653. dc.w SWITCH_WAIT
  654. dc.w SWITCH_WAIT
  655. dc.w SWITCH_WAIT
  656. dc.w SWITCH_EXECUTE_CODE
  657. dc.l Add_Snow_Flake
  658. dc.w SWITCH_WAIT
  659. dc.w SWITCH_EXECUTE_CODE
  660. dc.l Add_Snow_Flake2
  661. dc.w SWITCH_END
  662. StopStorm
  663. dc.w SWITCH_SET_VAR
  664. dc.l WeatherFx
  665. dc.w 1
  666. dc.w SWITCH_END
  667. WeatherFx
  668. dc.w 0
  669. Spurty
  670. dc.w SWITCH_ADD_ALIEN
  671. Spurt1_X
  672. dc.w (23*16)-4
  673. Spurt1_Y
  674. dc.w (12*16)-42+5
  675. dc.l Gas_Spurt_Object1
  676. dc.w SWITCH_WAIT
  677. dc.w Switch_Set_Count
  678. Spurt_Speed1
  679. dc.w 50
  680. dc.w Switch_Wait
  681. dc.w Switch_Count
  682. dc.w 0
  683. dc.w SWITCH_ADD_ALIEN
  684. Spurt2_X
  685. dc.w (27*16)+4
  686. Spurt2_Y
  687. dc.w (12*16)-42+5
  688. dc.l Gas_Spurt_Object1
  689. dc.w SWITCH_WAIT
  690. dc.w Switch_Set_Count
  691. Spurt_Speed2
  692. dc.w 50
  693. dc.w Switch_Wait
  694. dc.w Switch_Count
  695. dc.w 0
  696. dc.w SWITCH_TEST
  697. dc.l SpurtFlag
  698. dc.w 0
  699. dc.l Spurty
  700. dc.w SWITCH_END
  701. SpurtFlag
  702. dc.w 0
  703. End_Of_Level_Sequence
  704. dc.w SWITCH_INSERT_GEN_PALETTE
  705. End_Of_Level_Repeat
  706. dc.w SWITCH_WAIT
  707. dc.w SWITCH_WAIT
  708. dc.w SWITCH_TEST
  709. dc.l goto_flag
  710. dc.w 1
  711. dc.l End_Of_Level_Repeat
  712. dc.w SWITCH_SET_VAR
  713. dc.l generator_activate
  714. dc.w 1
  715. dc.w SWITCH_END
  716. Level3_Pig_Platforms
  717. dc.w SWITCH_SET_VAR
  718. dc.l Level_Gen_Wave_Counter
  719. dc.w 2
  720. dc.w Switch_Set_Count
  721. dc.w 50
  722. dc.w Switch_Wait
  723. dc.w Switch_Count
  724. dc.w 0
  725. dc.w SWITCH_SET_WAVE
  726. dc.l Level_Gen_Wave_Counter
  727. dc.w (94*16)+4,(7*16)-4
  728. dc.l Fast_Appear_Wave_Pig_Object
  729. dc.w Switch_Set_Count
  730. dc.w 50
  731. dc.w Switch_Wait
  732. dc.w Switch_Count
  733. dc.w 0
  734. dc.w SWITCH_SET_WAVE
  735. dc.l Level_Gen_Wave_Counter
  736. dc.w (99*16)+4,(7*16)-4
  737. dc.l Fast_Appear_Wave_Pig_Object
  738. dc.w SWITCH_WAIT
  739. Level_3_Gen_Pig_Plats
  740. dc.w SWITCH_WAIT
  741. dc.w SWITCH_WAIT
  742. dc.w SWITCH_WAIT
  743. dc.w SWITCH_TEST
  744. dc.l SpurtFlag
  745. dc.w 1
  746. dc.l Level3_Gen_Pp_End
  747. dc.w SWITCH_WAIT
  748. dc.w SWITCH_TEST
  749. dc.l Level_Gen_Wave_Counter
  750. dc.w 0
  751. dc.l Level3_Pig_Platforms
  752. dc.w SWITCH_JUMP
  753. dc.l Level_3_Gen_Pig_Plats
  754. Level3_Gen_Pp_End
  755. dc.w SWITCH_END
  756. Level_Gen_Wave_Counter
  757. dc.w 2
  758. dc.l Level_Gen_Wave_Bonus
  759. Level_Gen_Wave_Bonus
  760. dc.w OBJECT_KILL,0,0
  761. Level5_Pig_Platforms
  762. dc.w SWITCH_SET_VAR
  763. dc.l Level_Gen_Wave_Counter
  764. dc.w 2
  765. dc.w Switch_Set_Count
  766. dc.w 50
  767. dc.w Switch_Wait
  768. dc.w Switch_Count
  769. dc.w 0
  770. dc.w SWITCH_SET_WAVE
  771. dc.l Level_Gen_Wave_Counter
  772. dc.w (151*16)+4,(7*16)-4
  773. dc.l Fast_Appear_Wave_Pig_Object
  774. dc.w Switch_Set_Count
  775. dc.w 50
  776. dc.w Switch_Wait
  777. dc.w Switch_Count
  778. dc.w 0
  779. dc.w SWITCH_SET_WAVE
  780. dc.l Level_Gen_Wave_Counter
  781. dc.w (162*16)+4,(7*16)-4
  782. dc.l Fast_Appear_Wave_Pig_Object
  783. dc.w SWITCH_WAIT
  784. Level_5_Gen_Pig_Plats
  785. dc.w SWITCH_WAIT
  786. dc.w SWITCH_WAIT
  787. dc.w SWITCH_WAIT
  788. dc.w SWITCH_TEST
  789. dc.l SpurtFlag
  790. dc.w 1
  791. dc.l Level5_Gen_Pp_End
  792. dc.w SWITCH_WAIT
  793. dc.w SWITCH_TEST
  794. dc.l Level_Gen_Wave_Counter
  795. dc.w 0
  796. dc.l Level5_Pig_Platforms
  797. dc.w SWITCH_JUMP
  798. dc.l Level_5_Gen_Pig_Plats
  799. Level5_Gen_Pp_End
  800. dc.w SWITCH_END
  801. Level7_Pig_Platforms
  802. dc.w SWITCH_SET_VAR
  803. dc.l Level_Gen_Wave_Counter
  804. dc.w 2
  805. dc.w Switch_Set_Count
  806. dc.w 50
  807. dc.w Switch_Wait
  808. dc.w Switch_Count
  809. dc.w 0
  810. dc.w SWITCH_SET_WAVE
  811. dc.l Level_Gen_Wave_Counter
  812. dc.w (85*16)+4,(45*16)-4
  813. dc.l Fast_Appear_Wave_Pig_Object
  814. dc.w Switch_Set_Count
  815. dc.w 50
  816. dc.w Switch_Wait
  817. dc.w Switch_Count
  818. dc.w 0
  819. dc.w SWITCH_SET_WAVE
  820. dc.l Level_Gen_Wave_Counter
  821. dc.w (98*16)+4,(45*16)-4
  822. dc.l Fast_Appear_Wave_Pig_Object
  823. dc.w SWITCH_WAIT
  824. Level_7_Gen_Pig_Plats
  825. dc.w SWITCH_WAIT
  826. dc.w SWITCH_WAIT
  827. dc.w SWITCH_WAIT
  828. dc.w SWITCH_TEST
  829. dc.l SpurtFlag
  830. dc.w 1
  831. dc.l Level7_Gen_Pp_End
  832. dc.w SWITCH_WAIT
  833. dc.w SWITCH_TEST
  834. dc.l Level_Gen_Wave_Counter
  835. dc.w 0
  836. dc.l Level7_Pig_Platforms
  837. dc.w SWITCH_JUMP
  838. dc.l Level_7_Gen_Pig_Plats
  839. Level7_Gen_Pp_End
  840. dc.w SWITCH_END
  841. Level8_Pig_Platforms
  842. dc.w SWITCH_SET_VAR
  843. dc.l Level_Gen_Wave_Counter
  844. dc.w 2
  845. dc.w Switch_Set_Count
  846. dc.w 60
  847. dc.w Switch_Wait
  848. dc.w Switch_Count
  849. dc.w 0
  850. dc.w SWITCH_SET_WAVE
  851. dc.l Level_Gen_Wave_Counter
  852. dc.w (70*16)+4,(7*16)-4
  853. dc.l Fast_Appear_Wave_Pig_Object
  854. dc.w Switch_Set_Count
  855. dc.w 70
  856. dc.w Switch_Wait
  857. dc.w Switch_Count
  858. dc.w 0
  859. dc.w SWITCH_SET_WAVE
  860. dc.l Level_Gen_Wave_Counter
  861. dc.w (80*16)+4,(7*16)-4
  862. dc.l Fast_Appear_Wave_Pig_Object
  863. dc.w SWITCH_WAIT
  864. Level_8_Gen_Pig_Plats
  865. dc.w SWITCH_WAIT
  866. dc.w SWITCH_WAIT
  867. dc.w SWITCH_WAIT
  868. dc.w SWITCH_TEST
  869. dc.l SpurtFlag
  870. dc.w 1
  871. dc.l Level8_Gen_Pp_End
  872. dc.w SWITCH_WAIT
  873. dc.w SWITCH_TEST
  874. dc.l Level_Gen_Wave_Counter
  875. dc.w 0
  876. dc.l Level8_Pig_Platforms
  877. dc.w SWITCH_JUMP
  878. dc.l Level_8_Gen_Pig_Plats
  879. Level8_Gen_Pp_End
  880. dc.w SWITCH_END
  881. Level4_Bomb_Attack
  882. dc.w Switch_Set_Count
  883. dc.w 50
  884. dc.w Switch_Wait
  885. dc.w Switch_Count
  886. dc.w 0
  887. dc.w SWITCH_TEST
  888. dc.l SpurtFlag
  889. dc.w 1
  890. dc.l Level4_Gen_End
  891. dc.w SWITCH_JUMP_RANDOM
  892. dc.w 2 ;0-2
  893. dc.l Level4_Bomb1
  894. dc.l Level4_Bomb2
  895. dc.l Level4_Bomb3
  896. Level4_Gen_End
  897. dc.w SWITCH_END
  898. Level4_Bomb1
  899. dc.w SWITCH_ADD_ALIEN
  900. dc.w 185*16,25*16
  901. dc.l Bomb_Launch_Object
  902. dc.w SWITCH_WAIT
  903. dc.w SWITCH_JUMP
  904. dc.l Level4_Bomb_Attack
  905. Level4_Bomb2
  906. dc.w SWITCH_ADD_ALIEN
  907. dc.w 191*16,25*16
  908. dc.l Bomb_Launch_Object
  909. dc.w SWITCH_WAIT
  910. dc.w SWITCH_JUMP
  911. dc.l Level4_Bomb_Attack
  912. Level4_Bomb3
  913. dc.w SWITCH_ADD_ALIEN
  914. dc.w 188*16,29*16
  915. dc.l Bomb_Launch_Object
  916. dc.w SWITCH_WAIT
  917. dc.w SWITCH_JUMP
  918. dc.l Level4_Bomb_Attack
  919. Level6_Bomb_Attack
  920. dc.w Switch_Set_Count
  921. dc.w 40
  922. dc.w Switch_Wait
  923. dc.w Switch_Count
  924. dc.w 0
  925. dc.w SWITCH_TEST
  926. dc.l SpurtFlag
  927. dc.w 1
  928. dc.l Level6_Gen_End
  929. dc.w SWITCH_JUMP_RANDOM
  930. dc.w 2 ;0-2
  931. dc.l Level6_Bomb1
  932. dc.l Level6_Bomb2
  933. dc.l Level6_Bomb3
  934. Level6_Gen_End
  935. dc.w SWITCH_END
  936. Level6_Bomb1
  937. dc.w SWITCH_ADD_ALIEN
  938. dc.w 135*16,12*16
  939. dc.l Bomb_Launch_Object
  940. dc.w SWITCH_WAIT
  941. dc.w SWITCH_JUMP
  942. dc.l Level6_Bomb_Attack
  943. Level6_Bomb2
  944. dc.w SWITCH_ADD_ALIEN
  945. dc.w 142*16,12*16
  946. dc.l Bomb_Launch_Object
  947. dc.w SWITCH_WAIT
  948. dc.w SWITCH_JUMP
  949. dc.l Level6_Bomb_Attack
  950. Level6_Bomb3
  951. dc.w SWITCH_ADD_ALIEN
  952. dc.w 148*16,12*16
  953. dc.l Bomb_Launch_Object
  954. dc.w SWITCH_WAIT
  955. dc.w SWITCH_JUMP
  956. dc.l Level6_Bomb_Attack
  957. Level8_Bomb_Attack
  958. dc.w Switch_Set_Count
  959. dc.w 70
  960. dc.w Switch_Wait
  961. dc.w Switch_Count
  962. dc.w 0
  963. dc.w SWITCH_TEST
  964. dc.l SpurtFlag
  965. dc.w 1
  966. dc.l Level8_Gen_End
  967. dc.w SWITCH_ADD_ALIEN
  968. dc.w 75*16,11*16
  969. dc.l Bomb_Launch_Object
  970. dc.w SWITCH_WAIT
  971. dc.w SWITCH_JUMP
  972. dc.l Level8_Bomb_Attack
  973. Level8_Gen_End
  974. dc.w SWITCH_END