Advertisement
dsiver144

Modified Advanced Weather Script for RPG Maker VXA

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