Advertisement
LeonMMS

maWS

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