dsiver144

Modified Advanced Weather Script for RPG Maker VXA

Jul 3rd, 2017
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 122.91 KB | None | 0 0
  1. #===============================================================================
  2. # VX ACE Port by dsiver144
  3. # Script call: screen.change_weather(type, power, duration)
  4. # New weather type: 55,56,57
  5. # Please put "snow.png" to Pictures folder of your project.
  6. #-------------------------------------------------------------------------------
  7. # MAWS - Modified Advanced Weather Script for RPG Maker VX
  8. # Version: 1.1.
  9. # Based on Advanced Weather Script VX by Ccoa
  10. # Modifications created by Agckuu Coceg
  11. #-------------------------------------------------------------------------------
  12. # Thanks DerWulfman to his help with VX version of script.
  13. #-------------------------------------------------------------------------------
  14. # Weather Types:
  15. # 1 - Rain (Ccoa)
  16. # 2 - Storm (Ccoa)
  17. # 3 - Snow (Ccoa)
  18. # 4 - Hail (Ccoa)
  19. # 5 - Rain with thunder and lightning (Ccoa)
  20. # 6 - Falling brown leaves (Ccoa)
  21. # 7 - Blowing brown leaves (Ccoa)
  22. # 8 - Swirling brown leaves (Ccoa)
  23. # 9 - Falling green leaves (Ccoa)
  24. # 10 - Cherry blossom (sakura) petals (Ccoa)
  25. # 11 - Rose petals (Ccoa)
  26. # 12 - Feathers (Ccoa)
  27. # 13 - Blood rain (Ccoa)
  28. # 14 - Sparkles (Ccoa)
  29. # 15 - User defined
  30. # 16 - Blowing snow (Ccoa)
  31. # 17 - Meteor shower (Ccoa)
  32. # 18 - Falling ash (Ccoa)
  33. # 19 - Bubbles (Ccoa)
  34. # 20 - Bubbles 2 (Ccoa)
  35. # 21 - Sparkles up (Ccoa)
  36. #-------------------------------------------------------------------------------
  37. # Version 1.0 addons
  38. #-------------------------------------------------------------------------------
  39. # Leaves effects:
  40. # 22 - Blowing green leaves (Agckuu Coceg)
  41. # 23 - Swirling green leaves (Agckuu Coceg)
  42. # 24 - Falling yellow leaves (Agckuu Coceg)
  43. # 25 - Blowing yellow leaves (Agckuu Coceg)
  44. # 26 - Swirling yellow leaves (Agckuu Coceg)
  45. # Rain effects:
  46. # 27 - Oil rain (Agckuu Coceg)
  47. # 28 - Golden rain (Agckuu Coceg)
  48. # Special effects:
  49. # 29 - Flame meteor shower (Agckuu Coceg)
  50. #-------------------------------------------------------------------------------
  51. # Version 1.1 addons
  52. #-------------------------------------------------------------------------------
  53. # Starburst effects addons:
  54. # 30 - Color Starburst v.2 (replaced Color Starburst)(Agckuu Coceg)
  55. # 31 - Upper color Starburst v.2 (replaced Uprising color Starburst)
  56. # (Agckuu Coceg)
  57. # 32 - Color Starburst rain v.2 (replaced Color Starburst rain)(Agckuu Coceg)
  58. # 33 - Monochromic starburst (Agckuu Coceg)
  59. # 34 - Uprising monochromic starburst (Agckuu Coceg)
  60. # 35 - Monochromic starburst rain (Agckuu Coceg)
  61. # Rain effects:
  62. # 36 - Golden rain with thunder and lightning (Agckuu Coceg)
  63. # 37 - Golden storm (Agckuu Coceg)
  64. # 38 - Oil storm (Agckuu Coceg)
  65. # 39 - Acid rain (Agckuu Coceg)
  66. # 40 - Acid rain with thunder and lightning (Agckuu Coceg)
  67. # 41 - Acid storm (Agckuu Coceg)
  68. # 42 - Sepia rain (Agckuu Coceg)
  69. # 43 - Sepia rain with thunder and lightning (Agckuu Coceg)
  70. # 44 - Sepia storm (Agckuu Coceg)
  71. # 45 - Realistic storm (Agckuu Coceg)
  72. # 46 - Blood rain with crimson lightning and thunder (Agckuu Coceg)
  73. # 47 - Blood storm (Agckuu Coceg)
  74. # 48 - Blood blizzard (Agckuu Coceg)
  75. # New leaves effects:
  76. # 49 - Falling red maple leaves (Agckuu Coceg)
  77. # 50 - Blowing red mapleleaves (Agckuu Coceg)
  78. # 51 - Swirling red maple leaves (Agckuu Coceg)
  79. # Special effects:
  80. # 52 - Water bombs (Agckuu Coceg)
  81. # 53 - Icy bombs (Agckuu Coceg)
  82. # 54 - Flare bombs (Agckuu Coceg)
  83. # -----------------------------------------------------------------------------
  84. # Port version add-on: dsiver144
  85. # -----------------------------------------------------------------------------
  86. # 55 - Sparkles (Not Fade Out)
  87. # 56 - Snow (Not Fade Out)
  88. # 56 - Diagonal Snow Fall
  89. #-------------------------------------------------------------------------------
  90. # Weather Power:
  91. # An integer from 0-40. 0 = no weather, 40 = 400 sprites
  92. #-------------------------------------------------------------------------------
  93. # Usage:
  94. # Create a call script with the following: screen.weather(type, power, hue)
  95. #-------------------------------------------------------------------------------
  96. # Usage of user-defined weather. Look at the following globals:
  97. $WEATHER_UPDATE = false # the $WEATHER_IMAGES array has changed, please update
  98. $WEATHER_IMAGES = [] # the array of picture names to use
  99. $WEATHER_X = 0 # the number of pixels the image should move horizontally (positive = right, negative = left)
  100. $WEATHER_Y = 0 # the number of pizels the image should move vertically (positive = down, negative = up)
  101. $WEATHER_FADE = 0 # how much the image should fade each update (0 = no fade, 255 = fade instantly)
  102. $WEATHER_ANIMATED = false # whether or not the image should cycle through all the images
  103.  
  104. # Take these out if you are using screen resolution script of Ccoa.
  105. HEIGHT = 416
  106. WIDTH = 544
  107.  
  108. #==============================================================================
  109. # ** Spriteset_Weather
  110. #------------------------------------------------------------------------------
  111.  
  112. class Spriteset_Weather
  113. #--------------------------------------------------------------------------
  114. # * Public Instance Variables
  115. #--------------------------------------------------------------------------
  116. attr_reader :type
  117. attr_reader :power
  118. attr_reader :ox
  119. attr_reader :oy
  120. #--------------------------------------------------------------------------
  121. # * Object Initialization
  122. #--------------------------------------------------------------------------
  123. def initialize(viewport = nil)
  124. @type = 0
  125. @power = 0
  126. @ox = 0
  127. @oy = 0
  128.  
  129. @count = 0
  130. @current_pose = []
  131. @info = []
  132. @countarray = []
  133.  
  134. make_bitmaps
  135.  
  136. @sprites = []
  137.  
  138. for i in 1..500
  139. sprite = Sprite.new(viewport)
  140. sprite.visible = false
  141. sprite.opacity = 0
  142. @sprites.push(sprite)
  143. @current_pose.push(0)
  144. @info.push(rand(50))
  145. @countarray.push(rand(15))
  146. end
  147.  
  148. end
  149. #--------------------------------------------------------------------------
  150. # * Dispose
  151. #--------------------------------------------------------------------------
  152. def dispose
  153. for sprite in @sprites
  154. sprite.dispose
  155. end
  156. @rain_bitmap.dispose
  157. @storm_bitmap.dispose
  158. @snow_bitmap.dispose
  159. @hail_bitmap.dispose
  160. @petal_bitmap.dispose
  161. @blood_rain_bitmap.dispose
  162. @oil_rain_bitmap.dispose
  163. @golden_rain_bitmap.dispose
  164. @golden_storm_bitmap.dispose
  165. @acid_rain_bitmap.dispose
  166. @acid_storm_bitmap.dispose
  167. @sepia_rain_bitmap.dispose
  168. @sepia_storm_bitmap.dispose
  169. @blood_storm_bitmap.dispose
  170. @bloodblizz_bitmap.dispose
  171. for image in @autumn_leaf_bitmaps
  172. image.dispose
  173. end
  174. for image in @green_leaf_bitmaps
  175. image.dispose
  176. end
  177. for image in @yellow_leaf_bitmaps
  178. image.dispose
  179. end
  180. for image in @redmaple_leaf_bitmaps
  181. image.dispose
  182. end
  183. for image in @rose_bitmaps
  184. image.dispose
  185. end if @rose_bitmaps
  186. for image in @feather_bitmaps
  187. image.dispose
  188. end if @feather_bitmaps
  189. for image in @sparkle_bitmaps
  190. image.dispose
  191. end if @sparkle_bitmaps
  192. for image in @flame_meteor_bitmaps
  193. image.dispose
  194. end if @flame_meteor_bitmaps
  195. for image in @waterbomb_bitmaps
  196. image.dispose
  197. end if @waterbomb_bitmaps
  198. for image in @icybomb_bitmaps
  199. image.dispose
  200. end if @icybomb_bitmaps
  201. for image in @flarebomb_bitmaps
  202. image.dispose
  203. end if @flarebomb_bitmaps
  204. for image in @starburst_bitmaps
  205. image.dispose
  206. end if @starburst_bitmaps
  207. for image in @monostarburst_bitmaps
  208. image.dispose
  209. end if @monostarburst_bitmaps
  210. for image in @user_bitmaps
  211. image.dispose
  212. end if @user_bitmaps
  213. $WEATHER_UPDATE = true
  214. end
  215. #--------------------------------------------------------------------------
  216. # * Set weather type
  217. # type : new weather type
  218. #--------------------------------------------------------------------------
  219. def type=(type)
  220. return if @type == type
  221. @type = type
  222. case @type
  223. when 1 # rain
  224. bitmap = @rain_bitmap
  225. when 2 # storm
  226. bitmap = @storm_bitmap
  227. when 3 # snow
  228. bitmap = @snow_bitmap
  229. when 4 # hail
  230. bitmap = @hail_bitmap
  231. when 5 # rain w/ thunder and lightning
  232. bitmap = @rain_bitmap
  233. @thunder = true
  234. when 6 # falling autumn leaves
  235. bitmap = @autumn_leaf_bitmaps[0]
  236. when 7 # blowing autumn leaves
  237. bitmap = @autumn_leaf_bitmaps[0]
  238. when 8 # swirling autumn leaves
  239. bitmap = @autumn_leaf_bitmaps[0]
  240. when 9 # falling green leaves
  241. bitmap = @green_leaf_bitmaps[0]
  242. when 10 # sakura petals
  243. bitmap = @petal_bitmap
  244. when 11 # rose petals
  245. bitmap = @rose_bitmaps[0]
  246. when 12 # feathers
  247. bitmap = @feather_bitmaps[0]
  248. when 13 # blood rain
  249. bitmap = @blood_rain_bitmap
  250. when 14 # sparkles
  251. bitmap = @sparkle_bitmaps[0]
  252. when 15 # user-defined
  253. bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  254. when 16 # blowing snow
  255. bitmap = @snow_bitmap
  256. when 17 # meteors
  257. bitmap = @meteor_bitmap
  258. when 18 # falling ash
  259. bitmap = @ash_bitmaps[rand(@ash_bitmaps.size)]
  260. when 19 # bubbles
  261. bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  262. when 21 # sparkles up
  263. bitmap = @sparkle_bitmaps[0]
  264. when 22 # blowing green leaves
  265. bitmap = @green_leaf_bitmaps[0]
  266. when 23 # swirling green leaves
  267. bitmap = @green_leaf_bitmaps[0]
  268. when 24 # falling yellow leaves
  269. bitmap = @yellow_leaf_bitmaps[0]
  270. when 25 # blowing yellow leaves
  271. bitmap = @yellow_leaf_bitmaps[0]
  272. when 26 # swirling yellow leaves
  273. bitmap = @yellow_leaf_bitmaps[0]
  274. when 27 # oil rain
  275. bitmap = @oil_rain_bitmap
  276. when 28 # golden rain
  277. bitmap = @golden_rain_bitmap
  278. when 29 # flame meteors
  279. bitmap = @flame_meteor_bitmap
  280. when 30 # starburst
  281. bitmap = @starburst_bitmaps[0]
  282. when 31 # uprising starburst
  283. bitmap = @starburst_bitmaps[0]
  284. when 32 # starburst rain
  285. bitmap = @starburst_bitmaps[0]
  286. when 33 # mono-starburst
  287. bitmap = @monostarburst_bitmaps[0]
  288. when 34 # uprising mono-starburst
  289. bitmap = @monostarburst_bitmaps[0]
  290. when 35 # mono-starburst rain
  291. bitmap = @monostarburst_bitmaps[0]
  292. when 36 # Golden rain w\ thunder and ligthning
  293. bitmap = @golden_rain_bitmap
  294. @golden_thunder = true
  295. when 37 # Golden storm
  296. bitmap = @golden_storm_bitmap
  297. when 38 # Oil storm
  298. bitmap = @oil_storm_bitmap
  299. when 39 # # Acid rain
  300. bitmap = @acid_rain_bitmap
  301. when 40 # Acid rain w\thunder and lightning
  302. bitmap = @acid_rain_bitmap
  303. @acid_thunder = true
  304. when 41 # Acid storm
  305. bitmap = @acid_storm_bitmap
  306. when 42 # Sepia rain
  307. bitmap = @sepia_rain_bitmap
  308. when 43 # Sepia rain w\ thunder and lightning
  309. bitmap = @sepia_rain_bitmap
  310. @sepia_thunder = true
  311. when 44 # Sepia storm
  312. bitmap = @sepia_storm_bitmap
  313. when 45 # Realistic storm
  314. bitmap = @storm_bitmap
  315. @real_storm = true
  316. when 46 # Blood rain w\ thunder and lightning
  317. bitmap = @blood_rain_bitmap
  318. @crimson_thunder = true
  319. when 47 # Blood storm
  320. bitmap = @blood_storm_bitmap
  321. when 48 # Blood blizzard
  322. bitmap = @bloodblizz_bitmap
  323. when 49 # Falling red maple leaves
  324. bitmap = @redmaple_leaf_bitmaps[0]
  325. when 50 # Blowing red maple leaves
  326. bitmap = @redmaple_leaf_bitmaps[0]
  327. when 51 # Swirling red maple leaves
  328. bitmap = @redmaple_leaf_bitmaps[0]
  329. when 52
  330. bitmap = @waterbomb_bitmaps
  331. when 53
  332. bitmap = @icybomb_bitmaps
  333. when 54
  334. bitmap = @flarebomb_bitmaps
  335. when 55 # sparkles no fade
  336. bitmap = @sparkle_bitmaps[0]
  337. when 56,57
  338. bitmap = Cache.picture("snow")
  339. else
  340. bitmap = nil
  341. end
  342.  
  343. if @type != 5
  344. @thunder = false
  345. end
  346.  
  347. if @type != 36
  348. @golden_thunder = false
  349. end
  350.  
  351. if @type != 40
  352. @acid_thunder = false
  353. end
  354.  
  355. if @type != 43
  356. @sepia_thunder = false
  357. end
  358.  
  359. if @type != 45
  360. @real_storm = false
  361. end
  362.  
  363. if @type != 46
  364. @crimson_thunder = false
  365. end
  366.  
  367. sprite = @sprites[i]
  368. sprite.visible = (i <= @power)
  369. if @type == 19
  370. sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  371. elsif @type == 20
  372. sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  373. elsif @type == 3
  374. r = rand(@snow_bitmaps.size)
  375. @info[i] = r
  376. sprite.bitmap = @snow_bitmaps[r]
  377. else
  378. sprite.bitmap = bitmap
  379. end
  380. end
  381. end
  382. #--------------------------------------------------------------------------
  383. # * Set starting point X coordinate
  384. # ox : starting point X coordinate
  385. #--------------------------------------------------------------------------
  386. def ox=(ox)
  387. return if @ox == ox;
  388. @ox = ox
  389. for sprite in @sprites
  390. sprite.ox = @ox
  391. end
  392. end
  393. #--------------------------------------------------------------------------
  394. # * Set starting point Y coordinate
  395. # oy : starting point Y coordinate
  396. #--------------------------------------------------------------------------
  397. def oy=(oy)
  398. return if @oy == oy;
  399. @oy = oy
  400. for sprite in @sprites
  401. sprite.oy = @oy
  402. end
  403. end
  404. #--------------------------------------------------------------------------
  405. # * Set maximum number of sprites
  406. # max : maximum number of sprites
  407. #--------------------------------------------------------------------------
  408. def power=(max)
  409. return if @power == max;
  410. @power = [[max, 0].max, 40].min
  411. for i in 1..40
  412. sprite = @sprites[i]
  413. sprite.visible = (i <= @power) if sprite != nil
  414. if @type == 19
  415. sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  416. elsif @type == 20
  417. sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  418. elsif @type == 3
  419. r = rand(@snow_bitmaps.size)
  420. @info[i] = r
  421. sprite.bitmap = @snow_bitmaps[r]
  422. elsif @type == 56
  423. r = 1 + rand(2)
  424. @info[i] = r
  425. elsif @type == 57
  426. r = 1 + rand(2)
  427. @info[i] = r
  428. end
  429. end
  430. end
  431. #--------------------------------------------------------------------------
  432. # * Frame Update
  433. #--------------------------------------------------------------------------
  434. def update
  435. return if @type == 0
  436. for i in 1..@power
  437. sprite = @sprites[i]
  438. if @type == 55 # sparkles
  439. if @countarray[i] == 0
  440. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  441. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  442. end
  443. @countarray[i] = (@countarray[i] + 1) % 15
  444. sprite.y += 1
  445. end
  446. if @type == 56 # snow
  447. sprite.y += @info[i]
  448. end
  449. if @type == 57 # snow
  450. sprite.y += @info[i]
  451. sprite.x += 1
  452. if @countarray[i] == 0
  453. speed = 1
  454. sprite.x += rand(4) > 2? speed : -speed
  455. end
  456. @countarray[i] = (@countarray[i] + 1) % 30
  457. end
  458. if @type == 1 or @type == 5 or @type == 13 or @type == 27 or @type == 28 or @type == 36 or @type == 39 or @type == 40 or @type == 42 or @type == 43 or @type == 46 #rain
  459. if sprite.opacity <= 150
  460. if @current_pose[i] == 0
  461. sprite.y += @rain_bitmap.height
  462. sprite.x -= @rain_bitmap.width
  463. if @type == 1 or @type == 5
  464. sprite.bitmap = @rain_splash
  465. else
  466. sprite.bitmap = @blood_rain_splash
  467. end
  468. if @type == 27
  469. sprite.bitmap = @oil_rain_splash
  470. end
  471. if @type == 28
  472. sprite.bitmap = @golden_rain_splash
  473. end
  474. if @type == 36
  475. sprite.bitmap = @golden_rain_splash
  476. end
  477. if @type == 39
  478. sprite.bitmap = @acid_rain_splash
  479. end
  480. if @type == 40
  481. sprite.bitmap = @acid_rain_splash
  482. end
  483. if @type == 42
  484. sprite.bitmap = @sepia_rain_splash
  485. end
  486. if @type == 43
  487. sprite.bitmap = @sepia_rain_splash
  488. end
  489. if @type == 46
  490. sprite.bitmap = @blood_rain_splash
  491. end
  492. @current_pose[i] = 1
  493. end
  494. else
  495. if @current_pose[i] == 1
  496. if @type == 1 or @type == 5
  497. sprite.bitmap = @rain_bitmap
  498. else
  499. sprite.bitmap = @blood_rain_bitmap
  500. end
  501. if @type == 27
  502. sprite.bitmap = @oil_rain_bitmap
  503. end
  504. if @type == 28
  505. sprite.bitmap = @golden_rain_bitmap
  506. end
  507. if @type == 36
  508. sprite.bitmap = @golden_rain_bitmap
  509. end
  510. if @type == 39
  511. sprite.bitmap = @acid_rain_bitmap
  512. end
  513. if @type == 40
  514. sprite.bitmap = @acid_rain_bitmap
  515. end
  516. if @type == 42
  517. sprite.bitmap = @sepia_rain_bitmap
  518. end
  519. if @type == 43
  520. sprite.bitmap = @sepia_rain_bitmap
  521. end
  522. if @type == 46
  523. sprite.bitmap = @blood_rain_bitmap
  524. end
  525. @current_pose[i] = 0
  526. end
  527. sprite.x -= 2
  528. sprite.y += 16
  529. if @thunder and (rand(8000 - @power) == 0)
  530. $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  531. Audio.se_play("Audio/SE/Thunder1")
  532. end
  533. if @golden_thunder and (rand(8000 - @power) == 0)
  534. $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  535. Audio.se_play("Audio/SE/Thunder1")
  536. end
  537. if @acid_thunder and (rand(5000 - @power) == 0)
  538. $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  539. Audio.se_play("Audio/SE/Thunder1")
  540. end
  541. if @sepia_thunder and (rand(8000 - @power) == 0)
  542. $game_map.screen.start_flash(Color.new(169, 152, 142, 255), 5)
  543. Audio.se_play("Audio/SE/Thunder1")
  544. end
  545. if @sepia_thunder and (rand(8000 - @power) == 0)
  546. $game_map.screen.start_flash(Color.new(169, 152, 142, 255), 5)
  547. Audio.se_play("Audio/SE/Thunder1")
  548. end
  549. if @crimson_thunder and (rand(8000 - @power) == 0)
  550. $game_map.screen.start_flash(Color.new(141, 9, 9, 255), 5)
  551. Audio.se_play("Audio/SE/Thunder1")
  552. end
  553. end
  554. sprite.opacity -= 8
  555. end
  556. if @type == 2 or @type == 37 or @type == 38 or @type == 41 or @type == 44 or @type == 45 or @type == 47 # storm
  557. sprite.x -= 8
  558. sprite.y += 16
  559. sprite.opacity -= 12
  560. end
  561. if @real_storm and (rand(5000 - @power) == 0)
  562. $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  563. $game_map.screen.start_shake(9, 4, 5)
  564. Audio.se_play("Audio/SE/Thunder9")
  565. end
  566. if @type == 3 # snow
  567. case @info[i]
  568. when 0 # smallest flake, fall the slowest
  569. sprite.y += 1
  570. when 1
  571. sprite.y += 3
  572. when 2
  573. sprite.y += 5
  574. when 3
  575. sprite.y += 7
  576. end
  577. sprite.opacity -= 3
  578. end
  579. if @type == 4 # hail
  580. sprite.x -= 1
  581. sprite.y += 18
  582. sprite.opacity -= 15
  583. end
  584. if @type == 6 # falling autumn leaves
  585. @count = rand(20)
  586. if @count == 0
  587. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  588. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  589. end
  590. sprite.x -= 1
  591. sprite.y += 1
  592. end
  593. if @type == 7 # blowing autumn leaves
  594. @count = rand(20)
  595. if @count == 0
  596. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  597. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  598. end
  599. sprite.x -= 10
  600. sprite.y += (rand(4) - 2)
  601. end
  602. if @type == 8 # swirling autumn leaves
  603. @count = rand(20)
  604. if @count == 0
  605. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  606. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  607. end
  608. if @info[i] != 0
  609. if @info[i] >= 1 and @info[i] <= 10
  610. sprite.x -= 3
  611. sprite.y -= 1
  612. elsif @info[i] >= 11 and @info[i] <= 16
  613. sprite.x -= 1
  614. sprite.y -= 2
  615. elsif @info[i] >= 17 and @info[i] <= 20
  616. sprite.y -= 3
  617. elsif @info[i] >= 21 and @info[i] <= 30
  618. sprite.y -= 2
  619. sprite.x += 1
  620. elsif @info[i] >= 31 and @info[i] <= 36
  621. sprite.y -= 1
  622. sprite.x += 3
  623. elsif @info[i] >= 37 and @info[i] <= 40
  624. sprite.x += 5
  625. elsif @info[i] >= 41 and @info[i] <= 46
  626. sprite.y += 1
  627. sprite.x += 3
  628. elsif @info[i] >= 47 and @info[i] <= 58
  629. sprite.y += 2
  630. sprite.x += 1
  631. elsif @info[i] >= 59 and @info[i] <= 64
  632. sprite.y += 3
  633. elsif @info[i] >= 65 and @info[i] <= 70
  634. sprite.x -= 1
  635. sprite.y += 2
  636. elsif @info[i] >= 71 and @info[i] <= 81
  637. sprite.x -= 3
  638. sprite.y += 1
  639. elsif @info[i] >= 82 and @info[i] <= 87
  640. sprite.x -= 5
  641. end
  642. @info[i] = (@info[i] + 1) % 88
  643. else
  644. if rand(200) == 0
  645. @info[i] = 1
  646. end
  647. sprite.x -= 5
  648. sprite.y += 1
  649. end
  650. end
  651. if @type == 49 # falling red maple leaves
  652. @count = rand(20)
  653. if @count == 0
  654. sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  655. @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  656. end
  657. sprite.x -= 1
  658. sprite.y += 1
  659. end
  660. if @type == 50 # blowing red maple leaves
  661. @count = rand(20)
  662. if @count == 0
  663. sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  664. @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  665. end
  666. sprite.x -= 10
  667. sprite.y += (rand(4) - 2)
  668. end
  669. if @type == 51 # swirling red maple leaves
  670. @count = rand(20)
  671. if @count == 0
  672. sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  673. @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  674. end
  675. if @info[i] != 0
  676. if @info[i] >= 1 and @info[i] <= 10
  677. sprite.x -= 3
  678. sprite.y -= 1
  679. elsif @info[i] >= 11 and @info[i] <= 16
  680. sprite.x -= 1
  681. sprite.y -= 2
  682. elsif @info[i] >= 17 and @info[i] <= 20
  683. sprite.y -= 3
  684. elsif @info[i] >= 21 and @info[i] <= 30
  685. sprite.y -= 2
  686. sprite.x += 1
  687. elsif @info[i] >= 31 and @info[i] <= 36
  688. sprite.y -= 1
  689. sprite.x += 3
  690. elsif @info[i] >= 37 and @info[i] <= 40
  691. sprite.x += 5
  692. elsif @info[i] >= 41 and @info[i] <= 46
  693. sprite.y += 1
  694. sprite.x += 3
  695. elsif @info[i] >= 47 and @info[i] <= 58
  696. sprite.y += 2
  697. sprite.x += 1
  698. elsif @info[i] >= 59 and @info[i] <= 64
  699. sprite.y += 3
  700. elsif @info[i] >= 65 and @info[i] <= 70
  701. sprite.x -= 1
  702. sprite.y += 2
  703. elsif @info[i] >= 71 and @info[i] <= 81
  704. sprite.x -= 3
  705. sprite.y += 1
  706. elsif @info[i] >= 82 and @info[i] <= 87
  707. sprite.x -= 5
  708. end
  709. @info[i] = (@info[i] + 1) % 88
  710. else
  711. if rand(200) == 0
  712. @info[i] = 1
  713. end
  714. sprite.x -= 5
  715. sprite.y += 1
  716. end
  717. end
  718. if @type == 9 # falling green leaves
  719. if @countarray[i] == 0
  720. @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  721. sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  722. @countarray[i] = rand(15)
  723. end
  724. @countarray[i] = (@countarray[i] + 1) % 15
  725. sprite.y += 1
  726. end
  727. if @type == 10 # sakura petals
  728. if @info[i] < 25
  729. sprite.x -= 1
  730. else
  731. sprite.x += 1
  732. end
  733. @info[i] = (@info[i] + 1) % 50
  734. sprite.y += 1
  735. end
  736. if @type == 11 # rose petals
  737. @count = rand(20)
  738. if @count == 0
  739. sprite.bitmap = @rose_bitmaps[@current_pose[i]]
  740. @current_pose[i] = (@current_pose[i] + 1) % @rose_bitmaps.size
  741. end
  742. if @info[i] % 2 == 0
  743. if @info[i] < 10
  744. sprite.x -= 1
  745. elsif
  746. sprite.x += 1
  747. end
  748. end
  749. sprite.y += 1
  750. end
  751. if @type == 12 # feathers
  752. if @countarray[i] == 0
  753. @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  754. sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  755. end
  756. @countarray[i] = (@countarray[i] + 1) % 15
  757. if rand(100) == 0
  758. sprite.x -= 1
  759. end
  760. if rand(100) == 0
  761. sprite.y -= 1
  762. end
  763. if @info[i] < 50
  764. if rand(2) == 0
  765. sprite.x -= 1
  766. else
  767. sprite.y -= 1
  768. end
  769. else
  770. if rand(2) == 0
  771. sprite.x += 1
  772. else
  773. sprite.y += 1
  774. end
  775. end
  776. @info[i] = (@info[i] + 1) % 100
  777. end
  778.  
  779. if @type == 30 # starburst
  780. if @countarray[i] == 0
  781. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  782. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  783. end
  784. @countarray[i] = (@countarray[i] + 1) % 15
  785. sprite.y += 1
  786. sprite.opacity -= 1
  787. end
  788. if @type == 31 # starburst up
  789. if @countarray[i] == 0
  790. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  791. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  792. end
  793. @countarray[i] = (@countarray[i] + 1) % 15
  794. sprite.y -= 1
  795. sprite.opacity -= 1
  796. end
  797. if @type == 32 # starburst up
  798. if @countarray[i] == 0
  799. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  800. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  801. end
  802. @countarray[i] = (@countarray[i] + 1) % 15
  803. sprite.x -= 2
  804. sprite.y += 8
  805. sprite.opacity -= 1
  806. end
  807.  
  808. if @type == 33 # mono-starburst
  809. if @countarray[i] == 0
  810. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  811. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  812. end
  813. @countarray[i] = (@countarray[i] + 1) % 15
  814. sprite.y += 1
  815. sprite.opacity -= 1
  816. end
  817. if @type == 34 # mono-starburst up
  818. if @countarray[i] == 0
  819. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  820. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  821. end
  822. @countarray[i] = (@countarray[i] + 1) % 15
  823. sprite.y -= 1
  824. sprite.opacity -= 1
  825. end
  826. if @type == 35 # mono-starburst rain
  827. if @countarray[i] == 0
  828. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  829. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  830. end
  831. @countarray[i] = (@countarray[i] + 1) % 15
  832. sprite.x -= 2
  833. sprite.y += 8
  834. sprite.opacity -= 1
  835. end
  836. if @type == 29 # meteors
  837. if @countarray[i] > 0
  838. if rand(20) == 0
  839. sprite.bitmap = @flame_impact_bitmap
  840. @countarray[i] = -5
  841. else
  842. sprite.x -= 6
  843. sprite.y += 10
  844. end
  845. else
  846. @countarray[i] += 1
  847. if @countarray[i] == 0
  848. sprite.bitmap = @flame_meteor_bitmap
  849. sprite.opacity = 0
  850. @count_array = 1
  851. end
  852. end
  853. end
  854. if @type == 18 # ash
  855. sprite.y += 2
  856. case @countarray[i] % 3
  857. when 0
  858. sprite.x -= 1
  859. when 1
  860. sprite.x += 1
  861. end
  862. end
  863.  
  864. if @type == 14 # sparkles
  865. if @countarray[i] == 0
  866. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  867. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  868. end
  869. @countarray[i] = (@countarray[i] + 1) % 15
  870. sprite.y += 1
  871. sprite.opacity -= 1
  872. end
  873. if @type == 15 # user-defined
  874. if $WEATHER_UPDATE
  875. update_user_defined
  876. $WEATHER_UPDATE = false
  877. end
  878. if $WEATHER_ANIMATED and @countarray[i] == 0
  879. @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  880. sprite.bitmap = @user_bitmaps[@current_pose[i]]
  881. end
  882. sprite.x += $WEATHER_X
  883. sprite.y += $WEATHER_Y
  884. sprite.opacity -= $WEATHER_FADE
  885. end
  886. if @type == 16 # blowing snow
  887. sprite.x -= 10
  888. sprite.y += 6
  889. sprite.opacity -= 4
  890. end
  891. if @type == 48 # blood blizzard
  892. sprite.x -= 10
  893. sprite.y += 6
  894. sprite.opacity -= 4
  895. end
  896. if @type == 52 # water bombs
  897. if @countarray[i] > 0
  898. if rand(20) == 0
  899. sprite.bitmap = @waterbomb_impact_bitmap
  900. @countarray[i] = -5
  901. else
  902. sprite.x -= 3
  903. sprite.y += 5
  904. end
  905. else
  906. @countarray[i] += 1
  907. if @countarray[i] == 0
  908. sprite.bitmap = @waterbomb_bitmap
  909. sprite.opacity = 0
  910. @count_array = 1
  911. end
  912. end
  913. end
  914. if @type == 53 # icy bombs
  915. if @countarray[i] > 0
  916. if rand(20) == 0
  917. sprite.bitmap = @icybomb_impact_bitmap
  918. @countarray[i] = -5
  919. else
  920. sprite.x -= 3
  921. sprite.y += 5
  922. end
  923. else
  924. @countarray[i] += 1
  925. if @countarray[i] == 0
  926. sprite.bitmap = @icybomb_bitmap
  927. sprite.opacity = 0
  928. @count_array = 1
  929. end
  930. end
  931. end
  932. if @type == 54 # flare bombs
  933. if @countarray[i] > 0
  934. if rand(20) == 0
  935. sprite.bitmap = @flarebomb_impact_bitmap
  936. @countarray[i] = -5
  937. else
  938. sprite.x -= 3
  939. sprite.y += 5
  940. end
  941. else
  942. @countarray[i] += 1
  943. if @countarray[i] == 0
  944. sprite.bitmap = @flarebomb_bitmap
  945. sprite.opacity = 0
  946. @count_array = 1
  947. end
  948. end
  949. end
  950. if @type == 17 # meteors
  951. if @countarray[i] > 0
  952. if rand(20) == 0
  953. sprite.bitmap = @impact_bitmap
  954. @countarray[i] = -5
  955. else
  956. sprite.x -= 6
  957. sprite.y += 10
  958. end
  959. else
  960. @countarray[i] += 1
  961. if @countarray[i] == 0
  962. sprite.bitmap = @meteor_bitmap
  963. sprite.opacity = 0
  964. @count_array = 1
  965. end
  966. end
  967. end
  968. if @type == 18 # ash
  969. sprite.y += 2
  970. case @countarray[i] % 3
  971. when 0
  972. sprite.x -= 1
  973. when 1
  974. sprite.x += 1
  975. end
  976. end
  977. if @type == 19 or @type == 20 # bubbles
  978. switch = rand(75) + rand(75) + 1
  979. if @info[i] < switch / 2
  980. sprite.x -= 1
  981. else
  982. sprite.x += 1
  983. end
  984. @info[i] = (@info[i] + 1) % switch
  985. sprite.y -= 1
  986. if switch % 2 == 0
  987. sprite.opacity -= 1
  988. end
  989. end
  990. if @type == 21 # sparkles up
  991. if @countarray[i] == 0
  992. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  993. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  994. end
  995. @countarray[i] = (@countarray[i] + 1) % 15
  996. sprite.y -= 1
  997. sprite.opacity -= 1
  998. end
  999. if @type == 24 # falling yellow leaves
  1000. @count = rand(20)
  1001. if @count == 0
  1002. sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1003. @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1004. end
  1005. sprite.x -= 1
  1006. sprite.y += 1
  1007. end
  1008. if @type == 22 # blowing green leaves
  1009. @count = rand(20)
  1010. if @count == 0
  1011. sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  1012. @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  1013. end
  1014. sprite.x -= 10
  1015. sprite.y += (rand(4) - 2)
  1016. end
  1017. if @type == 23 # swirling green leaves
  1018. @count = rand(20)
  1019. if @count == 0
  1020. sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  1021. @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  1022. end
  1023. if @info[i] != 0
  1024. if @info[i] >= 1 and @info[i] <= 10
  1025. sprite.x -= 3
  1026. sprite.y -= 1
  1027. elsif @info[i] >= 11 and @info[i] <= 16
  1028. sprite.x -= 1
  1029. sprite.y -= 2
  1030. elsif @info[i] >= 17 and @info[i] <= 20
  1031. sprite.y -= 3
  1032. elsif @info[i] >= 21 and @info[i] <= 30
  1033. sprite.y -= 2
  1034. sprite.x += 1
  1035. elsif @info[i] >= 31 and @info[i] <= 36
  1036. sprite.y -= 1
  1037. sprite.x += 3
  1038. elsif @info[i] >= 37 and @info[i] <= 40
  1039. sprite.x += 5
  1040. elsif @info[i] >= 41 and @info[i] <= 46
  1041. sprite.y += 1
  1042. sprite.x += 3
  1043. elsif @info[i] >= 47 and @info[i] <= 58
  1044. sprite.y += 2
  1045. sprite.x += 1
  1046. elsif @info[i] >= 59 and @info[i] <= 64
  1047. sprite.y += 3
  1048. elsif @info[i] >= 65 and @info[i] <= 70
  1049. sprite.x -= 1
  1050. sprite.y += 2
  1051. elsif @info[i] >= 71 and @info[i] <= 81
  1052. sprite.x -= 3
  1053. sprite.y += 1
  1054. elsif @info[i] >= 82 and @info[i] <= 87
  1055. sprite.x -= 5
  1056. end
  1057. @info[i] = (@info[i] + 1) % 88
  1058. else
  1059. if rand(200) == 0
  1060. @info[i] = 1
  1061. end
  1062. sprite.x -= 5
  1063. sprite.y += 1
  1064. end
  1065. end
  1066. if @type == 24 # falling yellow leaves
  1067. @count = rand(20)
  1068. if @count == 0
  1069. sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1070. @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1071. end
  1072. sprite.x -= 1
  1073. sprite.y += 1
  1074. end
  1075. if @type == 25 # blowing yellow leaves
  1076. @count = rand(20)
  1077. if @count == 0
  1078. sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1079. @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1080. end
  1081. sprite.x -= 10
  1082. sprite.y += (rand(4) - 2)
  1083. end
  1084. if @type == 26 # swirling yellow leaves
  1085. @count = rand(20)
  1086. if @count == 0
  1087. sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1088. @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1089. end
  1090. if @info[i] != 0
  1091. if @info[i] >= 1 and @info[i] <= 10
  1092. sprite.x -= 3
  1093. sprite.y -= 1
  1094. elsif @info[i] >= 11 and @info[i] <= 16
  1095. sprite.x -= 1
  1096. sprite.y -= 2
  1097. elsif @info[i] >= 17 and @info[i] <= 20
  1098. sprite.y -= 3
  1099. elsif @info[i] >= 21 and @info[i] <= 30
  1100. sprite.y -= 2
  1101. sprite.x += 1
  1102. elsif @info[i] >= 31 and @info[i] <= 36
  1103. sprite.y -= 1
  1104. sprite.x += 3
  1105. elsif @info[i] >= 37 and @info[i] <= 40
  1106. sprite.x += 5
  1107. elsif @info[i] >= 41 and @info[i] <= 46
  1108. sprite.y += 1
  1109. sprite.x += 3
  1110. elsif @info[i] >= 47 and @info[i] <= 58
  1111. sprite.y += 2
  1112. sprite.x += 1
  1113. elsif @info[i] >= 59 and @info[i] <= 64
  1114. sprite.y += 3
  1115. elsif @info[i] >= 65 and @info[i] <= 70
  1116. sprite.x -= 1
  1117. sprite.y += 2
  1118. elsif @info[i] >= 71 and @info[i] <= 81
  1119. sprite.x -= 3
  1120. sprite.y += 1
  1121. elsif @info[i] >= 82 and @info[i] <= 87
  1122. sprite.x -= 5
  1123. end
  1124. @info[i] = (@info[i] + 1) % 88
  1125. else
  1126. if rand(200) == 0
  1127. @info[i] = 1
  1128. end
  1129. sprite.x -= 5
  1130. sprite.y += 1
  1131. end
  1132. end
  1133.  
  1134. x = sprite.x - @ox
  1135. y = sprite.y - @oy
  1136. if sprite.opacity < 64 or x < -50 or x > 750 or y < -300 or y > 500
  1137. sprite.x = rand(800) - 50 + @ox
  1138. sprite.y = rand(800) - 200 + @oy
  1139. sprite.opacity = 255
  1140. end
  1141. end
  1142. end
  1143. #-------------------------------------------------------------------------------
  1144. def make_bitmaps
  1145. color1 = Color.new(255, 255, 255, 255)
  1146. color2 = Color.new(255, 255, 255, 128)
  1147. @rain_bitmap = Bitmap.new(7, 56)
  1148. for i in 0..6
  1149. @rain_bitmap.fill_rect(6-i, i*8, 1, 8, color1)
  1150. end
  1151. @rain_splash = Bitmap.new(8, 5)
  1152. @rain_splash.fill_rect(1, 0, 6, 1, color2)
  1153. @rain_splash.fill_rect(1, 4, 6, 1, color2)
  1154. @rain_splash.fill_rect(0, 1, 1, 3, color2)
  1155. @rain_splash.fill_rect(7, 1, 1, 3, color2)
  1156. @rain_splash.set_pixel(1, 0, color1)
  1157. @rain_splash.set_pixel(0, 1, color1)
  1158. #-------------------------------------------------------------------------------
  1159. @storm_bitmap = Bitmap.new(34, 64)
  1160. for i in 0..31
  1161. @storm_bitmap.fill_rect(33-i, i*2, 1, 2, color2)
  1162. @storm_bitmap.fill_rect(32-i, i*2, 1, 2, color1)
  1163. @storm_bitmap.fill_rect(31-i, i*2, 1, 2, color2)
  1164. end
  1165. #-------------------------------------------------------------------------------
  1166. @snow_bitmap = Bitmap.new(6, 6)
  1167. @snow_bitmap.fill_rect(0, 1, 6, 4, color2)
  1168. @snow_bitmap.fill_rect(1, 0, 4, 6, color2)
  1169. @snow_bitmap.fill_rect(1, 2, 4, 2, color1)
  1170. @snow_bitmap.fill_rect(2, 1, 2, 4, color1)
  1171. @sprites = []
  1172. @snow_bitmaps = []
  1173.  
  1174. color3 = Color.new(255, 255, 255, 204)
  1175. @snow_bitmaps[0] = Bitmap.new(3, 3)
  1176. @snow_bitmaps[0].fill_rect(0, 0, 3, 3, color2)
  1177. @snow_bitmaps[0].fill_rect(0, 1, 3, 1, color3)
  1178. @snow_bitmaps[0].fill_rect(1, 0, 1, 3, color3)
  1179. @snow_bitmaps[0].set_pixel(1, 1, color1)
  1180.  
  1181. @snow_bitmaps[1] = Bitmap.new(4, 4)
  1182. @snow_bitmaps[1].fill_rect(0, 1, 4, 2, color2)
  1183. @snow_bitmaps[1].fill_rect(1, 0, 2, 4, color2)
  1184. @snow_bitmaps[1].fill_rect(1, 1, 2, 2, color1)
  1185.  
  1186. @snow_bitmaps[2] = Bitmap.new(5, 5)
  1187. @snow_bitmaps[1].fill_rect(0, 1, 5, 3, color3)
  1188. @snow_bitmaps[1].fill_rect(1, 0, 3, 5, color3)
  1189. @snow_bitmaps[1].fill_rect(1, 1, 3, 3, color2)
  1190. @snow_bitmaps[1].fill_rect(2, 1, 3, 1, color1)
  1191. @snow_bitmaps[1].fill_rect(1, 2, 1, 3, color1)
  1192.  
  1193. @snow_bitmaps[3] = Bitmap.new(7, 7)
  1194. @snow_bitmaps[1].fill_rect(1, 1, 5, 5, color3)
  1195. @snow_bitmaps[1].fill_rect(2, 0, 7, 3, color3)
  1196. @snow_bitmaps[1].fill_rect(0, 2, 3, 7, color3)
  1197. @snow_bitmaps[1].fill_rect(2, 1, 5, 3, color2)
  1198. @snow_bitmaps[1].fill_rect(1, 2, 3, 5, color2)
  1199. @snow_bitmaps[1].fill_rect(2, 2, 3, 3, color1)
  1200. @snow_bitmaps[1].fill_rect(3, 1, 5, 1, color1)
  1201. @snow_bitmaps[1].fill_rect(1, 3, 1, 5, color1)
  1202. #-------------------------------------------------------------------------------
  1203. #hail
  1204.  
  1205. blueGrey = Color.new(215, 227, 227, 150)
  1206. grey = Color.new(214, 217, 217, 150)
  1207. lightGrey = Color.new(233, 233, 233, 250)
  1208. lightBlue = Color.new(222, 239, 243, 250)
  1209.  
  1210. @hail_bitmap = Bitmap.new(4, 4)
  1211. @hail_bitmap.fill_rect(1, 0, 2, 1, blueGrey)
  1212. @hail_bitmap.fill_rect(0, 1, 1, 2, blueGrey)
  1213. @hail_bitmap.fill_rect(3, 1, 1, 2, grey)
  1214. @hail_bitmap.fill_rect(1, 3, 2, 1, grey)
  1215. @hail_bitmap.fill_rect(1, 1, 2, 2, lightGrey)
  1216. @hail_bitmap.set_pixel(1, 1, lightBlue)
  1217.  
  1218. #-------------------------------------------------------------------------------
  1219. #sakura petals
  1220.  
  1221. color3 = Color.new(255, 167, 192, 255) # light pink
  1222. color4 = Color.new(213, 106, 136, 255) # dark pink
  1223. @petal_bitmap = Bitmap.new(4, 4) #This creates a new bitmap that is 4 x 4 pixels
  1224. @petal_bitmap.fill_rect(0, 3, 1, 1, color3) # this makes a 1x1 pixel "rectangle" at the 0, 3 pixel of the image (upper left corner is 0, 0)
  1225. @petal_bitmap.fill_rect(1, 2, 1, 1, color3)
  1226. @petal_bitmap.fill_rect(2, 1, 1, 1, color3)
  1227. @petal_bitmap.fill_rect(3, 0, 1, 1, color3)
  1228. @petal_bitmap.fill_rect(1, 3, 1, 1, color4)
  1229. @petal_bitmap.fill_rect(2, 2, 1, 1, color4)
  1230. @petal_bitmap.fill_rect(3, 1, 1, 1, color4)
  1231.  
  1232. #-------------------------------------------------------------------------------
  1233. #autumn brown leaves
  1234.  
  1235. brightOrange = Color.new(248, 88, 0, 255)
  1236. orangeBrown = Color.new(144, 80, 56, 255)
  1237. burntRed = Color.new(152, 0, 0, 255)
  1238. paleOrange = Color.new(232, 160, 128, 255)
  1239. darkBrown = Color.new(72, 40, 0, 255)
  1240.  
  1241. @autumn_leaf_bitmaps = []
  1242.  
  1243. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1244. # draw the first of the leaf1 bitmaps
  1245. @autumn_leaf_bitmaps[0].set_pixel(5, 1, orangeBrown)
  1246. @autumn_leaf_bitmaps[0].set_pixel(6, 1, brightOrange)
  1247. @autumn_leaf_bitmaps[0].set_pixel(7, 1, paleOrange)
  1248. @autumn_leaf_bitmaps[0].set_pixel(3, 2, orangeBrown)
  1249. @autumn_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightOrange)
  1250. @autumn_leaf_bitmaps[0].set_pixel(6, 2, paleOrange)
  1251. @autumn_leaf_bitmaps[0].set_pixel(2, 3, orangeBrown)
  1252. @autumn_leaf_bitmaps[0].set_pixel(3, 3, brightOrange)
  1253. @autumn_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, paleOrange)
  1254. @autumn_leaf_bitmaps[0].set_pixel(1, 4, orangeBrown)
  1255. @autumn_leaf_bitmaps[0].set_pixel(2, 4, brightOrange)
  1256. @autumn_leaf_bitmaps[0].set_pixel(3, 4, paleOrange)
  1257. @autumn_leaf_bitmaps[0].set_pixel(1, 5, brightOrange)
  1258. @autumn_leaf_bitmaps[0].set_pixel(2, 5, paleOrange)
  1259. @autumn_leaf_bitmaps[0].set_pixel(0, 6, orangeBrown)
  1260. @autumn_leaf_bitmaps[0].set_pixel(1, 6, paleOrange)
  1261. @autumn_leaf_bitmaps[0].set_pixel(0, 7, paleOrange)
  1262.  
  1263. # draw the 2nd of the leaf1 bitmaps
  1264. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1265. @autumn_leaf_bitmaps[1].set_pixel(3, 0, brightOrange)
  1266. @autumn_leaf_bitmaps[1].set_pixel(7, 0, brightOrange)
  1267. @autumn_leaf_bitmaps[1].set_pixel(3, 1, orangeBrown)
  1268. @autumn_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  1269. @autumn_leaf_bitmaps[1].set_pixel(6, 1, brightOrange)
  1270. @autumn_leaf_bitmaps[1].set_pixel(0, 2, paleOrange)
  1271. @autumn_leaf_bitmaps[1].set_pixel(1, 2, brightOrange)
  1272. @autumn_leaf_bitmaps[1].set_pixel(2, 2, orangeBrown)
  1273. @autumn_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  1274. @autumn_leaf_bitmaps[1].set_pixel(4, 2, orangeBrown)
  1275. @autumn_leaf_bitmaps[1].set_pixel(5, 2, brightOrange)
  1276. @autumn_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, orangeBrown)
  1277. @autumn_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightOrange)
  1278. @autumn_leaf_bitmaps[1].set_pixel(6, 3, orangeBrown)
  1279. @autumn_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  1280. @autumn_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightOrange)
  1281. @autumn_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  1282. @autumn_leaf_bitmaps[1].set_pixel(7, 4, darkBrown)
  1283. @autumn_leaf_bitmaps[1].set_pixel(1, 5, orangeBrown)
  1284. @autumn_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightOrange)
  1285. @autumn_leaf_bitmaps[1].set_pixel(4, 5, orangeBrown)
  1286. @autumn_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  1287. @autumn_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightOrange)
  1288. @autumn_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  1289. @autumn_leaf_bitmaps[1].set_pixel(0, 7, brightOrange)
  1290. @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkBrown)
  1291.  
  1292. # draw the 3rd of the leaf1 bitmaps
  1293. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1294. @autumn_leaf_bitmaps[2].set_pixel(7, 1, paleOrange)
  1295. @autumn_leaf_bitmaps[2].set_pixel(6, 2, paleOrange)
  1296. @autumn_leaf_bitmaps[2].set_pixel(7, 2, orangeBrown)
  1297. @autumn_leaf_bitmaps[2].set_pixel(5, 3, paleOrange)
  1298. @autumn_leaf_bitmaps[2].set_pixel(6, 3, brightOrange)
  1299. @autumn_leaf_bitmaps[2].set_pixel(4, 4, paleOrange)
  1300. @autumn_leaf_bitmaps[2].set_pixel(5, 4, brightOrange)
  1301. @autumn_leaf_bitmaps[2].set_pixel(6, 4, orangeBrown)
  1302. @autumn_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, paleOrange)
  1303. @autumn_leaf_bitmaps[2].set_pixel(4, 5, brightOrange)
  1304. @autumn_leaf_bitmaps[2].set_pixel(5, 5, orangeBrown)
  1305. @autumn_leaf_bitmaps[2].set_pixel(1, 6, paleOrange)
  1306. @autumn_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightOrange)
  1307. @autumn_leaf_bitmaps[2].set_pixel(4, 6, orangeBrown)
  1308. @autumn_leaf_bitmaps[2].set_pixel(0, 7, paleOrange)
  1309. @autumn_leaf_bitmaps[2].set_pixel(1, 7, brightOrange)
  1310. @autumn_leaf_bitmaps[2].set_pixel(2, 7, orangeBrown)
  1311.  
  1312. # draw the 4th of the leaf1 bitmaps
  1313. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1314. @autumn_leaf_bitmaps[3].set_pixel(3, 0, brightOrange)
  1315. @autumn_leaf_bitmaps[3].set_pixel(7, 0, brightOrange)
  1316. @autumn_leaf_bitmaps[3].set_pixel(3, 1, orangeBrown)
  1317. @autumn_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  1318. @autumn_leaf_bitmaps[3].set_pixel(6, 1, brightOrange)
  1319. @autumn_leaf_bitmaps[3].set_pixel(0, 2, paleOrange)
  1320. @autumn_leaf_bitmaps[3].set_pixel(1, 2, brightOrange)
  1321. @autumn_leaf_bitmaps[3].set_pixel(2, 2, orangeBrown)
  1322. @autumn_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  1323. @autumn_leaf_bitmaps[3].set_pixel(4, 2, orangeBrown)
  1324. @autumn_leaf_bitmaps[3].set_pixel(5, 2, brightOrange)
  1325. @autumn_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, orangeBrown)
  1326. @autumn_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightOrange)
  1327. @autumn_leaf_bitmaps[3].set_pixel(6, 3, orangeBrown)
  1328. @autumn_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  1329. @autumn_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightOrange)
  1330. @autumn_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  1331. @autumn_leaf_bitmaps[3].set_pixel(7, 4, darkBrown)
  1332. @autumn_leaf_bitmaps[3].set_pixel(1, 5, orangeBrown)
  1333. @autumn_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightOrange)
  1334. @autumn_leaf_bitmaps[3].set_pixel(4, 5, orangeBrown)
  1335. @autumn_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  1336. @autumn_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightOrange)
  1337. @autumn_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  1338. @autumn_leaf_bitmaps[3].set_pixel(0, 7, brightOrange)
  1339. @autumn_leaf_bitmaps[3].set_pixel(5, 7, darkBrown)
  1340.  
  1341. #-------------------------------------------------------------------------------
  1342.  
  1343. # Red maple leaves
  1344.  
  1345. @redmaple_leaf_bitmaps = []
  1346. brightRed = Color.new(255, 0, 0, 255)
  1347. midRed = Color.new(179, 17, 17, 255)
  1348. darkRed = Color.new(141, 9, 9, 255)
  1349.  
  1350. @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1351. # draw the first of the red maple leaves bitmaps
  1352. @redmaple_leaf_bitmaps[0].set_pixel(5, 1, darkRed)
  1353. @redmaple_leaf_bitmaps[0].set_pixel(6, 1, brightRed)
  1354. @redmaple_leaf_bitmaps[0].set_pixel(7, 1, midRed)
  1355. @redmaple_leaf_bitmaps[0].set_pixel(3, 2, darkRed)
  1356. @redmaple_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightRed)
  1357. @redmaple_leaf_bitmaps[0].set_pixel(6, 2, midRed)
  1358. @redmaple_leaf_bitmaps[0].set_pixel(2, 3, darkRed)
  1359. @redmaple_leaf_bitmaps[0].set_pixel(3, 3, brightRed)
  1360. @redmaple_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, midRed)
  1361. @redmaple_leaf_bitmaps[0].set_pixel(1, 4, brightRed)
  1362. @redmaple_leaf_bitmaps[0].set_pixel(2, 4, brightRed)
  1363. @redmaple_leaf_bitmaps[0].set_pixel(3, 4, midRed)
  1364. @redmaple_leaf_bitmaps[0].set_pixel(1, 5, brightRed)
  1365. @redmaple_leaf_bitmaps[0].set_pixel(2, 5, midRed)
  1366. @redmaple_leaf_bitmaps[0].set_pixel(0, 6, darkRed)
  1367. @redmaple_leaf_bitmaps[0].set_pixel(1, 6, midRed)
  1368. @redmaple_leaf_bitmaps[0].set_pixel(0, 7, midRed)
  1369.  
  1370. # draw the 2nd of the red maple leaves bitmaps
  1371. @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1372. @redmaple_leaf_bitmaps[1].set_pixel(3, 0, brightRed)
  1373. @redmaple_leaf_bitmaps[1].set_pixel(7, 0, brightRed)
  1374. @redmaple_leaf_bitmaps[1].set_pixel(3, 1, darkRed)
  1375. @redmaple_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  1376. @redmaple_leaf_bitmaps[1].set_pixel(6, 1, brightRed)
  1377. @redmaple_leaf_bitmaps[1].set_pixel(0, 2, midRed)
  1378. @redmaple_leaf_bitmaps[1].set_pixel(1, 2, brightRed)
  1379. @redmaple_leaf_bitmaps[1].set_pixel(2, 2, darkRed)
  1380. @redmaple_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  1381. @redmaple_leaf_bitmaps[1].set_pixel(4, 2, darkRed)
  1382. @redmaple_leaf_bitmaps[1].set_pixel(5, 2, brightRed)
  1383. @redmaple_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, darkRed)
  1384. @redmaple_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightRed)
  1385. @redmaple_leaf_bitmaps[1].set_pixel(6, 3, darkRed)
  1386. @redmaple_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  1387. @redmaple_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightRed)
  1388. @redmaple_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  1389. @redmaple_leaf_bitmaps[1].set_pixel(7, 4, darkRed)
  1390. @redmaple_leaf_bitmaps[1].set_pixel(1, 5, darkRed)
  1391. @redmaple_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightRed)
  1392. @redmaple_leaf_bitmaps[1].set_pixel(4, 5, darkRed)
  1393. @redmaple_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  1394. @redmaple_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightRed)
  1395. @redmaple_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  1396. @redmaple_leaf_bitmaps[1].set_pixel(0, 7, brightRed)
  1397. @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkRed)
  1398.  
  1399. # draw the 3rd of the red maple leaves bitmaps
  1400. @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1401. @redmaple_leaf_bitmaps[2].set_pixel(7, 1, midRed)
  1402. @redmaple_leaf_bitmaps[2].set_pixel(6, 2, midRed)
  1403. @redmaple_leaf_bitmaps[2].set_pixel(7, 2, darkRed)
  1404. @redmaple_leaf_bitmaps[2].set_pixel(5, 3, midRed)
  1405. @redmaple_leaf_bitmaps[2].set_pixel(6, 3, brightRed)
  1406. @redmaple_leaf_bitmaps[2].set_pixel(4, 4, midRed)
  1407. @redmaple_leaf_bitmaps[2].set_pixel(5, 4, brightRed)
  1408. @redmaple_leaf_bitmaps[2].set_pixel(6, 4, darkRed)
  1409. @redmaple_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, midRed)
  1410. @redmaple_leaf_bitmaps[2].set_pixel(4, 5, brightRed)
  1411. @redmaple_leaf_bitmaps[2].set_pixel(5, 5, darkRed)
  1412. @redmaple_leaf_bitmaps[2].set_pixel(1, 6, midRed)
  1413. @redmaple_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightRed)
  1414. @redmaple_leaf_bitmaps[2].set_pixel(4, 6, darkRed)
  1415. @redmaple_leaf_bitmaps[2].set_pixel(0, 7, midRed)
  1416. @redmaple_leaf_bitmaps[2].set_pixel(1, 7, brightRed)
  1417. @redmaple_leaf_bitmaps[2].set_pixel(2, 7, darkRed)
  1418.  
  1419. # draw the 4th of the red maple leaves bitmaps
  1420. @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1421. @redmaple_leaf_bitmaps[3].set_pixel(3, 0, brightRed)
  1422. @redmaple_leaf_bitmaps[3].set_pixel(7, 0, brightRed)
  1423. @redmaple_leaf_bitmaps[3].set_pixel(3, 1, darkRed)
  1424. @redmaple_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  1425. @redmaple_leaf_bitmaps[3].set_pixel(6, 1, brightRed)
  1426. @redmaple_leaf_bitmaps[3].set_pixel(0, 2, midRed)
  1427. @redmaple_leaf_bitmaps[3].set_pixel(1, 2, brightRed)
  1428. @redmaple_leaf_bitmaps[3].set_pixel(2, 2, darkRed)
  1429. @redmaple_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  1430. @redmaple_leaf_bitmaps[3].set_pixel(4, 2, darkRed)
  1431. @redmaple_leaf_bitmaps[3].set_pixel(5, 2, brightRed)
  1432. @redmaple_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, darkRed)
  1433. @redmaple_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightRed)
  1434. @redmaple_leaf_bitmaps[3].set_pixel(6, 3, darkRed)
  1435. @redmaple_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  1436. @redmaple_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightRed)
  1437. @redmaple_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  1438. @redmaple_leaf_bitmaps[3].set_pixel(7, 4, darkRed)
  1439. @redmaple_leaf_bitmaps[3].set_pixel(1, 5, darkRed)
  1440. @redmaple_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightRed)
  1441. @redmaple_leaf_bitmaps[3].set_pixel(4, 5, darkRed)
  1442. @redmaple_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  1443. @redmaple_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightRed)
  1444. @redmaple_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  1445. @redmaple_leaf_bitmaps[3].set_pixel(0, 7, brightRed)
  1446. @redmaple_leaf_bitmaps[3].set_pixel(5, 7, darkRed)
  1447. #-------------------------------------------------------------------------------
  1448. #Green leaves
  1449.  
  1450. @green_leaf_bitmaps = []
  1451. darkGreen = Color.new(62, 76, 31, 255)
  1452. midGreen = Color.new(76, 91, 43, 255)
  1453. khaki = Color.new(105, 114, 66, 255)
  1454. lightGreen = Color.new(128, 136, 88, 255)
  1455. mint = Color.new(146, 154, 106, 255)
  1456.  
  1457. # 1st leaf bitmap
  1458. @green_leaf_bitmaps[0] = Bitmap.new(8, 8)
  1459. @green_leaf_bitmaps[0].set_pixel(1, 0, darkGreen)
  1460. @green_leaf_bitmaps[0].set_pixel(1, 1, midGreen)
  1461. @green_leaf_bitmaps[0].set_pixel(2, 1, darkGreen)
  1462. @green_leaf_bitmaps[0].set_pixel(2, 2, khaki)
  1463. @green_leaf_bitmaps[0].set_pixel(3, 2, darkGreen)
  1464. @green_leaf_bitmaps[0].set_pixel(4, 2, khaki)
  1465. @green_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midGreen)
  1466. @green_leaf_bitmaps[0].set_pixel(5, 3, khaki)
  1467. @green_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midGreen)
  1468. @green_leaf_bitmaps[0].set_pixel(4, 4, darkGreen)
  1469. @green_leaf_bitmaps[0].set_pixel(5, 4, lightGreen)
  1470. @green_leaf_bitmaps[0].set_pixel(6, 4, khaki)
  1471. @green_leaf_bitmaps[0].set_pixel(3, 5, midGreen)
  1472. @green_leaf_bitmaps[0].set_pixel(4, 5, darkGreen)
  1473. @green_leaf_bitmaps[0].set_pixel(5, 5, khaki)
  1474. @green_leaf_bitmaps[0].set_pixel(6, 5, lightGreen)
  1475. @green_leaf_bitmaps[0].set_pixel(4, 6, midGreen)
  1476. @green_leaf_bitmaps[0].set_pixel(5, 6, darkGreen)
  1477. @green_leaf_bitmaps[0].set_pixel(6, 6, lightGreen)
  1478. @green_leaf_bitmaps[0].set_pixel(6, 7, khaki)
  1479.  
  1480. # 2nd leaf bitmap
  1481. @green_leaf_bitmaps[1] = Bitmap.new(8, 8)
  1482. @green_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midGreen)
  1483. @green_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, khaki)
  1484. @green_leaf_bitmaps[1].set_pixel(4, 2, lightGreen)
  1485. @green_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkGreen)
  1486. @green_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightGreen)
  1487. @green_leaf_bitmaps[1].set_pixel(2, 4, midGreen)
  1488. @green_leaf_bitmaps[1].set_pixel(3, 4, darkGreen)
  1489. @green_leaf_bitmaps[1].set_pixel(4, 4, khaki)
  1490. @green_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightGreen)
  1491. @green_leaf_bitmaps[1].set_pixel(3, 5, midGreen)
  1492. @green_leaf_bitmaps[1].set_pixel(4, 5, darkGreen)
  1493. @green_leaf_bitmaps[1].set_pixel(5, 5, khaki)
  1494. @green_leaf_bitmaps[1].set_pixel(6, 5, lightGreen)
  1495. @green_leaf_bitmaps[1].set_pixel(5, 6, darkGreen)
  1496. @green_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, khaki)
  1497.  
  1498. # 3rd leaf bitmap
  1499. @green_leaf_bitmaps[2] = Bitmap.new(8, 8)
  1500. @green_leaf_bitmaps[2].set_pixel(1, 1, darkGreen)
  1501. @green_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midGreen)
  1502. @green_leaf_bitmaps[2].set_pixel(2, 3, midGreen)
  1503. @green_leaf_bitmaps[2].set_pixel(3, 3, darkGreen)
  1504. @green_leaf_bitmaps[2].set_pixel(4, 3, midGreen)
  1505. @green_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midGreen)
  1506. @green_leaf_bitmaps[2].set_pixel(4, 4, darkGreen)
  1507. @green_leaf_bitmaps[2].set_pixel(5, 4, lightGreen)
  1508. @green_leaf_bitmaps[2].set_pixel(3, 5, midGreen)
  1509. @green_leaf_bitmaps[2].set_pixel(4, 5, darkGreen)
  1510. @green_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, khaki)
  1511. @green_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midGreen)
  1512. @green_leaf_bitmaps[2].set_pixel(6, 6, lightGreen)
  1513. @green_leaf_bitmaps[2].set_pixel(6, 7, khaki)
  1514.  
  1515. # 4th leaf bitmap
  1516. @green_leaf_bitmaps[3] = Bitmap.new(8, 8)
  1517. @green_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkGreen)
  1518. @green_leaf_bitmaps[3].set_pixel(1, 4, midGreen)
  1519. @green_leaf_bitmaps[3].set_pixel(2, 4, khaki)
  1520. @green_leaf_bitmaps[3].set_pixel(3, 4, lightGreen)
  1521. @green_leaf_bitmaps[3].set_pixel(4, 4, darkGreen)
  1522. @green_leaf_bitmaps[3].set_pixel(7, 4, midGreen)
  1523. @green_leaf_bitmaps[3].set_pixel(1, 5, darkGreen)
  1524. @green_leaf_bitmaps[3].set_pixel(2, 5, midGreen)
  1525. @green_leaf_bitmaps[3].set_pixel(3, 5, lightGreen)
  1526. @green_leaf_bitmaps[3].set_pixel(4, 5, mint)
  1527. @green_leaf_bitmaps[3].set_pixel(5, 5, lightGreen)
  1528. @green_leaf_bitmaps[3].set_pixel(6, 5, khaki)
  1529. @green_leaf_bitmaps[3].set_pixel(7, 5, midGreen)
  1530. @green_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midGreen)
  1531. @green_leaf_bitmaps[3].set_pixel(4, 6, lightGreen)
  1532. @green_leaf_bitmaps[3].set_pixel(5, 6, khaki)
  1533. @green_leaf_bitmaps[3].set_pixel(6, 6, midGreen)
  1534.  
  1535. # 5th leaf bitmap
  1536. @green_leaf_bitmaps[4] = Bitmap.new(8, 8)
  1537. @green_leaf_bitmaps[4].set_pixel(6, 2, midGreen)
  1538. @green_leaf_bitmaps[4].set_pixel(7, 2, darkGreen)
  1539. @green_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midGreen)
  1540. @green_leaf_bitmaps[4].set_pixel(6, 3, khaki)
  1541. @green_leaf_bitmaps[4].set_pixel(2, 4, darkGreen)
  1542. @green_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, khaki)
  1543. @green_leaf_bitmaps[4].set_pixel(5, 4, lightGreen)
  1544. @green_leaf_bitmaps[4].set_pixel(6, 4, khaki)
  1545. @green_leaf_bitmaps[4].set_pixel(1, 5, midGreen)
  1546. @green_leaf_bitmaps[4].set_pixel(2, 5, khaki)
  1547. @green_leaf_bitmaps[4].set_pixel(3, 5, lightGreen)
  1548. @green_leaf_bitmaps[4].set_pixel(4, 5, mint)
  1549. @green_leaf_bitmaps[4].set_pixel(5, 5, midGreen)
  1550. @green_leaf_bitmaps[4].set_pixel(2, 6, darkGreen)
  1551. @green_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midGreen)
  1552.  
  1553. # 6th leaf bitmap
  1554. @green_leaf_bitmaps[5] = Bitmap.new(8, 8)
  1555. @green_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midGreen)
  1556. @green_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midGreen)
  1557. @green_leaf_bitmaps[5].set_pixel(6, 3, khaki)
  1558. @green_leaf_bitmaps[5].set_pixel(3, 4, midGreen)
  1559. @green_leaf_bitmaps[5].set_pixel(4, 4, khaki)
  1560. @green_leaf_bitmaps[5].set_pixel(5, 4, lightGreen)
  1561. @green_leaf_bitmaps[5].set_pixel(6, 4, mint)
  1562. @green_leaf_bitmaps[5].set_pixel(1, 5, midGreen)
  1563. @green_leaf_bitmaps[5].set_pixel(2, 5, khaki)
  1564. @green_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, mint)
  1565. @green_leaf_bitmaps[5].set_pixel(5, 5, lightGreen)
  1566. @green_leaf_bitmaps[5].set_pixel(2, 6, midGreen)
  1567. @green_leaf_bitmaps[5].set_pixel(3, 6, khaki)
  1568. @green_leaf_bitmaps[5].set_pixel(4, 6, lightGreen)
  1569.  
  1570. # 7th leaf bitmap
  1571. @green_leaf_bitmaps[6] = Bitmap.new(8, 8)
  1572. @green_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midGreen)
  1573. @green_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midGreen)
  1574. @green_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkGreen)
  1575. @green_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midGreen)
  1576. @green_leaf_bitmaps[6].set_pixel(5, 3, khaki)
  1577. @green_leaf_bitmaps[6].set_pixel(2, 4, midGreen)
  1578. @green_leaf_bitmaps[6].set_pixel(3, 4, khaki)
  1579. @green_leaf_bitmaps[6].set_pixel(4, 4, lightGreen)
  1580. @green_leaf_bitmaps[6].set_pixel(5, 4, midGreen)
  1581. @green_leaf_bitmaps[6].set_pixel(1, 5, midGreen)
  1582. @green_leaf_bitmaps[6].set_pixel(2, 5, khaki)
  1583. @green_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midGreen)
  1584. @green_leaf_bitmaps[6].set_pixel(1, 6, darkGreen)
  1585. @green_leaf_bitmaps[6].set_pixel(2, 6, midGreen)
  1586.  
  1587. # 8th leaf bitmap
  1588. @green_leaf_bitmaps[7] = Bitmap.new(8, 8)
  1589. @green_leaf_bitmaps[7].set_pixel(6, 1, midGreen)
  1590. @green_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midGreen)
  1591. @green_leaf_bitmaps[7].set_pixel(3, 3, darkGreen)
  1592. @green_leaf_bitmaps[7].set_pixel(2, 4, darkGreen)
  1593. @green_leaf_bitmaps[7].set_pixel(3, 4, midGreen)
  1594. @green_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, khaki)
  1595. @green_leaf_bitmaps[7].set_pixel(1, 5, darkGreen)
  1596. @green_leaf_bitmaps[7].set_pixel(2, 5, midGreen)
  1597. @green_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightGreen)
  1598. @green_leaf_bitmaps[7].set_pixel(2, 6, midGreen)
  1599. @green_leaf_bitmaps[7].set_pixel(3, 6, lightGreen)
  1600.  
  1601. # 9th leaf bitmap
  1602. @green_leaf_bitmaps[8] = Bitmap.new(8, 8)
  1603. @green_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midGreen)
  1604. @green_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midGreen)
  1605. @green_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkGreen)
  1606. @green_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midGreen)
  1607. @green_leaf_bitmaps[8].set_pixel(5, 3, khaki)
  1608. @green_leaf_bitmaps[8].set_pixel(2, 4, midGreen)
  1609. @green_leaf_bitmaps[8].set_pixel(3, 4, khaki)
  1610. @green_leaf_bitmaps[8].set_pixel(4, 4, lightGreen)
  1611. @green_leaf_bitmaps[8].set_pixel(5, 4, midGreen)
  1612. @green_leaf_bitmaps[8].set_pixel(1, 5, midGreen)
  1613. @green_leaf_bitmaps[8].set_pixel(2, 5, khaki)
  1614. @green_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midGreen)
  1615. @green_leaf_bitmaps[8].set_pixel(1, 6, darkGreen)
  1616. @green_leaf_bitmaps[8].set_pixel(2, 6, midGreen)
  1617.  
  1618. # 10th leaf bitmap
  1619. @green_leaf_bitmaps[9] = Bitmap.new(8, 8)
  1620. @green_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midGreen)
  1621. @green_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midGreen)
  1622. @green_leaf_bitmaps[9].set_pixel(6, 3, khaki)
  1623. @green_leaf_bitmaps[9].set_pixel(3, 4, midGreen)
  1624. @green_leaf_bitmaps[9].set_pixel(4, 4, khaki)
  1625. @green_leaf_bitmaps[9].set_pixel(5, 4, lightGreen)
  1626. @green_leaf_bitmaps[9].set_pixel(6, 4, mint)
  1627. @green_leaf_bitmaps[9].set_pixel(1, 5, midGreen)
  1628. @green_leaf_bitmaps[9].set_pixel(2, 5, khaki)
  1629. @green_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, mint)
  1630. @green_leaf_bitmaps[9].set_pixel(5, 5, lightGreen)
  1631. @green_leaf_bitmaps[9].set_pixel(2, 6, midGreen)
  1632. @green_leaf_bitmaps[9].set_pixel(3, 6, khaki)
  1633. @green_leaf_bitmaps[9].set_pixel(4, 6, lightGreen)
  1634.  
  1635. # 11th leaf bitmap
  1636. @green_leaf_bitmaps[10] = Bitmap.new(8, 8)
  1637. @green_leaf_bitmaps[10].set_pixel(6, 2, midGreen)
  1638. @green_leaf_bitmaps[10].set_pixel(7, 2, darkGreen)
  1639. @green_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midGreen)
  1640. @green_leaf_bitmaps[10].set_pixel(6, 3, khaki)
  1641. @green_leaf_bitmaps[10].set_pixel(2, 4, darkGreen)
  1642. @green_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, khaki)
  1643. @green_leaf_bitmaps[10].set_pixel(5, 4, lightGreen)
  1644. @green_leaf_bitmaps[10].set_pixel(6, 4, khaki)
  1645. @green_leaf_bitmaps[10].set_pixel(1, 5, midGreen)
  1646. @green_leaf_bitmaps[10].set_pixel(2, 5, khaki)
  1647. @green_leaf_bitmaps[10].set_pixel(3, 5, lightGreen)
  1648. @green_leaf_bitmaps[10].set_pixel(4, 5, mint)
  1649. @green_leaf_bitmaps[10].set_pixel(5, 5, midGreen)
  1650. @green_leaf_bitmaps[10].set_pixel(2, 6, darkGreen)
  1651. @green_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midGreen)
  1652.  
  1653. # 12th leaf bitmap
  1654. @green_leaf_bitmaps[11] = Bitmap.new(8, 8)
  1655. @green_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkGreen)
  1656. @green_leaf_bitmaps[11].set_pixel(1, 4, midGreen)
  1657. @green_leaf_bitmaps[11].set_pixel(2, 4, khaki)
  1658. @green_leaf_bitmaps[11].set_pixel(3, 4, lightGreen)
  1659. @green_leaf_bitmaps[11].set_pixel(4, 4, darkGreen)
  1660. @green_leaf_bitmaps[11].set_pixel(7, 4, midGreen)
  1661. @green_leaf_bitmaps[11].set_pixel(1, 5, darkGreen)
  1662. @green_leaf_bitmaps[11].set_pixel(2, 5, midGreen)
  1663. @green_leaf_bitmaps[11].set_pixel(3, 5, lightGreen)
  1664. @green_leaf_bitmaps[11].set_pixel(4, 5, mint)
  1665. @green_leaf_bitmaps[11].set_pixel(5, 5, lightGreen)
  1666. @green_leaf_bitmaps[11].set_pixel(6, 5, khaki)
  1667. @green_leaf_bitmaps[11].set_pixel(7, 5, midGreen)
  1668. @green_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midGreen)
  1669. @green_leaf_bitmaps[11].set_pixel(4, 6, lightGreen)
  1670. @green_leaf_bitmaps[11].set_pixel(5, 6, khaki)
  1671. @green_leaf_bitmaps[11].set_pixel(6, 6, midGreen)
  1672.  
  1673. # 13th leaf bitmap
  1674. @green_leaf_bitmaps[12] = Bitmap.new(8, 8)
  1675. @green_leaf_bitmaps[12].set_pixel(1, 1, darkGreen)
  1676. @green_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midGreen)
  1677. @green_leaf_bitmaps[12].set_pixel(2, 3, midGreen)
  1678. @green_leaf_bitmaps[12].set_pixel(3, 3, darkGreen)
  1679. @green_leaf_bitmaps[12].set_pixel(4, 3, midGreen)
  1680. @green_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midGreen)
  1681. @green_leaf_bitmaps[12].set_pixel(4, 4, darkGreen)
  1682. @green_leaf_bitmaps[12].set_pixel(5, 4, lightGreen)
  1683. @green_leaf_bitmaps[12].set_pixel(3, 5, midGreen)
  1684. @green_leaf_bitmaps[12].set_pixel(4, 5, darkGreen)
  1685. @green_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, khaki)
  1686. @green_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midGreen)
  1687. @green_leaf_bitmaps[12].set_pixel(6, 6, lightGreen)
  1688. @green_leaf_bitmaps[12].set_pixel(6, 7, khaki)
  1689. #-------------------------------------------------------------------------------
  1690. #rose petals
  1691.  
  1692. @rose_bitmaps = []
  1693.  
  1694. # 1st rose petal bitmap
  1695. @rose_bitmaps[0] = Bitmap.new(3, 3)
  1696. @rose_bitmaps[0].fill_rect(1, 0, 2, 1, brightRed)
  1697. @rose_bitmaps[0].fill_rect(0, 1, 1, 2, brightRed)
  1698. @rose_bitmaps[0].fill_rect(1, 1, 2, 2, midRed)
  1699. @rose_bitmaps[0].set_pixel(2, 2, darkRed)
  1700.  
  1701. # 2nd rose petal bitmap
  1702. @rose_bitmaps[1] = Bitmap.new(3, 3)
  1703. @rose_bitmaps[1].set_pixel(0, 1, midRed)
  1704. @rose_bitmaps[1].set_pixel(1, 1, brightRed)
  1705. @rose_bitmaps[1].fill_rect(1, 2, 1, 2, midRed)
  1706. #-------------------------------------------------------------------------------
  1707. #Feathers
  1708.  
  1709. @feather_bitmaps = []
  1710. white = Color.new(255, 255, 255, 255)
  1711.  
  1712. # 1st feather bitmap
  1713. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1714. @feather_bitmaps[0].set_pixel(0, 2, white)
  1715. @feather_bitmaps[0].set_pixel(1, 2, grey)
  1716. @feather_bitmaps[0].set_pixel(2, 1, grey)
  1717.  
  1718. # 2nd feather bitmap
  1719. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1720. @feather_bitmaps[0].set_pixel(0, 0, white)
  1721. @feather_bitmaps[0].set_pixel(0, 1, grey)
  1722. @feather_bitmaps[0].set_pixel(1, 2, grey)
  1723.  
  1724. # 3rd feather bitmap
  1725. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1726. @feather_bitmaps[0].set_pixel(2, 0, white)
  1727. @feather_bitmaps[0].set_pixel(1, 0, grey)
  1728. @feather_bitmaps[0].set_pixel(0, 1, grey)
  1729.  
  1730. # 4th feather bitmap
  1731. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1732. @feather_bitmaps[0].set_pixel(2, 2, white)
  1733. @feather_bitmaps[0].set_pixel(2, 1, grey)
  1734. @feather_bitmaps[0].set_pixel(1, 0, grey)
  1735. #-------------------------------------------------------------------------------
  1736. #Blood rain
  1737.  
  1738. @blood_rain_bitmap = Bitmap.new(7, 56)
  1739. for i in 0..6
  1740. @blood_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkRed)
  1741. end
  1742. @blood_rain_splash = Bitmap.new(8, 5)
  1743. @blood_rain_splash.fill_rect(1, 0, 6, 1, darkRed)
  1744. @blood_rain_splash.fill_rect(1, 4, 6, 1, darkRed)
  1745. @blood_rain_splash.fill_rect(0, 1, 1, 3, darkRed)
  1746. @blood_rain_splash.fill_rect(7, 1, 1, 3, darkRed)
  1747. #-------------------------------------------------------------------------------
  1748.  
  1749. #Blood storm
  1750.  
  1751. @blood_storm_bitmap = Bitmap.new(34, 64)
  1752. for i in 0..31
  1753. @blood_storm_bitmap.fill_rect(33-i, i*2, 1, 2, darkRed)
  1754. @blood_storm_bitmap.fill_rect(32-i, i*2, 1, 2, darkRed)
  1755. @blood_storm_bitmap.fill_rect(31-i, i*2, 1, 2, darkRed)
  1756. end
  1757.  
  1758. #-------------------------------------------------------------------------------
  1759. #Blood blizzard
  1760.  
  1761. @bloodblizz_bitmap = Bitmap.new(6, 6)
  1762. @bloodblizz_bitmap.fill_rect(0, 1, 6, 4, midRed)
  1763. @bloodblizz_bitmap.fill_rect(1, 0, 4, 6, midRed)
  1764. @bloodblizz_bitmap.fill_rect(1, 2, 4, 2, darkRed)
  1765. @bloodblizz_bitmap.fill_rect(2, 1, 2, 4, darkRed)
  1766. @sprites = []
  1767. @bloodblizz_bitmaps = []
  1768.  
  1769. @bloodblizz_bitmaps[0] = Bitmap.new(3, 3)
  1770. @bloodblizz_bitmaps[0].fill_rect(0, 0, 3, 3, midRed)
  1771. @bloodblizz_bitmaps[0].fill_rect(0, 1, 3, 1, darkRed)
  1772. @bloodblizz_bitmaps[0].fill_rect(1, 0, 1, 3, darkRed)
  1773. @bloodblizz_bitmaps[0].set_pixel(1, 1, darkRed)
  1774.  
  1775. @bloodblizz_bitmaps[1] = Bitmap.new(4, 4)
  1776. @bloodblizz_bitmaps[1].fill_rect(0, 1, 4, 2, midRed)
  1777. @bloodblizz_bitmaps[1].fill_rect(1, 0, 2, 4, midRed)
  1778. @bloodblizz_bitmaps[1].fill_rect(1, 1, 2, 2, darkRed)
  1779.  
  1780. @bloodblizz_bitmaps[2] = Bitmap.new(5, 5)
  1781. @bloodblizz_bitmaps[1].fill_rect(0, 1, 5, 3, darkRed)
  1782. @bloodblizz_bitmaps[1].fill_rect(1, 0, 3, 5, darkRed)
  1783. @bloodblizz_bitmaps[1].fill_rect(1, 1, 3, 3, midRed)
  1784. @bloodblizz_bitmaps[1].fill_rect(2, 1, 3, 1, darkRed)
  1785. @bloodblizz_bitmaps[1].fill_rect(1, 2, 1, 3, darkRed)
  1786.  
  1787. @bloodblizz_bitmaps[3] = Bitmap.new(7, 7)
  1788. @bloodblizz_bitmaps[1].fill_rect(1, 1, 5, 5, darkRed)
  1789. @bloodblizz_bitmaps[1].fill_rect(2, 0, 7, 3, darkRed)
  1790. @bloodblizz_bitmaps[1].fill_rect(0, 2, 3, 7, darkRed)
  1791. @bloodblizz_bitmaps[1].fill_rect(2, 1, 5, 3, midRed)
  1792. @bloodblizz_bitmaps[1].fill_rect(1, 2, 3, 5, midRed)
  1793. @bloodblizz_bitmaps[1].fill_rect(2, 2, 3, 3, darkRed)
  1794. @bloodblizz_bitmaps[1].fill_rect(3, 1, 5, 1, darkRed)
  1795. @bloodblizz_bitmaps[1].fill_rect(1, 3, 1, 5, darkRed)
  1796. #-------------------------------------------------------------------------------
  1797.  
  1798. # Oil rain
  1799.  
  1800. darkgrey = Color.new(15, 15, 15, 255)
  1801. black = Color.new(0, 0, 0, 255)
  1802.  
  1803. @oil_rain_bitmap = Bitmap.new(7, 56)
  1804. for i in 0..6
  1805. @oil_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkgrey)
  1806. end
  1807. @oil_rain_splash = Bitmap.new(8, 5)
  1808. @oil_rain_splash.fill_rect(1, 0, 6, 1, darkgrey)
  1809. @oil_rain_splash.fill_rect(1, 4, 6, 1, darkgrey)
  1810. @oil_rain_splash.fill_rect(0, 1, 1, 3, black)
  1811. @oil_rain_splash.fill_rect(7, 1, 1, 3, black)
  1812. #-------------------------------------------------------------------------------
  1813.  
  1814. # Oil storm
  1815.  
  1816. @oil_storm_bitmap = Bitmap.new(34, 64)
  1817. for i in 0..31
  1818. @oil_storm_bitmap.fill_rect(33-i, i*2, 1, 2, darkgrey)
  1819. @oil_storm_bitmap.fill_rect(32-i, i*2, 1, 2, darkgrey)
  1820. @oil_storm_bitmap.fill_rect(31-i, i*2, 1, 2, darkgrey)
  1821. end
  1822. #-------------------------------------------------------------------------------
  1823.  
  1824. # Golden rain
  1825.  
  1826. darkYellow = Color.new(110, 104, 3, 255)
  1827. midYellow = Color.new(205, 194, 23, 255)
  1828. darkYellowtwo = Color.new(186, 176, 14, 255)
  1829. lightYellow = Color.new(218, 207, 36, 255)
  1830. lightYellowtwo = Color.new(227, 217, 56, 255)
  1831.  
  1832. @golden_rain_bitmap = Bitmap.new(7, 56)
  1833. for i in 0..6
  1834. @golden_rain_bitmap.fill_rect(6-i, i*8, 1, 8, lightYellow)
  1835. end
  1836. @golden_rain_splash = Bitmap.new(8, 5)
  1837. @golden_rain_splash.fill_rect(1, 0, 6, 1, lightYellow)
  1838. @golden_rain_splash.fill_rect(1, 4, 6, 1, lightYellow)
  1839. @golden_rain_splash.fill_rect(0, 1, 1, 3, lightYellow)
  1840. @golden_rain_splash.fill_rect(7, 1, 1, 3, lightYellow)
  1841. #-------------------------------------------------------------------------------
  1842.  
  1843. # Golden storm
  1844.  
  1845. @golden_storm_bitmap = Bitmap.new(34, 64)
  1846. for i in 0..31
  1847. @golden_storm_bitmap.fill_rect(33-i, i*2, 1, 2, lightYellow)
  1848. @golden_storm_bitmap.fill_rect(32-i, i*2, 1, 2, lightYellow)
  1849. @golden_storm_bitmap.fill_rect(31-i, i*2, 1, 2, lightYellow)
  1850. end
  1851. #-------------------------------------------------------------------------------
  1852.  
  1853. # Acid rain
  1854.  
  1855. @acid_rain_bitmap = Bitmap.new(7, 56)
  1856. for i in 0..6
  1857. @acid_rain_bitmap.fill_rect(6-i, i*8, 1, 8, midGreen)
  1858. end
  1859. @acid_rain_splash = Bitmap.new(8, 5)
  1860. @acid_rain_splash.fill_rect(1, 0, 6, 1, white)
  1861. @acid_rain_splash.fill_rect(1, 4, 6, 1, white)
  1862. @acid_rain_splash.fill_rect(0, 1, 1, 3, white)
  1863. @acid_rain_splash.fill_rect(7, 1, 1, 3, white)
  1864. #-------------------------------------------------------------------------------
  1865.  
  1866. # Acid storm
  1867.  
  1868. @acid_storm_bitmap = Bitmap.new(34, 64)
  1869. for i in 0..31
  1870. @acid_storm_bitmap.fill_rect(33-i, i*2, 1, 2, khaki)
  1871. @acid_storm_bitmap.fill_rect(32-i, i*2, 1, 2, khaki)
  1872. @acid_storm_bitmap.fill_rect(31-i, i*2, 1, 2, midGreen)
  1873. end
  1874. #-------------------------------------------------------------------------------
  1875.  
  1876. # Sepia rain
  1877.  
  1878. sepia_color = Color.new(167, 149, 139, 255)
  1879. sepia_colortwo = Color.new(100, 75, 63, 255)
  1880.  
  1881. @sepia_rain_bitmap = Bitmap.new(7, 56)
  1882. for i in 0..6
  1883. @sepia_rain_bitmap.fill_rect(6-i, i*8, 1, 8, sepia_colortwo)
  1884. end
  1885. @sepia_rain_splash = Bitmap.new(8, 5)
  1886. @sepia_rain_splash.fill_rect(1, 0, 6, 1, sepia_colortwo)
  1887. @sepia_rain_splash.fill_rect(1, 4, 6, 1, sepia_color)
  1888. @sepia_rain_splash.fill_rect(0, 1, 1, 3, sepia_colortwo)
  1889. @sepia_rain_splash.fill_rect(7, 1, 1, 3, sepia_color)
  1890. #-------------------------------------------------------------------------------
  1891.  
  1892. # Sepia storm
  1893.  
  1894. @sepia_storm_bitmap = Bitmap.new(34, 64)
  1895. for i in 0..31
  1896. @sepia_storm_bitmap.fill_rect(33-i, i*2, 1, 2, sepia_colortwo)
  1897. @sepia_storm_bitmap.fill_rect(32-i, i*2, 1, 2, sepia_colortwo)
  1898. @sepia_storm_bitmap.fill_rect(31-i, i*2, 1, 2, sepia_color)
  1899. end
  1900. #-------------------------------------------------------------------------------
  1901.  
  1902. # Yellow leaves
  1903.  
  1904. @yellow_leaf_bitmaps = []
  1905.  
  1906. # 1st leaf bitmap
  1907. @yellow_leaf_bitmaps[0] = Bitmap.new(8, 8)
  1908. @yellow_leaf_bitmaps[0].set_pixel(1, 0, darkYellow)
  1909. @yellow_leaf_bitmaps[0].set_pixel(1, 1, midYellow)
  1910. @yellow_leaf_bitmaps[0].set_pixel(2, 1, darkYellow)
  1911. @yellow_leaf_bitmaps[0].set_pixel(2, 2, darkYellowtwo)
  1912. @yellow_leaf_bitmaps[0].set_pixel(3, 2, darkYellow)
  1913. @yellow_leaf_bitmaps[0].set_pixel(4, 2, darkYellowtwo)
  1914. @yellow_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midYellow)
  1915. @yellow_leaf_bitmaps[0].set_pixel(5, 3, darkYellowtwo)
  1916. @yellow_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midYellow)
  1917. @yellow_leaf_bitmaps[0].set_pixel(4, 4, darkYellow)
  1918. @yellow_leaf_bitmaps[0].set_pixel(5, 4, lightYellow)
  1919. @yellow_leaf_bitmaps[0].set_pixel(6, 4, darkYellowtwo)
  1920. @yellow_leaf_bitmaps[0].set_pixel(3, 5, midYellow)
  1921. @yellow_leaf_bitmaps[0].set_pixel(4, 5, darkYellow)
  1922. @yellow_leaf_bitmaps[0].set_pixel(5, 5, darkYellowtwo)
  1923. @yellow_leaf_bitmaps[0].set_pixel(6, 5, lightYellow)
  1924. @yellow_leaf_bitmaps[0].set_pixel(4, 6, midYellow)
  1925. @yellow_leaf_bitmaps[0].set_pixel(5, 6, darkYellow)
  1926. @yellow_leaf_bitmaps[0].set_pixel(6, 6, lightYellow)
  1927. @yellow_leaf_bitmaps[0].set_pixel(6, 7, darkYellowtwo)
  1928.  
  1929. # 2nd leaf bitmap
  1930. @yellow_leaf_bitmaps[1] = Bitmap.new(8, 8)
  1931. @yellow_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midYellow)
  1932. @yellow_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, darkYellowtwo)
  1933. @yellow_leaf_bitmaps[1].set_pixel(4, 2, lightYellow)
  1934. @yellow_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkYellow)
  1935. @yellow_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightYellow)
  1936. @yellow_leaf_bitmaps[1].set_pixel(2, 4, midYellow)
  1937. @yellow_leaf_bitmaps[1].set_pixel(3, 4, darkYellow)
  1938. @yellow_leaf_bitmaps[1].set_pixel(4, 4, darkYellowtwo)
  1939. @yellow_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightYellow)
  1940. @yellow_leaf_bitmaps[1].set_pixel(3, 5, midYellow)
  1941. @yellow_leaf_bitmaps[1].set_pixel(4, 5, darkYellow)
  1942. @yellow_leaf_bitmaps[1].set_pixel(5, 5, darkYellowtwo)
  1943. @yellow_leaf_bitmaps[1].set_pixel(6, 5, lightYellow)
  1944. @yellow_leaf_bitmaps[1].set_pixel(5, 6, darkYellow)
  1945. @yellow_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, darkYellowtwo)
  1946.  
  1947. # 3rd leaf bitmap
  1948. @yellow_leaf_bitmaps[2] = Bitmap.new(8, 8)
  1949. @yellow_leaf_bitmaps[2].set_pixel(1, 1, darkYellow)
  1950. @yellow_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midYellow)
  1951. @yellow_leaf_bitmaps[2].set_pixel(2, 3, midYellow)
  1952. @yellow_leaf_bitmaps[2].set_pixel(3, 3, darkYellow)
  1953. @yellow_leaf_bitmaps[2].set_pixel(4, 3, midYellow)
  1954. @yellow_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midYellow)
  1955. @yellow_leaf_bitmaps[2].set_pixel(4, 4, darkYellow)
  1956. @yellow_leaf_bitmaps[2].set_pixel(5, 4, lightYellow)
  1957. @yellow_leaf_bitmaps[2].set_pixel(3, 5, midYellow)
  1958. @yellow_leaf_bitmaps[2].set_pixel(4, 5, darkYellow)
  1959. @yellow_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, darkYellowtwo)
  1960. @yellow_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midYellow)
  1961. @yellow_leaf_bitmaps[2].set_pixel(6, 6, lightYellow)
  1962. @yellow_leaf_bitmaps[2].set_pixel(6, 7, darkYellowtwo)
  1963.  
  1964. # 4th leaf bitmap
  1965. @yellow_leaf_bitmaps[3] = Bitmap.new(8, 8)
  1966. @yellow_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkYellow)
  1967. @yellow_leaf_bitmaps[3].set_pixel(1, 4, midYellow)
  1968. @yellow_leaf_bitmaps[3].set_pixel(2, 4, darkYellowtwo)
  1969. @yellow_leaf_bitmaps[3].set_pixel(3, 4, lightYellow)
  1970. @yellow_leaf_bitmaps[3].set_pixel(4, 4, darkYellow)
  1971. @yellow_leaf_bitmaps[3].set_pixel(7, 4, midYellow)
  1972. @yellow_leaf_bitmaps[3].set_pixel(1, 5, darkYellow)
  1973. @yellow_leaf_bitmaps[3].set_pixel(2, 5, midYellow)
  1974. @yellow_leaf_bitmaps[3].set_pixel(3, 5, lightYellow)
  1975. @yellow_leaf_bitmaps[3].set_pixel(4, 5, lightYellowtwo)
  1976. @yellow_leaf_bitmaps[3].set_pixel(5, 5, lightYellow)
  1977. @yellow_leaf_bitmaps[3].set_pixel(6, 5, darkYellowtwo)
  1978. @yellow_leaf_bitmaps[3].set_pixel(7, 5, midYellow)
  1979. @yellow_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midYellow)
  1980. @yellow_leaf_bitmaps[3].set_pixel(4, 6, lightYellow)
  1981. @yellow_leaf_bitmaps[3].set_pixel(5, 6, darkYellowtwo)
  1982. @yellow_leaf_bitmaps[3].set_pixel(6, 6, midYellow)
  1983.  
  1984. # 5th leaf bitmap
  1985. @yellow_leaf_bitmaps[4] = Bitmap.new(8, 8)
  1986. @yellow_leaf_bitmaps[4].set_pixel(6, 2, midYellow)
  1987. @yellow_leaf_bitmaps[4].set_pixel(7, 2, darkYellow)
  1988. @yellow_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midYellow)
  1989. @yellow_leaf_bitmaps[4].set_pixel(6, 3, darkYellowtwo)
  1990. @yellow_leaf_bitmaps[4].set_pixel(2, 4, darkYellow)
  1991. @yellow_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, darkYellowtwo)
  1992. @yellow_leaf_bitmaps[4].set_pixel(5, 4, lightYellow)
  1993. @yellow_leaf_bitmaps[4].set_pixel(6, 4, darkYellowtwo)
  1994. @yellow_leaf_bitmaps[4].set_pixel(1, 5, midYellow)
  1995. @yellow_leaf_bitmaps[4].set_pixel(2, 5, darkYellowtwo)
  1996. @yellow_leaf_bitmaps[4].set_pixel(3, 5, lightYellow)
  1997. @yellow_leaf_bitmaps[4].set_pixel(4, 5, lightYellowtwo)
  1998. @yellow_leaf_bitmaps[4].set_pixel(5, 5, midYellow)
  1999. @yellow_leaf_bitmaps[4].set_pixel(2, 6, darkYellow)
  2000. @yellow_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midYellow)
  2001.  
  2002. # 6th leaf bitmap
  2003. @yellow_leaf_bitmaps[5] = Bitmap.new(8, 8)
  2004. @yellow_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midYellow)
  2005. @yellow_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midYellow)
  2006. @yellow_leaf_bitmaps[5].set_pixel(6, 3, darkYellowtwo)
  2007. @yellow_leaf_bitmaps[5].set_pixel(3, 4, midYellow)
  2008. @yellow_leaf_bitmaps[5].set_pixel(4, 4, darkYellowtwo)
  2009. @yellow_leaf_bitmaps[5].set_pixel(5, 4, lightYellow)
  2010. @yellow_leaf_bitmaps[5].set_pixel(6, 4, lightYellowtwo)
  2011. @yellow_leaf_bitmaps[5].set_pixel(1, 5, midYellow)
  2012. @yellow_leaf_bitmaps[5].set_pixel(2, 5, darkYellowtwo)
  2013. @yellow_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, lightYellowtwo)
  2014. @yellow_leaf_bitmaps[5].set_pixel(5, 5, lightYellow)
  2015. @yellow_leaf_bitmaps[5].set_pixel(2, 6, midYellow)
  2016. @yellow_leaf_bitmaps[5].set_pixel(3, 6, darkYellowtwo)
  2017. @yellow_leaf_bitmaps[5].set_pixel(4, 6, lightYellow)
  2018.  
  2019. # 7th leaf bitmap
  2020. @yellow_leaf_bitmaps[6] = Bitmap.new(8, 8)
  2021. @yellow_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midYellow)
  2022. @yellow_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midYellow)
  2023. @yellow_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkYellow)
  2024. @yellow_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midYellow)
  2025. @yellow_leaf_bitmaps[6].set_pixel(5, 3, darkYellowtwo)
  2026. @yellow_leaf_bitmaps[6].set_pixel(2, 4, midYellow)
  2027. @yellow_leaf_bitmaps[6].set_pixel(3, 4, darkYellowtwo)
  2028. @yellow_leaf_bitmaps[6].set_pixel(4, 4, lightYellow)
  2029. @yellow_leaf_bitmaps[6].set_pixel(5, 4, midYellow)
  2030. @yellow_leaf_bitmaps[6].set_pixel(1, 5, midYellow)
  2031. @yellow_leaf_bitmaps[6].set_pixel(2, 5, darkYellowtwo)
  2032. @yellow_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midYellow)
  2033. @yellow_leaf_bitmaps[6].set_pixel(1, 6, darkYellow)
  2034. @yellow_leaf_bitmaps[6].set_pixel(2, 6, midYellow)
  2035.  
  2036. # 8th leaf bitmap
  2037. @yellow_leaf_bitmaps[7] = Bitmap.new(8, 8)
  2038. @yellow_leaf_bitmaps[7].set_pixel(6, 1, midYellow)
  2039. @yellow_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midYellow)
  2040. @yellow_leaf_bitmaps[7].set_pixel(3, 3, darkYellow)
  2041. @yellow_leaf_bitmaps[7].set_pixel(2, 4, darkYellow)
  2042. @yellow_leaf_bitmaps[7].set_pixel(3, 4, midYellow)
  2043. @yellow_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, darkYellowtwo)
  2044. @yellow_leaf_bitmaps[7].set_pixel(1, 5, darkYellow)
  2045. @yellow_leaf_bitmaps[7].set_pixel(2, 5, midYellow)
  2046. @yellow_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightYellow)
  2047. @yellow_leaf_bitmaps[7].set_pixel(2, 6, midYellow)
  2048. @yellow_leaf_bitmaps[7].set_pixel(3, 6, lightYellow)
  2049.  
  2050. # 9th leaf bitmap
  2051. @yellow_leaf_bitmaps[8] = Bitmap.new(8, 8)
  2052. @yellow_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midYellow)
  2053. @yellow_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midYellow)
  2054. @yellow_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkYellow)
  2055. @yellow_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midYellow)
  2056. @yellow_leaf_bitmaps[8].set_pixel(5, 3, darkYellowtwo)
  2057. @yellow_leaf_bitmaps[8].set_pixel(2, 4, midYellow)
  2058. @yellow_leaf_bitmaps[8].set_pixel(3, 4, darkYellowtwo)
  2059. @yellow_leaf_bitmaps[8].set_pixel(4, 4, lightYellow)
  2060. @yellow_leaf_bitmaps[8].set_pixel(5, 4, midYellow)
  2061. @yellow_leaf_bitmaps[8].set_pixel(1, 5, midYellow)
  2062. @yellow_leaf_bitmaps[8].set_pixel(2, 5, darkYellowtwo)
  2063. @yellow_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midYellow)
  2064. @yellow_leaf_bitmaps[8].set_pixel(1, 6, darkYellow)
  2065. @yellow_leaf_bitmaps[8].set_pixel(2, 6, midYellow)
  2066.  
  2067. # 10th leaf bitmap
  2068. @yellow_leaf_bitmaps[9] = Bitmap.new(8, 8)
  2069. @yellow_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midYellow)
  2070. @yellow_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midYellow)
  2071. @yellow_leaf_bitmaps[9].set_pixel(6, 3, darkYellowtwo)
  2072. @yellow_leaf_bitmaps[9].set_pixel(3, 4, midYellow)
  2073. @yellow_leaf_bitmaps[9].set_pixel(4, 4, darkYellowtwo)
  2074. @yellow_leaf_bitmaps[9].set_pixel(5, 4, lightYellow)
  2075. @yellow_leaf_bitmaps[9].set_pixel(6, 4, lightYellowtwo)
  2076. @yellow_leaf_bitmaps[9].set_pixel(1, 5, midYellow)
  2077. @yellow_leaf_bitmaps[9].set_pixel(2, 5, darkYellowtwo)
  2078. @yellow_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, lightYellowtwo)
  2079. @yellow_leaf_bitmaps[9].set_pixel(5, 5, lightYellow)
  2080. @yellow_leaf_bitmaps[9].set_pixel(2, 6, midYellow)
  2081. @yellow_leaf_bitmaps[9].set_pixel(3, 6, darkYellowtwo)
  2082. @yellow_leaf_bitmaps[9].set_pixel(4, 6, lightYellow)
  2083.  
  2084. # 11th leaf bitmap
  2085. @yellow_leaf_bitmaps[10] = Bitmap.new(8, 8)
  2086. @yellow_leaf_bitmaps[10].set_pixel(6, 2, midYellow)
  2087. @yellow_leaf_bitmaps[10].set_pixel(7, 2, darkYellow)
  2088. @yellow_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midYellow)
  2089. @yellow_leaf_bitmaps[10].set_pixel(6, 3, darkYellowtwo)
  2090. @yellow_leaf_bitmaps[10].set_pixel(2, 4, darkYellow)
  2091. @yellow_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, darkYellowtwo)
  2092. @yellow_leaf_bitmaps[10].set_pixel(5, 4, lightYellow)
  2093. @yellow_leaf_bitmaps[10].set_pixel(6, 4, darkYellowtwo)
  2094. @yellow_leaf_bitmaps[10].set_pixel(1, 5, midYellow)
  2095. @yellow_leaf_bitmaps[10].set_pixel(2, 5, darkYellowtwo)
  2096. @yellow_leaf_bitmaps[10].set_pixel(3, 5, lightYellow)
  2097. @yellow_leaf_bitmaps[10].set_pixel(4, 5, lightYellowtwo)
  2098. @yellow_leaf_bitmaps[10].set_pixel(5, 5, midYellow)
  2099. @yellow_leaf_bitmaps[10].set_pixel(2, 6, darkYellow)
  2100. @yellow_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midYellow)
  2101.  
  2102. # 12th leaf bitmap
  2103. @yellow_leaf_bitmaps[11] = Bitmap.new(8, 8)
  2104. @yellow_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkYellow)
  2105. @yellow_leaf_bitmaps[11].set_pixel(1, 4, midYellow)
  2106. @yellow_leaf_bitmaps[11].set_pixel(2, 4, darkYellowtwo)
  2107. @yellow_leaf_bitmaps[11].set_pixel(3, 4, lightYellow)
  2108. @yellow_leaf_bitmaps[11].set_pixel(4, 4, darkYellow)
  2109. @yellow_leaf_bitmaps[11].set_pixel(7, 4, midYellow)
  2110. @yellow_leaf_bitmaps[11].set_pixel(1, 5, darkYellow)
  2111. @yellow_leaf_bitmaps[11].set_pixel(2, 5, midYellow)
  2112. @yellow_leaf_bitmaps[11].set_pixel(3, 5, lightYellow)
  2113. @yellow_leaf_bitmaps[11].set_pixel(4, 5, lightYellowtwo)
  2114. @yellow_leaf_bitmaps[11].set_pixel(5, 5, lightYellow)
  2115. @yellow_leaf_bitmaps[11].set_pixel(6, 5, darkYellowtwo)
  2116. @yellow_leaf_bitmaps[11].set_pixel(7, 5, midYellow)
  2117. @yellow_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midYellow)
  2118. @yellow_leaf_bitmaps[11].set_pixel(4, 6, lightYellow)
  2119. @yellow_leaf_bitmaps[11].set_pixel(5, 6, darkYellowtwo)
  2120. @yellow_leaf_bitmaps[11].set_pixel(6, 6, midYellow)
  2121.  
  2122. # 13th leaf bitmap
  2123. @yellow_leaf_bitmaps[12] = Bitmap.new(8, 8)
  2124. @yellow_leaf_bitmaps[12].set_pixel(1, 1, darkYellow)
  2125. @yellow_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midYellow)
  2126. @yellow_leaf_bitmaps[12].set_pixel(2, 3, midYellow)
  2127. @yellow_leaf_bitmaps[12].set_pixel(3, 3, darkYellow)
  2128. @yellow_leaf_bitmaps[12].set_pixel(4, 3, midYellow)
  2129. @yellow_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midYellow)
  2130. @yellow_leaf_bitmaps[12].set_pixel(4, 4, darkYellow)
  2131. @yellow_leaf_bitmaps[12].set_pixel(5, 4, lightYellow)
  2132. @yellow_leaf_bitmaps[12].set_pixel(3, 5, midYellow)
  2133. @yellow_leaf_bitmaps[12].set_pixel(4, 5, darkYellow)
  2134. @yellow_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, darkYellowtwo)
  2135. @yellow_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midYellow)
  2136. @yellow_leaf_bitmaps[12].set_pixel(6, 6, lightYellow)
  2137. @yellow_leaf_bitmaps[12].set_pixel(6, 7, darkYellowtwo)
  2138.  
  2139. #-------------------------------------------------------------------------------
  2140. @sparkle_bitmaps = []
  2141.  
  2142. lightBlue = Color.new(181, 244, 255, 255)
  2143. midBlue = Color.new(126, 197, 235, 255)
  2144. darkBlue = Color.new(77, 136, 225, 255)
  2145.  
  2146. # 1st sparkle bitmap
  2147. @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  2148. @sparkle_bitmaps[0].set_pixel(3, 3, darkBlue)
  2149.  
  2150. # 2nd sparkle bitmap
  2151. @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  2152. @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, darkBlue)
  2153. @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, darkBlue)
  2154. @sparkle_bitmaps[1].set_pixel(3, 3, midBlue)
  2155.  
  2156. # 3rd sparkle bitmap
  2157. @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  2158. @sparkle_bitmaps[2].set_pixel(1, 1, darkBlue)
  2159. @sparkle_bitmaps[2].set_pixel(5, 1, darkBlue)
  2160. @sparkle_bitmaps[2].set_pixel(2, 2, midBlue)
  2161. @sparkle_bitmaps[2].set_pixel(4, 2, midBlue)
  2162. @sparkle_bitmaps[2].set_pixel(3, 3, lightBlue)
  2163. @sparkle_bitmaps[2].set_pixel(2, 4, midBlue)
  2164. @sparkle_bitmaps[2].set_pixel(4, 4, midBlue)
  2165. @sparkle_bitmaps[2].set_pixel(1, 5, darkBlue)
  2166. @sparkle_bitmaps[2].set_pixel(5, 5, darkBlue)
  2167.  
  2168. # 4th sparkle bitmap
  2169. @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  2170. @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, darkBlue)
  2171. @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, darkBlue)
  2172. @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, midBlue)
  2173. @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, midBlue)
  2174. @sparkle_bitmaps[3].set_pixel(3, 3, lightBlue)
  2175.  
  2176. # 5th sparkle bitmap
  2177. @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  2178. @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, midBlue)
  2179. @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, darkBlue)
  2180. @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, darkBlue)
  2181. @sparkle_bitmaps[4].set_pixel(3, 3, lightBlue)
  2182. @sparkle_bitmaps[4].set_pixel(1, 1, darkBlue)
  2183. @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  2184. @sparkle_bitmaps[4].set_pixel(1, 5, darkBlue)
  2185. @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  2186.  
  2187. # 6th sparkle bitmap
  2188. @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  2189. @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, darkBlue)
  2190. @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, darkBlue)
  2191. @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, midBlue)
  2192. @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, midBlue)
  2193. @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, midBlue)
  2194. @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, lightBlue)
  2195. @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, lightBlue)
  2196. @sparkle_bitmaps[5].set_pixel(3, 3, white)
  2197.  
  2198. # 7th sparkle bitmap
  2199. @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  2200. @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, midBlue)
  2201. @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, midBlue)
  2202. @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, darkBlue)
  2203. @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, darkBlue)
  2204. @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, lightBlue)
  2205. @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, midBlue)
  2206. @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, midBlue)
  2207. @sparkle_bitmaps[6].set_pixel(3, 3, white)
  2208. #-------------------------------------------------------------------------------
  2209. # Meteor bitmap
  2210.  
  2211. @meteor_bitmap = Bitmap.new(14, 12)
  2212. @meteor_bitmap.fill_rect(0, 8, 5, 4, paleOrange)
  2213. @meteor_bitmap.fill_rect(1, 7, 6, 4, paleOrange)
  2214. @meteor_bitmap.set_pixel(7, 8, paleOrange)
  2215. @meteor_bitmap.fill_rect(1, 8, 2, 2, brightOrange)
  2216. @meteor_bitmap.set_pixel(2, 7, brightOrange)
  2217. @meteor_bitmap.fill_rect(3, 6, 2, 1, brightOrange)
  2218. @meteor_bitmap.set_pixel(3, 8, brightOrange)
  2219. @meteor_bitmap.set_pixel(3, 10, brightOrange)
  2220. @meteor_bitmap.set_pixel(4, 9, brightOrange)
  2221. @meteor_bitmap.fill_rect(5, 5, 1, 5, brightOrange)
  2222. @meteor_bitmap.fill_rect(6, 4, 1, 5, brightOrange)
  2223. @meteor_bitmap.fill_rect(7, 3, 1, 5, brightOrange)
  2224. @meteor_bitmap.fill_rect(8, 6, 1, 2, brightOrange)
  2225. @meteor_bitmap.set_pixel(9, 5, brightOrange)
  2226. @meteor_bitmap.set_pixel(3, 8, midRed)
  2227. @meteor_bitmap.fill_rect(4, 7, 1, 2, midRed)
  2228. @meteor_bitmap.set_pixel(4, 5, midRed)
  2229. @meteor_bitmap.set_pixel(5, 4, midRed)
  2230. @meteor_bitmap.set_pixel(5, 6, midRed)
  2231. @meteor_bitmap.set_pixel(6, 5, midRed)
  2232. @meteor_bitmap.set_pixel(6, 7, midRed)
  2233. @meteor_bitmap.fill_rect(7, 4, 1, 3, midRed)
  2234. @meteor_bitmap.fill_rect(8, 3, 1, 3, midRed)
  2235. @meteor_bitmap.fill_rect(9, 2, 1, 3, midRed)
  2236. @meteor_bitmap.fill_rect(10, 1, 1, 3, midRed)
  2237. @meteor_bitmap.fill_rect(11, 0, 1, 3, midRed)
  2238. @meteor_bitmap.fill_rect(12, 0, 1, 2, midRed)
  2239. @meteor_bitmap.set_pixel(13, 0, midRed)
  2240.  
  2241. # Impact bitmap
  2242.  
  2243. @impact_bitmap = Bitmap.new(22, 11)
  2244. @impact_bitmap.fill_rect(0, 5, 1, 2, brightOrange)
  2245. @impact_bitmap.set_pixel(1, 4, brightOrange)
  2246. @impact_bitmap.set_pixel(1, 6, brightOrange)
  2247. @impact_bitmap.set_pixel(2, 3, brightOrange)
  2248. @impact_bitmap.set_pixel(2, 7, brightOrange)
  2249. @impact_bitmap.set_pixel(3, 2, midRed)
  2250. @impact_bitmap.set_pixel(3, 7, midRed)
  2251. @impact_bitmap.set_pixel(4, 2, brightOrange)
  2252. @impact_bitmap.set_pixel(4, 8, brightOrange)
  2253. @impact_bitmap.set_pixel(5, 2, midRed)
  2254. @impact_bitmap.fill_rect(5, 8, 3, 1, brightOrange)
  2255. @impact_bitmap.set_pixel(6, 1, midRed)
  2256. @impact_bitmap.fill_rect(7, 1, 8, 1, brightOrange)
  2257. @impact_bitmap.fill_rect(7, 9, 8, 1, midRed)
  2258. #-------------------------------------------------------------------------------
  2259. # Flame meteor bitmap
  2260.  
  2261. @flame_meteor_bitmap = Bitmap.new(14, 12)
  2262. @flame_meteor_bitmap.fill_rect(0, 8, 5, 4, brightOrange)
  2263. @flame_meteor_bitmap.fill_rect(1, 7, 6, 4, brightOrange)
  2264. @flame_meteor_bitmap.set_pixel(7, 8, brightOrange)
  2265. @flame_meteor_bitmap.fill_rect(1, 8, 2, 2, midYellow)
  2266. @flame_meteor_bitmap.set_pixel(2, 7, midYellow)
  2267. @flame_meteor_bitmap.fill_rect(3, 6, 2, 1, midYellow)
  2268. @flame_meteor_bitmap.set_pixel(3, 8, midYellow)
  2269. @flame_meteor_bitmap.set_pixel(3, 10, midYellow)
  2270. @flame_meteor_bitmap.set_pixel(4, 9, midYellow)
  2271. @flame_meteor_bitmap.fill_rect(5, 5, 1, 5, midYellow)
  2272. @flame_meteor_bitmap.fill_rect(6, 4, 1, 5, midYellow)
  2273. @flame_meteor_bitmap.fill_rect(7, 3, 1, 5, midYellow)
  2274. @flame_meteor_bitmap.fill_rect(8, 6, 1, 2, midYellow)
  2275. @flame_meteor_bitmap.set_pixel(9, 5, midYellow)
  2276. @flame_meteor_bitmap.set_pixel(3, 8, lightYellow)
  2277. @flame_meteor_bitmap.fill_rect(4, 7, 1, 2, lightYellowtwo)
  2278. @flame_meteor_bitmap.set_pixel(4, 5, lightYellow)
  2279. @flame_meteor_bitmap.set_pixel(5, 4, lightYellow)
  2280. @flame_meteor_bitmap.set_pixel(5, 6, lightYellow)
  2281. @flame_meteor_bitmap.set_pixel(6, 5, lightYellow)
  2282. @flame_meteor_bitmap.set_pixel(6, 7, lightYellow)
  2283. @flame_meteor_bitmap.fill_rect(7, 4, 1, 3, lightYellow)
  2284. @flame_meteor_bitmap.fill_rect(8, 3, 1, 3, lightYellow)
  2285. @flame_meteor_bitmap.fill_rect(9, 2, 1, 3, lightYellow)
  2286. @flame_meteor_bitmap.fill_rect(10, 1, 1, 3, lightYellow)
  2287. @flame_meteor_bitmap.fill_rect(11, 0, 1, 3, lightYellow)
  2288. @flame_meteor_bitmap.fill_rect(12, 0, 1, 2, lightYellow)
  2289. @flame_meteor_bitmap.set_pixel(13, 0, lightYellow)
  2290.  
  2291. # Flame impact bitmap
  2292.  
  2293. @flame_impact_bitmap = Bitmap.new(22, 11)
  2294. @flame_impact_bitmap.fill_rect(0, 5, 1, 2, midYellow)
  2295. @flame_impact_bitmap.set_pixel(1, 4, midYellow)
  2296. @flame_impact_bitmap.set_pixel(1, 6, midYellow)
  2297. @flame_impact_bitmap.set_pixel(2, 3, midYellow)
  2298. @flame_impact_bitmap.set_pixel(2, 7, midYellow)
  2299. @flame_impact_bitmap.set_pixel(3, 2, midYellow)
  2300. @flame_impact_bitmap.set_pixel(3, 7, lightYellow)
  2301. @flame_impact_bitmap.set_pixel(4, 2, brightOrange)
  2302. @flame_impact_bitmap.set_pixel(4, 8, brightOrange)
  2303. @flame_impact_bitmap.set_pixel(5, 2, lightYellow)
  2304. @flame_impact_bitmap.fill_rect(5, 8, 3, 1, midYellow)
  2305. @flame_impact_bitmap.set_pixel(6, 1, lightYellow)
  2306. @flame_impact_bitmap.fill_rect(7, 1, 8, 1, midYellow)
  2307. @flame_impact_bitmap.fill_rect(7, 9, 8, 1, lightYellow)
  2308. #-------------------------------------------------------------------------------
  2309.  
  2310. # Ash bitmaps
  2311.  
  2312. @ash_bitmaps = []
  2313. @ash_bitmaps[0] = Bitmap.new(3, 3)
  2314. @ash_bitmaps[0].fill_rect(0, 1, 1, 3, lightGrey)
  2315. @ash_bitmaps[0].fill_rect(1, 0, 3, 1, lightGrey)
  2316. @ash_bitmaps[0].set_pixel(1, 1, white)
  2317. @ash_bitmaps[1] = Bitmap.new(3, 3)
  2318. @ash_bitmaps[1].fill_rect(0, 1, 1, 3, grey)
  2319. @ash_bitmaps[1].fill_rect(1, 0, 3, 1, grey)
  2320. @ash_bitmaps[1].set_pixel(1, 1, lightGrey)
  2321. #-------------------------------------------------------------------------------
  2322.  
  2323. # Bubble bitmaps
  2324.  
  2325. @bubble_bitmaps = []
  2326. darkBlue = Color.new(77, 136, 225, 160)
  2327. aqua = Color.new(197, 253, 254, 160)
  2328. lavender = Color.new(225, 190, 244, 160)
  2329.  
  2330. # first bubble bitmap
  2331. @bubble_bitmaps[0] = Bitmap.new(24, 24)
  2332. @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, darkBlue)
  2333. @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, darkBlue)
  2334. @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, darkBlue)
  2335. @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, darkBlue)
  2336. @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, darkBlue)
  2337. @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, darkBlue)
  2338. @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, darkBlue)
  2339. @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, darkBlue)
  2340. @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, aqua)
  2341. @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, aqua)
  2342. @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, aqua)
  2343. @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, aqua)
  2344. @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, aqua)
  2345. @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, aqua)
  2346. @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, lavender)
  2347. @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, lavender)
  2348. @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, lavender)
  2349. @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, lavender)
  2350. @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, lavender)
  2351. @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, lavender)
  2352. @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, lavender)
  2353. @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, white)
  2354. @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, white)
  2355. @bubble_bitmaps[0].set_pixel(17, 6, white)
  2356.  
  2357. # second bubble bitmap
  2358. @bubble_bitmaps[1] = Bitmap.new(14, 15)
  2359. @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, darkBlue)
  2360. @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, darkBlue)
  2361. @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, darkBlue)
  2362. @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, darkBlue)
  2363. @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, darkBlue)
  2364. @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  2365. @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, aqua)
  2366. @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, aqua)
  2367. @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, aqua)
  2368. @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  2369. @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, lavender)
  2370. @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, lavender)
  2371. @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, lavender)
  2372. @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, white)
  2373. @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, white)
  2374. @bubble_bitmaps[1].set_pixel(7, 4, white)
  2375. @bubble_bitmaps[1].set_pixel(8, 5, white)
  2376.  
  2377. # Other option for bubbles
  2378. @bubble2_bitmaps = Array.new
  2379. darkSteelGray = Color.new(145, 150, 155, 160)
  2380. midSteelGray = Color.new(180, 180, 185, 160)
  2381. lightSteelGray = Color.new(225, 225, 235, 160)
  2382. steelBlue = Color.new(145, 145, 165, 160)
  2383. lightSteelBlue = Color.new(165, 170, 180, 160)
  2384. transparentWhite = Color.new(255, 255, 255, 160)
  2385.  
  2386. # first bubble 2 bitmap
  2387. @bubble2_bitmaps[0] = Bitmap.new(6, 6)
  2388. @bubble2_bitmaps[0].fill_rect(0, 0, 6, 6, darkSteelGray)
  2389. @bubble2_bitmaps[0].fill_rect(0, 2, 6, 2, midSteelGray)
  2390. @bubble2_bitmaps[0].fill_rect(2, 0, 2, 6, midSteelGray)
  2391. @bubble2_bitmaps[0].fill_rect(2, 2, 2, 2, lightSteelGray)
  2392.  
  2393. # second bubble 2 bitmap
  2394. @bubble2_bitmaps[1] = Bitmap.new(8, 8)
  2395. @bubble2_bitmaps[1].fill_rect(0, 2, 2, 4, steelBlue)
  2396. @bubble2_bitmaps[1].fill_rect(2, 0, 4, 2, darkSteelGray)
  2397. @bubble2_bitmaps[1].fill_rect(6, 2, 2, 2, darkSteelGray)
  2398. @bubble2_bitmaps[1].fill_rect(2, 6, 2, 2, darkSteelGray)
  2399. @bubble2_bitmaps[1].fill_rect(6, 4, 2, 2, midSteelGray)
  2400. @bubble2_bitmaps[1].fill_rect(4, 6, 2, 2, midSteelGray)
  2401. @bubble2_bitmaps[1].fill_rect(4, 4, 2, 2, lightSteelBlue)
  2402. @bubble2_bitmaps[1].fill_rect(2, 4, 2, 2, lightSteelGray)
  2403. @bubble2_bitmaps[1].fill_rect(4, 2, 2, 2, lightSteelGray)
  2404. @bubble2_bitmaps[1].fill_rect(2, 2, 2, 2, transparentWhite)
  2405.  
  2406. # third bubble 2 bitmap
  2407. @bubble2_bitmaps[2] = Bitmap.new(8, 10)
  2408. @bubble2_bitmaps[2].fill_rect(8, 2, 2, 4, steelBlue)
  2409. @bubble2_bitmaps[2].fill_rect(2, 0, 8, 2, darkSteelGray)
  2410. @bubble2_bitmaps[2].fill_rect(2, 6, 8, 2, darkSteelGray)
  2411. @bubble2_bitmaps[2].fill_rect(4, 0, 2, 2, midSteelGray)
  2412. @bubble2_bitmaps[2].fill_rect(4, 6, 2, 2, midSteelGray)
  2413. @bubble2_bitmaps[2].fill_rect(0, 2, 2, 2, midSteelGray)
  2414. @bubble2_bitmaps[2].fill_rect(0, 4, 2, 2, lightSteelBlue)
  2415. @bubble2_bitmaps[2].fill_rect(2, 2, 6, 4, lightSteelGray)
  2416. @bubble2_bitmaps[2].fill_rect(2, 2, 4, 2, transparentWhite)
  2417. @bubble2_bitmaps[2].fill_rect(4, 4, 2, 2, transparentWhite)
  2418.  
  2419. # fourth bubble 2 bitmap
  2420. @bubble2_bitmaps[3] = Bitmap.new(14, 14)
  2421. @bubble2_bitmaps[3].fill_rect(4, 0, 4, 2, steelBlue)
  2422. @bubble2_bitmaps[3].fill_rect(0, 4, 2, 4, steelBlue)
  2423. @bubble2_bitmaps[3].fill_rect(12, 4, 2, 4, steelBlue)
  2424. @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  2425. @bubble2_bitmaps[3].fill_rect(0, 6, 2, 2, darkSteelGray)
  2426. @bubble2_bitmaps[3].fill_rect(12, 6, 2, 2, darkSteelGray)
  2427. @bubble2_bitmaps[3].fill_rect(4, 12, 6, 2, darkSteelGray)
  2428. @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  2429. @bubble2_bitmaps[3].fill_rect(2, 2, 10, 10, midSteelGray)
  2430. @bubble2_bitmaps[3].fill_rect(6, 12, 2, 2, midSteelGray)
  2431. @bubble2_bitmaps[3].fill_rect(2, 4, 10, 6, lightSteelGray)
  2432. @bubble2_bitmaps[3].fill_rect(4, 2, 2, 2, lightSteelGray)
  2433. @bubble2_bitmaps[3].fill_rect(6, 10, 4, 2, lightSteelGray)
  2434. @bubble2_bitmaps[3].fill_rect(6, 4, 2, 2, transparentWhite)
  2435. @bubble2_bitmaps[3].fill_rect(4, 6, 2, 2, transparentWhite)
  2436. #-------------------------------------------------------------------------------
  2437.  
  2438. # Water bombs bitmap
  2439.  
  2440. @waterbomb_bitmap = Bitmap.new(8, 8)
  2441. @waterbomb_bitmap.fill_rect(0, 2, 2, 4, aqua)
  2442. @waterbomb_bitmap.fill_rect(2, 0, 4, 2, aqua)
  2443. @waterbomb_bitmap.fill_rect(6, 2, 2, 2, aqua)
  2444. @waterbomb_bitmap.fill_rect(2, 6, 2, 2, aqua)
  2445. @waterbomb_bitmap.fill_rect(6, 4, 2, 2, aqua)
  2446. @waterbomb_bitmap.fill_rect(4, 6, 2, 2, aqua)
  2447. @waterbomb_bitmap.fill_rect(4, 4, 2, 2, aqua)
  2448. @waterbomb_bitmap.fill_rect(2, 4, 2, 2, aqua)
  2449. @waterbomb_bitmap.fill_rect(4, 2, 2, 2, aqua)
  2450. @waterbomb_bitmap.fill_rect(2, 2, 2, 2, aqua)
  2451.  
  2452.  
  2453. # Water bombs impact bitmap
  2454.  
  2455. @waterbomb_impact_bitmap = Bitmap.new(8, 5)
  2456. @waterbomb_impact_bitmap.fill_rect(1, 0, 6, 1, aqua)
  2457. @waterbomb_impact_bitmap.fill_rect(1, 4, 6, 1, aqua)
  2458. @waterbomb_impact_bitmap.fill_rect(0, 1, 1, 3, aqua)
  2459. @waterbomb_impact_bitmap.fill_rect(7, 1, 1, 3, aqua)
  2460. @waterbomb_impact_bitmap.set_pixel(1, 0, aqua)
  2461. @waterbomb_impact_bitmap.set_pixel(0, 1, aqua)
  2462. #-------------------------------------------------------------------------------
  2463.  
  2464.  
  2465. # Icy bombs bitmap
  2466.  
  2467. @icybomb_bitmap = Bitmap.new(8, 8)
  2468. @icybomb_bitmap.fill_rect(0, 2, 2, 4, lightBlue)
  2469. @icybomb_bitmap.fill_rect(2, 0, 4, 2, lightBlue)
  2470. @icybomb_bitmap.fill_rect(6, 2, 2, 2, lightBlue)
  2471. @icybomb_bitmap.fill_rect(2, 6, 2, 2, lightBlue)
  2472. @icybomb_bitmap.fill_rect(6, 4, 2, 2, lightBlue)
  2473. @icybomb_bitmap.fill_rect(4, 6, 2, 2, lightBlue)
  2474. @icybomb_bitmap.fill_rect(4, 4, 2, 2, lightBlue)
  2475. @icybomb_bitmap.fill_rect(2, 4, 2, 2, lightBlue)
  2476. @icybomb_bitmap.fill_rect(4, 2, 2, 2, lightBlue)
  2477. @icybomb_bitmap.fill_rect(2, 2, 2, 2, lightBlue)
  2478.  
  2479.  
  2480. # Icy bombs impact bitmap
  2481.  
  2482. @icybomb_impact_bitmap = Bitmap.new(8, 5)
  2483. @icybomb_impact_bitmap.fill_rect(1, 0, 6, 1, lightBlue)
  2484. @icybomb_impact_bitmap.fill_rect(1, 4, 6, 1, lightBlue)
  2485. @icybomb_impact_bitmap.fill_rect(0, 1, 1, 3, lightBlue)
  2486. @icybomb_impact_bitmap.fill_rect(7, 1, 1, 3, lightBlue)
  2487. @icybomb_impact_bitmap.set_pixel(1, 0, lightBlue)
  2488. @icybomb_impact_bitmap.set_pixel(0, 1, lightBlue)
  2489. #-------------------------------------------------------------------------------
  2490.  
  2491.  
  2492. # Flare bombs bitmap
  2493.  
  2494. @flarebomb_bitmap = Bitmap.new(8, 8)
  2495. @flarebomb_bitmap.fill_rect(0, 2, 2, 4, midYellow)
  2496. @flarebomb_bitmap.fill_rect(2, 0, 4, 2, midYellow)
  2497. @flarebomb_bitmap.fill_rect(6, 2, 2, 2, midYellow)
  2498. @flarebomb_bitmap.fill_rect(2, 6, 2, 2, brightOrange)
  2499. @flarebomb_bitmap.fill_rect(6, 4, 2, 2, brightOrange)
  2500. @flarebomb_bitmap.fill_rect(4, 6, 2, 2, midYellow)
  2501. @flarebomb_bitmap.fill_rect(4, 4, 2, 2, brightOrange)
  2502. @flarebomb_bitmap.fill_rect(2, 4, 2, 2, midYellow)
  2503. @flarebomb_bitmap.fill_rect(4, 2, 2, 2, midYellow)
  2504. @flarebomb_bitmap.fill_rect(2, 2, 2, 2, midYellow)
  2505.  
  2506. # Flare bomb impact bitmap
  2507.  
  2508. @flarebomb_impact_bitmap = Bitmap.new(8, 5)
  2509. @flarebomb_impact_bitmap.fill_rect(1, 0, 6, 1, brightOrange)
  2510. @flarebomb_impact_bitmap.fill_rect(1, 4, 6, 1, brightOrange)
  2511. @flarebomb_impact_bitmap.fill_rect(0, 1, 1, 3, midYellow)
  2512. @flarebomb_impact_bitmap.fill_rect(7, 1, 1, 3, midYellow)
  2513. @flarebomb_impact_bitmap.set_pixel(1, 0, midYellow)
  2514. @flarebomb_impact_bitmap.set_pixel(0, 1, midYellow)
  2515. #-------------------------------------------------------------------------------
  2516.  
  2517. # Starburst bitmaps
  2518.  
  2519. @starburst_bitmaps = []
  2520.  
  2521. starburst_yellow = Color.new(233, 210, 142, 255)
  2522. starburst_yellowtwo = Color.new(219, 191, 95, 255)
  2523. starburst_lightyellow = Color.new(242, 229, 190, 255)
  2524. starburst_pink = Color.new(241, 185, 187, 255)
  2525. starburst_red = Color.new(196, 55, 84, 255)
  2526. starburst_redtwo = Color.new(178, 15, 56, 255)
  2527. starburst_cyan = Color.new(189, 225, 242, 255)
  2528. starburst_blue = Color.new(102, 181, 221, 255)
  2529. starburst_bluetwo = Color.new(5, 88, 168, 255)
  2530. starburst_lightgreen = Color.new(205, 246, 205, 255)
  2531. starburst_green = Color.new(88, 221, 89, 255)
  2532. starburst_greentwo = Color.new(44, 166, 0, 255)
  2533. starburst_purple = Color.new(216, 197, 255, 255)
  2534. starburst_violet = Color.new(155, 107, 255, 255)
  2535. starburst_violettwo = Color.new(71, 0, 222, 255)
  2536. starburst_lightorange = Color.new(255, 220, 177, 255)
  2537. starburst_orange = Color.new(255, 180, 85, 255)
  2538. starburst_orangetwo = Color.new(222, 124, 0, 255)
  2539.  
  2540. # 1st starburst bitmap
  2541. @starburst_bitmaps[0] = Bitmap.new(8, 8)
  2542. @starburst_bitmaps[0].set_pixel(3, 3, starburst_lightyellow)
  2543.  
  2544. # 2nd starburst bitmap
  2545. @starburst_bitmaps[1] = Bitmap.new(8, 8)
  2546. @starburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_yellow)
  2547. @starburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_yellow)
  2548. @starburst_bitmaps[1].set_pixel(3, 3, starburst_lightyellow)
  2549.  
  2550. # 3rd starburst bitmap
  2551. @starburst_bitmaps[2] = Bitmap.new(7, 7)
  2552. @starburst_bitmaps[2].set_pixel(1, 1, starburst_yellow)
  2553. @starburst_bitmaps[2].set_pixel(5, 1, starburst_yellow)
  2554. @starburst_bitmaps[2].set_pixel(2, 2, starburst_yellowtwo)
  2555. @starburst_bitmaps[2].set_pixel(4, 2, starburst_yellow)
  2556. @starburst_bitmaps[2].set_pixel(3, 3, starburst_lightyellow)
  2557. @starburst_bitmaps[2].set_pixel(2, 4, starburst_yellowtwo)
  2558. @starburst_bitmaps[2].set_pixel(4, 4, starburst_yellowtwo)
  2559. @starburst_bitmaps[2].set_pixel(1, 5, starburst_yellow)
  2560. @starburst_bitmaps[2].set_pixel(5, 5, starburst_yellow)
  2561.  
  2562. # 4th starburst bitmap
  2563. @starburst_bitmaps[3] = Bitmap.new(7, 7)
  2564. @starburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_yellow)
  2565. @starburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_yellowtwo)
  2566. @starburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_yellow)
  2567. @starburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_yellowtwo)
  2568. @starburst_bitmaps[3].set_pixel(3, 3, starburst_lightyellow)
  2569.  
  2570. # 5th starburst bitmap
  2571. @starburst_bitmaps[4] = Bitmap.new(7, 7)
  2572. @starburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_yellow)
  2573. @starburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_yellow)
  2574. @starburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_yellowtwo)
  2575. @starburst_bitmaps[4].set_pixel(3, 3, starburst_lightyellow)
  2576. @starburst_bitmaps[4].set_pixel(1, 1, starburst_yellow)
  2577. @starburst_bitmaps[4].set_pixel(5, 1, starburst_yellow)
  2578. @starburst_bitmaps[4].set_pixel(1, 5, starburst_yellowtwo)
  2579. @starburst_bitmaps[4].set_pixel(5, 1, starburst_yellowtwo)
  2580.  
  2581. # 6th starburst bitmap
  2582. @starburst_bitmaps[5] = Bitmap.new(8, 8)
  2583. @starburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_yellow)
  2584. @starburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_yellow)
  2585. @starburst_bitmaps[5].set_pixel(3, 3, starburst_lightyellow)
  2586.  
  2587. # 7th starburst bitmap
  2588. @starburst_bitmaps[6] = Bitmap.new(8, 8)
  2589. @starburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_green)
  2590. @starburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_green)
  2591. @starburst_bitmaps[6].set_pixel(3, 3, starburst_lightgreen)
  2592.  
  2593. # 8th starburst bitmap
  2594. @starburst_bitmaps[7] = Bitmap.new(7, 7)
  2595. @starburst_bitmaps[7].set_pixel(1, 1, starburst_greentwo)
  2596. @starburst_bitmaps[7].set_pixel(5, 1, starburst_greentwo)
  2597. @starburst_bitmaps[7].set_pixel(2, 2, starburst_greentwo)
  2598. @starburst_bitmaps[7].set_pixel(4, 2, starburst_greentwo)
  2599. @starburst_bitmaps[7].set_pixel(3, 3, starburst_green)
  2600. @starburst_bitmaps[7].set_pixel(2, 4, starburst_green)
  2601. @starburst_bitmaps[7].set_pixel(4, 4, starburst_green)
  2602. @starburst_bitmaps[7].set_pixel(1, 5, starburst_green)
  2603. @starburst_bitmaps[7].set_pixel(5, 5, starburst_lightgreen)
  2604.  
  2605. # 9th starburst bitmap
  2606. @starburst_bitmaps[8] = Bitmap.new(7, 7)
  2607. @starburst_bitmaps[8].fill_rect(3, 1, 1, 5, starburst_greentwo)
  2608. @starburst_bitmaps[8].fill_rect(1, 3, 5, 1, starburst_greentwo)
  2609. @starburst_bitmaps[8].fill_rect(3, 2, 1, 3, starburst_green)
  2610. @starburst_bitmaps[8].fill_rect(2, 3, 3, 1, starburst_green)
  2611. @starburst_bitmaps[8].set_pixel(3, 3, starburst_lightgreen)
  2612.  
  2613. # 10th starburst bitmap
  2614. @starburst_bitmaps[9] = Bitmap.new(7, 7)
  2615. @starburst_bitmaps[9].fill_rect(2, 1, 3, 5, starburst_greentwo)
  2616. @starburst_bitmaps[9].fill_rect(1, 2, 5, 3, starburst_greentwo)
  2617. @starburst_bitmaps[9].fill_rect(2, 2, 3, 3, starburst_green)
  2618. @starburst_bitmaps[9].fill_rect(3, 1, 1, 5, starburst_green)
  2619. @starburst_bitmaps[9].fill_rect(1, 3, 5, 1, starburst_green)
  2620. @starburst_bitmaps[9].fill_rect(3, 2, 1, 3, starburst_lightgreen)
  2621. @starburst_bitmaps[9].fill_rect(2, 3, 3, 1, starburst_lightgreen)
  2622. @starburst_bitmaps[9].set_pixel(3, 3, starburst_lightgreen)
  2623.  
  2624. # 11en starburst bitmap
  2625. @starburst_bitmaps[10] = Bitmap.new(7, 7)
  2626. @starburst_bitmaps[10].fill_rect(2, 2, 3, 3, starburst_greentwo)
  2627. @starburst_bitmaps[10].fill_rect(3, 2, 1, 3, starburst_greentwo)
  2628. @starburst_bitmaps[10].fill_rect(2, 3, 3, 1, starburst_green)
  2629. @starburst_bitmaps[10].set_pixel(3, 3, starburst_lightgreen)
  2630. @starburst_bitmaps[10].set_pixel(1, 1, starburst_green)
  2631. @starburst_bitmaps[10].set_pixel(5, 1, starburst_green)
  2632. @starburst_bitmaps[10].set_pixel(1, 5, starburst_greentwo)
  2633. @starburst_bitmaps[10].set_pixel(5, 1, starburst_greentwo)
  2634.  
  2635. # 12en starburst bitmap
  2636. @starburst_bitmaps[11] = Bitmap.new(8, 8)
  2637. @starburst_bitmaps[11].fill_rect(3, 2, 1, 3, starburst_green)
  2638. @starburst_bitmaps[11].fill_rect(2, 3, 3, 1, starburst_green)
  2639. @starburst_bitmaps[11].set_pixel(3, 3, starburst_lightgreen)
  2640.  
  2641. # 13en starburst bitmap
  2642. @starburst_bitmaps[12] = Bitmap.new(8, 8)
  2643. @starburst_bitmaps[12].fill_rect(3, 2, 1, 3, starburst_blue)
  2644. @starburst_bitmaps[12].fill_rect(2, 3, 3, 1, starburst_blue)
  2645. @starburst_bitmaps[12].set_pixel(3, 3, starburst_cyan)
  2646.  
  2647. # 14en starburst bitmap
  2648. @starburst_bitmaps[13] = Bitmap.new(7, 7)
  2649. @starburst_bitmaps[13].set_pixel(1, 1, starburst_bluetwo)
  2650. @starburst_bitmaps[13].set_pixel(5, 1, starburst_bluetwo)
  2651. @starburst_bitmaps[13].set_pixel(2, 2, starburst_bluetwo)
  2652. @starburst_bitmaps[13].set_pixel(4, 2, starburst_bluetwo)
  2653. @starburst_bitmaps[13].set_pixel(3, 3, starburst_blue)
  2654. @starburst_bitmaps[13].set_pixel(2, 4, starburst_blue)
  2655. @starburst_bitmaps[13].set_pixel(4, 4, starburst_blue)
  2656. @starburst_bitmaps[13].set_pixel(1, 5, starburst_blue)
  2657. @starburst_bitmaps[13].set_pixel(5, 5, starburst_cyan)
  2658.  
  2659. # 15en starburst bitmap
  2660. @starburst_bitmaps[14] = Bitmap.new(7, 7)
  2661. @starburst_bitmaps[14].fill_rect(3, 1, 1, 5, starburst_bluetwo)
  2662. @starburst_bitmaps[14].fill_rect(1, 3, 5, 1, starburst_bluetwo)
  2663. @starburst_bitmaps[14].fill_rect(3, 2, 1, 3, starburst_blue)
  2664. @starburst_bitmaps[14].fill_rect(2, 3, 3, 1, starburst_blue)
  2665. @starburst_bitmaps[14].set_pixel(3, 3, starburst_cyan)
  2666.  
  2667. # 16en starburst bitmap
  2668. @starburst_bitmaps[15] = Bitmap.new(7, 7)
  2669. @starburst_bitmaps[15].fill_rect(2, 1, 3, 5, starburst_bluetwo)
  2670. @starburst_bitmaps[15].fill_rect(1, 2, 5, 3, starburst_bluetwo)
  2671. @starburst_bitmaps[15].fill_rect(2, 2, 3, 3, starburst_blue)
  2672. @starburst_bitmaps[15].fill_rect(3, 1, 1, 5, starburst_blue)
  2673. @starburst_bitmaps[15].fill_rect(1, 3, 5, 1, starburst_blue)
  2674. @starburst_bitmaps[15].fill_rect(3, 2, 1, 3, starburst_cyan)
  2675. @starburst_bitmaps[15].fill_rect(2, 3, 3, 1, starburst_cyan)
  2676. @starburst_bitmaps[15].set_pixel(3, 3, starburst_cyan)
  2677.  
  2678. # 17en starburst bitmap
  2679. @starburst_bitmaps[16] = Bitmap.new(8, 8)
  2680. @starburst_bitmaps[16].fill_rect(3, 2, 1, 3, starburst_blue)
  2681. @starburst_bitmaps[16].fill_rect(2, 3, 3, 1, starburst_blue)
  2682. @starburst_bitmaps[16].set_pixel(3, 3, starburst_cyan)
  2683.  
  2684. # 18en starburst bitmap
  2685. @starburst_bitmaps[17] = Bitmap.new(8, 8)
  2686. @starburst_bitmaps[17].fill_rect(3, 2, 1, 3, starburst_violet)
  2687. @starburst_bitmaps[17].fill_rect(2, 3, 3, 1, starburst_violet)
  2688. @starburst_bitmaps[17].set_pixel(3, 3, starburst_purple)
  2689.  
  2690. # 19en starburst bitmap
  2691. @starburst_bitmaps[18] = Bitmap.new(7, 7)
  2692. @starburst_bitmaps[18].set_pixel(1, 1, starburst_violettwo)
  2693. @starburst_bitmaps[18].set_pixel(5, 1, starburst_violettwo)
  2694. @starburst_bitmaps[18].set_pixel(2, 2, starburst_violettwo)
  2695. @starburst_bitmaps[18].set_pixel(4, 2, starburst_violettwo)
  2696. @starburst_bitmaps[18].set_pixel(3, 3, starburst_violet)
  2697. @starburst_bitmaps[18].set_pixel(2, 4, starburst_violet)
  2698. @starburst_bitmaps[18].set_pixel(4, 4, starburst_violet)
  2699. @starburst_bitmaps[18].set_pixel(1, 5, starburst_violet)
  2700. @starburst_bitmaps[18].set_pixel(5, 5, starburst_purple)
  2701.  
  2702. # 20y starburst bitmap
  2703. @starburst_bitmaps[19] = Bitmap.new(7, 7)
  2704. @starburst_bitmaps[19].fill_rect(3, 1, 1, 5, starburst_violettwo)
  2705. @starburst_bitmaps[19].fill_rect(1, 3, 5, 1, starburst_violettwo)
  2706. @starburst_bitmaps[19].fill_rect(3, 2, 1, 3, starburst_violet)
  2707. @starburst_bitmaps[19].fill_rect(2, 3, 3, 1, starburst_violet)
  2708. @starburst_bitmaps[19].set_pixel(3, 3, starburst_violet)
  2709.  
  2710. # 21st starburst bitmap
  2711. @starburst_bitmaps[20] = Bitmap.new(7, 7)
  2712. @starburst_bitmaps[20].fill_rect(2, 1, 3, 5, starburst_violettwo)
  2713. @starburst_bitmaps[20].fill_rect(1, 2, 5, 3, starburst_violettwo)
  2714. @starburst_bitmaps[20].fill_rect(2, 2, 3, 3, starburst_violet)
  2715. @starburst_bitmaps[20].fill_rect(3, 1, 1, 5, starburst_violet)
  2716. @starburst_bitmaps[20].fill_rect(1, 3, 5, 1, starburst_violet)
  2717. @starburst_bitmaps[20].fill_rect(3, 2, 1, 3, starburst_purple)
  2718. @starburst_bitmaps[20].fill_rect(2, 3, 3, 1, starburst_purple)
  2719. @starburst_bitmaps[20].set_pixel(3, 3, starburst_purple)
  2720.  
  2721. # 22nd starburst bitmap
  2722. @starburst_bitmaps[21] = Bitmap.new(7, 7)
  2723. @starburst_bitmaps[21].fill_rect(2, 1, 3, 5, starburst_violet)
  2724. @starburst_bitmaps[21].fill_rect(1, 2, 5, 3, starburst_violet)
  2725. @starburst_bitmaps[21].fill_rect(3, 0, 1, 7, starburst_violettwo)
  2726. @starburst_bitmaps[21].fill_rect(0, 3, 7, 1, starburst_violettwo)
  2727. @starburst_bitmaps[21].fill_rect(2, 2, 3, 3, starburst_purple)
  2728. @starburst_bitmaps[21].fill_rect(3, 2, 1, 3, starburst_violet)
  2729. @starburst_bitmaps[21].fill_rect(2, 3, 3, 1, starburst_violet)
  2730. @starburst_bitmaps[21].set_pixel(3, 3, starburst_purple)
  2731.  
  2732. # 23d starburst bitmap
  2733. @starburst_bitmaps[22] = Bitmap.new(8, 8)
  2734. @starburst_bitmaps[22].fill_rect(3, 2, 1, 3, starburst_violet)
  2735. @starburst_bitmaps[22].fill_rect(2, 3, 3, 1, starburst_violet)
  2736. @starburst_bitmaps[22].set_pixel(3, 3, starburst_purple)
  2737.  
  2738. # 24th starburst bitmap
  2739. @starburst_bitmaps[23] = Bitmap.new(8, 8)
  2740. @starburst_bitmaps[23].fill_rect(3, 2, 1, 3, starburst_red)
  2741. @starburst_bitmaps[23].fill_rect(2, 3, 3, 1, starburst_red)
  2742. @starburst_bitmaps[23].set_pixel(3, 3, starburst_pink)
  2743.  
  2744. # 25th starburst bitmap
  2745. @starburst_bitmaps[24] = Bitmap.new(7, 7)
  2746. @starburst_bitmaps[24].set_pixel(1, 1, starburst_redtwo)
  2747. @starburst_bitmaps[24].set_pixel(5, 1, starburst_redtwo)
  2748. @starburst_bitmaps[24].set_pixel(2, 2, starburst_redtwo)
  2749. @starburst_bitmaps[24].set_pixel(4, 2, starburst_redtwo)
  2750. @starburst_bitmaps[24].set_pixel(3, 3, starburst_red)
  2751. @starburst_bitmaps[24].set_pixel(2, 4, starburst_red)
  2752. @starburst_bitmaps[24].set_pixel(4, 4, starburst_red)
  2753. @starburst_bitmaps[24].set_pixel(1, 5, starburst_red)
  2754. @starburst_bitmaps[24].set_pixel(5, 5, starburst_pink)
  2755.  
  2756. # 26th starburst bitmap
  2757. @starburst_bitmaps[25] = Bitmap.new(7, 7)
  2758. @starburst_bitmaps[25].fill_rect(3, 1, 1, 5, starburst_redtwo)
  2759. @starburst_bitmaps[25].fill_rect(1, 3, 5, 1, starburst_redtwo)
  2760. @starburst_bitmaps[25].fill_rect(3, 2, 1, 3, starburst_red)
  2761. @starburst_bitmaps[25].fill_rect(2, 3, 3, 1, starburst_red)
  2762. @starburst_bitmaps[25].set_pixel(3, 3, starburst_pink)
  2763.  
  2764. # 27th starburst bitmap
  2765. @starburst_bitmaps[26] = Bitmap.new(7, 7)
  2766. @starburst_bitmaps[26].fill_rect(2, 1, 3, 5, starburst_redtwo)
  2767. @starburst_bitmaps[26].fill_rect(1, 2, 5, 3, starburst_redtwo)
  2768. @starburst_bitmaps[26].fill_rect(2, 2, 3, 3, starburst_red)
  2769. @starburst_bitmaps[26].fill_rect(3, 1, 1, 5, starburst_red)
  2770. @starburst_bitmaps[26].fill_rect(1, 3, 5, 1, starburst_red)
  2771. @starburst_bitmaps[26].fill_rect(3, 2, 1, 3, starburst_pink)
  2772. @starburst_bitmaps[26].fill_rect(2, 3, 3, 1, starburst_pink)
  2773. @starburst_bitmaps[26].set_pixel(3, 3, starburst_pink)
  2774.  
  2775. # 28th starburst bitmap
  2776. @starburst_bitmaps[27] = Bitmap.new(7, 7)
  2777. @starburst_bitmaps[27].fill_rect(2, 1, 3, 5, starburst_red)
  2778. @starburst_bitmaps[27].fill_rect(1, 2, 5, 3, starburst_red)
  2779. @starburst_bitmaps[27].fill_rect(3, 0, 1, 7, starburst_redtwo)
  2780. @starburst_bitmaps[27].fill_rect(0, 3, 7, 1, starburst_redtwo)
  2781. @starburst_bitmaps[27].fill_rect(2, 2, 3, 3, starburst_pink)
  2782. @starburst_bitmaps[27].fill_rect(3, 2, 1, 3, starburst_red)
  2783. @starburst_bitmaps[27].fill_rect(2, 3, 3, 1, starburst_red)
  2784. @starburst_bitmaps[27].set_pixel(3, 3, starburst_pink)
  2785.  
  2786. # 29th starburst bitmap
  2787. @starburst_bitmaps[28] = Bitmap.new(8, 8)
  2788. @starburst_bitmaps[28].fill_rect(3, 2, 1, 3, starburst_red)
  2789. @starburst_bitmaps[28].fill_rect(2, 3, 3, 1, starburst_red)
  2790. @starburst_bitmaps[28].set_pixel(3, 3, starburst_pink)
  2791.  
  2792. # 30y starburst bitmap
  2793. @starburst_bitmaps[29] = Bitmap.new(8, 8)
  2794. @starburst_bitmaps[29].fill_rect(3, 2, 1, 3, starburst_orange)
  2795. @starburst_bitmaps[29].fill_rect(2, 3, 3, 1, starburst_orange)
  2796. @starburst_bitmaps[29].set_pixel(3, 3, starburst_lightorange)
  2797.  
  2798. # 31st starburst bitmap
  2799. @starburst_bitmaps[30] = Bitmap.new(7, 7)
  2800. @starburst_bitmaps[30].set_pixel(1, 1, starburst_orangetwo)
  2801. @starburst_bitmaps[30].set_pixel(5, 1, starburst_orangetwo)
  2802. @starburst_bitmaps[30].set_pixel(2, 2, starburst_orangetwo)
  2803. @starburst_bitmaps[30].set_pixel(4, 2, starburst_orangetwo)
  2804. @starburst_bitmaps[30].set_pixel(3, 3, starburst_orange)
  2805. @starburst_bitmaps[30].set_pixel(2, 4, starburst_orange)
  2806. @starburst_bitmaps[30].set_pixel(4, 4, starburst_orange)
  2807. @starburst_bitmaps[30].set_pixel(1, 5, starburst_orange)
  2808. @starburst_bitmaps[30].set_pixel(5, 5, starburst_lightorange)
  2809.  
  2810. # 32nd starburst bitmap
  2811. @starburst_bitmaps[31] = Bitmap.new(7, 7)
  2812. @starburst_bitmaps[31].fill_rect(3, 1, 1, 5, starburst_orangetwo)
  2813. @starburst_bitmaps[31].fill_rect(1, 3, 5, 1, starburst_orangetwo)
  2814. @starburst_bitmaps[31].fill_rect(3, 2, 1, 3, starburst_orange)
  2815. @starburst_bitmaps[31].fill_rect(2, 3, 3, 1, starburst_orange)
  2816. @starburst_bitmaps[31].set_pixel(3, 3, starburst_lightorange)
  2817.  
  2818. # 33d starburst bitmap
  2819. @starburst_bitmaps[32] = Bitmap.new(7, 7)
  2820. @starburst_bitmaps[32].fill_rect(2, 1, 3, 5, starburst_orangetwo)
  2821. @starburst_bitmaps[32].fill_rect(1, 2, 5, 3, starburst_orangetwo)
  2822. @starburst_bitmaps[32].fill_rect(2, 2, 3, 3, starburst_orange)
  2823. @starburst_bitmaps[32].fill_rect(3, 1, 1, 5, starburst_orange)
  2824. @starburst_bitmaps[32].fill_rect(1, 3, 5, 1, starburst_orange)
  2825. @starburst_bitmaps[32].fill_rect(3, 2, 1, 3, starburst_lightorange)
  2826. @starburst_bitmaps[32].fill_rect(2, 3, 3, 1, starburst_lightorange)
  2827. @starburst_bitmaps[32].set_pixel(3, 3, starburst_lightorange)
  2828.  
  2829. # 34th starburst bitmap
  2830. @starburst_bitmaps[33] = Bitmap.new(7, 7)
  2831. @starburst_bitmaps[33].fill_rect(2, 1, 3, 5, starburst_orange)
  2832. @starburst_bitmaps[33].fill_rect(1, 2, 5, 3, starburst_orange)
  2833. @starburst_bitmaps[33].fill_rect(3, 0, 1, 7, starburst_orangetwo)
  2834. @starburst_bitmaps[33].fill_rect(0, 3, 7, 1, starburst_orangetwo)
  2835. @starburst_bitmaps[33].fill_rect(2, 2, 3, 3, starburst_lightorange)
  2836. @starburst_bitmaps[33].fill_rect(3, 2, 1, 3, starburst_orange)
  2837. @starburst_bitmaps[33].fill_rect(2, 3, 3, 1, starburst_orange)
  2838. @starburst_bitmaps[33].set_pixel(3, 3, starburst_lightorange)
  2839.  
  2840. # 35th starburst bitmap
  2841. @starburst_bitmaps[34] = Bitmap.new(8, 8)
  2842. @starburst_bitmaps[34].fill_rect(3, 2, 1, 3, starburst_orange)
  2843. @starburst_bitmaps[34].fill_rect(2, 3, 3, 1, starburst_orange)
  2844. @starburst_bitmaps[34].set_pixel(3, 3, starburst_lightorange)
  2845.  
  2846. # 36th starburst bitmap
  2847. @starburst_bitmaps[35] = Bitmap.new(8, 8)
  2848. @starburst_bitmaps[35].set_pixel(3, 3, starburst_lightorange)
  2849. #-------------------------------------------------------------------------------
  2850. @monostarburst_bitmaps = []
  2851.  
  2852. # 1st starburst bitmap
  2853. @monostarburst_bitmaps[0] = Bitmap.new(8, 8)
  2854. @monostarburst_bitmaps[0].set_pixel(3, 3, starburst_lightyellow)
  2855.  
  2856. # 2nd starburst bitmap
  2857. @monostarburst_bitmaps[1] = Bitmap.new(8, 8)
  2858. @monostarburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_yellow)
  2859. @monostarburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_yellow)
  2860. @monostarburst_bitmaps[1].set_pixel(3, 3, starburst_lightyellow)
  2861.  
  2862. # 3d starburst bitmap
  2863. @monostarburst_bitmaps[2] = Bitmap.new(7, 7)
  2864. @monostarburst_bitmaps[2].set_pixel(1, 1, starburst_yellowtwo)
  2865. @monostarburst_bitmaps[2].set_pixel(5, 1, starburst_yellowtwo)
  2866. @monostarburst_bitmaps[2].set_pixel(2, 2, starburst_yellowtwo)
  2867. @monostarburst_bitmaps[2].set_pixel(4, 2, starburst_yellowtwo)
  2868. @monostarburst_bitmaps[2].set_pixel(3, 3, starburst_yellow)
  2869. @monostarburst_bitmaps[2].set_pixel(2, 4, starburst_yellow)
  2870. @monostarburst_bitmaps[2].set_pixel(4, 4, starburst_yellow)
  2871. @monostarburst_bitmaps[2].set_pixel(1, 5, starburst_yellow)
  2872. @monostarburst_bitmaps[2].set_pixel(5, 5, starburst_lightyellow)
  2873.  
  2874. # 4th starburst bitmap
  2875. @monostarburst_bitmaps[3] = Bitmap.new(7, 7)
  2876. @monostarburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_yellowtwo)
  2877. @monostarburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_yellowtwo)
  2878. @monostarburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_yellow)
  2879. @monostarburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_yellow)
  2880. @monostarburst_bitmaps[3].set_pixel(3, 3, starburst_lightyellow)
  2881.  
  2882. # 5th starburst bitmap
  2883. @monostarburst_bitmaps[4] = Bitmap.new(7, 7)
  2884. @monostarburst_bitmaps[4].fill_rect(2, 1, 3, 5, starburst_yellowtwo)
  2885. @monostarburst_bitmaps[4].fill_rect(1, 2, 5, 3, starburst_yellowtwo)
  2886. @monostarburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_yellow)
  2887. @monostarburst_bitmaps[4].fill_rect(3, 1, 1, 5, starburst_yellow)
  2888. @monostarburst_bitmaps[4].fill_rect(1, 3, 5, 1, starburst_yellow)
  2889. @monostarburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_lightyellow)
  2890. @monostarburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_lightyellow)
  2891. @monostarburst_bitmaps[4].set_pixel(3, 3, starburst_lightyellow)
  2892.  
  2893. # 6th starburst bitmap
  2894. @monostarburst_bitmaps[5] = Bitmap.new(7, 7)
  2895. @monostarburst_bitmaps[5].fill_rect(2, 1, 3, 5, starburst_yellow)
  2896. @monostarburst_bitmaps[5].fill_rect(1, 2, 5, 3, starburst_yellow)
  2897. @monostarburst_bitmaps[5].fill_rect(3, 0, 1, 7, starburst_yellowtwo)
  2898. @monostarburst_bitmaps[5].fill_rect(0, 3, 7, 1, starburst_yellowtwo)
  2899. @monostarburst_bitmaps[5].fill_rect(2, 2, 3, 3, starburst_lightyellow)
  2900. @monostarburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_yellow)
  2901. @monostarburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_yellow)
  2902. @monostarburst_bitmaps[5].set_pixel(3, 3, starburst_lightyellow)
  2903.  
  2904. # 7th starburst bitmap
  2905. @monostarburst_bitmaps[6] = Bitmap.new(8, 8)
  2906. @monostarburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_yellow)
  2907. @monostarburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_yellow)
  2908. @monostarburst_bitmaps[6].set_pixel(3, 3, starburst_lightyellow)
  2909.  
  2910. # 8th starburst bitmap
  2911. @monostarburst_bitmaps[7] = Bitmap.new(8, 8)
  2912. @monostarburst_bitmaps[7].set_pixel(3, 3, starburst_lightyellow)
  2913. #-------------------------------------------------------------------------------
  2914.  
  2915. @user_bitmaps = []
  2916. update_user_defined
  2917. end
  2918.  
  2919. def update_user_defined
  2920. for image in @user_bitmaps
  2921. image.dispose
  2922. end
  2923.  
  2924. #user-defined bitmaps
  2925. for name in $WEATHER_IMAGES
  2926. @user_bitmaps.push(RPG::Cache.picture(name))
  2927. end
  2928. for sprite in @sprites
  2929. sprite.bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  2930. end
  2931. end
  2932. end
  2933.  
  2934. class Scene_Map
  2935. def weather
  2936. @spriteset.weather
  2937. end
  2938. end
  2939.  
  2940. class Spriteset_Map
  2941. attr_accessor :weather
  2942. end
Advertisement
Add Comment
Please, Sign In to add comment