SHARE
TWEET

[RMXP] Zer0 Advanced Weather 1.1

ForeverZer0 May 21st, 2011 192 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  2. # Zer0 Advanced Weather
  3. # Author: ForeverZer0
  4. # Base Script: Ccoa
  5. # Color Effects: Agckuu Coceg
  6. # Version: 1.1
  7. # Date: 4.7.2010
  8. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  9. # Version History
  10. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  11. # Version 1.0 (3.31.2010)
  12. #   - Original Release
  13. #
  14. # Version 1.1 (4.7.2010)
  15. #   - Added weather effects
  16. #       - Bats
  17. #       - Bees
  18. #       - Fish (good for underwater scenes)
  19. #       - Ravens
  20. #   - Butterfly flight has been made a little more random, they will now turn
  21. #     and not just move in a straight line until they leave the screen
  22. #   - Improved leaf effects. They now initialize in random poses.
  23. #   - Updated Credits, forgot to credit Blizzard for Bitmap2Code! :\
  24. #   - Made some minor coding improvements
  25. #
  26. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  27. #
  28. # Instructions:
  29. #
  30. #    1. Place anywhere below Spriteset_Map.
  31. #    2. Weather can be still be changed with the normal script call...
  32. #
  33. #           $game_screen.weather(type, power, transition)
  34. #
  35. #       ...but a new addition has been added. The weather variation can be
  36. #       changed by using this script call:
  37. #
  38. #           $game_screen.weather(type, power, transition, variation)
  39. #
  40. #       If you omit the variation, it will be assumed to be 0 and the normal
  41. #       default weather pattern will be used.
  42. #
  43. # Notes/Issues:
  44. #
  45. #    Realistic Storm uses random volume and pitch for the thunder. It also
  46. #    incorporates a quick screen shake (Agckuu Coceg), but only if the
  47. #    volume and pitch are both high (ForeverZer0), to give a realistic feel
  48. #    to the storm.
  49. #
  50. # Credits/Thanks:
  51. #
  52. #     1. Ccoa (base script, most default weather effects)
  53. #     2. Agckuu Coceg (inspiration, most color effects)
  54. #     3. Blizzard (Bitmap2Code program made new effects possible)
  55. #     4. ForeverZer0 (all the rest ;)
  56. #
  57. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  58. #
  59. #  Anything within () is a possible variation for the respective weather type.
  60. #   The first item is the default, or 0, and the following are 1, 2, etc. in
  61. #   order.
  62. #
  63. # Weather Types
  64. #   1. Rain (Normal, Blood, Oil, Acid, Golden, Sepia)
  65. #   2. Storm (Normal, Blood, Oil, Acid, Golden, Sepia)
  66. #   3. Snow (Normal, Crimson)
  67. #   4. Hail
  68. #   5. Rain w/ thunder & lightning (Normal, Blood, Oil, Acid, Golden, Sepia)
  69. #   6. Falling Leaves (Green, Yellow, Autumn, Red Maple)
  70. #   7. Blowing Leaves (Green, Yellow, Autumn, Red Maple)
  71. #   8. Swirling Leaves (Green, Yellow, Autumn, Red Maple)
  72. #   9. Realistic Storm
  73. #  10. Sakura Petals
  74. #  11. Petals (Rose, bubble_color3, Tiger Lily, Pink, Blue, Green, Blue-Purple)
  75. #  12. Feathers
  76. #  13. Butterflies (Violet, Red, Yellow, Aqua-blue, Green)
  77. #  14. Sparkles (Blue, Lavender, Pink, Green, White)
  78. #  15. User Defined
  79. #  16. Blowing Snow (Normal, Crimson)
  80. #  17. Meteors (Normal, Flame, Rock)
  81. #  18. Falling Ash
  82. #  19. Bubbles
  83. #  20. Bubbles 2
  84. #  21. Sparkles (Up) (Blue, Lavender, Pink, Green, White)
  85. #  22. Falling Rocks
  86. #  23. Arrows
  87. #  24. Starburst-Burst
  88. #  25. Starburst-Up
  89. #  26. Starburst-Rain
  90. #  27. Monochromatic Starburst-Burst (Yellow, Green, Aqua-blue, Blue, Violet, Red)
  91. #  28. Monochromatic Starburst-Up (same as above)
  92. #  29. Monochromatic Starburst-Down (same as above)
  93. #  30. Bombs (Water, Ice, Flare)
  94. #  31. Birds
  95. #  32. Bats
  96. #  33. Bees
  97. #  34. Fish
  98. #  35. Ravens
  99. #
  100. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  101. # BEGIN CONFIGURATION
  102. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  103.  
  104.   WEATHER_TYPE_VARIABLE  = 25
  105.   # ID of game variable. Will be equal to the "type" of weather.
  106.  
  107.   ADVERSE_WEATHER_SWITCH = 25
  108.   # ID of the game switch. Will be true during bad weather. (see below)
  109.  
  110.   ADVERSE_WEATHER = [1, 2, 4, 5, 9, 16]
  111.   # Include any effects you wish. Adverse weather switch will be true when
  112.   # any of these weather patterns are occuring.
  113.  
  114.   THUNDER_RATE = 6
  115.   # Adjust how constant the thunder is. Higher values will increase the delay
  116.   # between thunder strikes. Weather power will still effect the rate, but this
  117.   # will change the overall rate. 0 will result in constant, unending screen
  118.   # flashes. Not good for epileptics... :P
  119.  
  120. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  121. # END CONFIGURATION
  122. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  123.  
  124. #-------------------------------------------------------------------------------
  125. #  Weather Power:
  126. #    An integer from 0-50.  0 = no weather, 50 = 500 sprites
  127. #-------------------------------------------------------------------------------
  128. #  Transition:
  129. #    The number of frames to "transition" the weather in
  130. #-------------------------------------------------------------------------------
  131. #  Usage of user-defined weather:
  132. #    Look at the following globals:
  133. #-------------------------------------------------------------------------------
  134. $WEATHER_UPDATE = false   # the $WEATHER_IMAGES array has changed, please update
  135. $WEATHER_IMAGES = []      # the array of picture names to use
  136. $WEATHER_X = 0            # the number of pixels the image should move horizontally (positive = right, negative = left)
  137. $WEATHER_Y = 0            # the number of pizels the image should move vertically (positive = down, negative = up)
  138. $WEATHER_FADE = 0         # how much the image should fade each update (0 = no fade, 255 = fade instantly)
  139. $WEATHER_ANIMATED = false # whether or not the image should cycle through all the images
  140. #-------------------------------------------------------------------------------
  141.  
  142. $zer0_adv_weather = 1.1
  143.  
  144. module RPG
  145. class Weather
  146.   def initialize(viewport = nil)
  147.     $game_screen = Game_Screen.new if $game_screen == nil
  148.     @type = @max = @ox = @oy = @count = 0
  149.     @current_pose, @info, @countarray = [], [], []
  150.     make_bitmaps
  151.  
  152.     (1..500).each {|i|
  153.       sprite = Sprite.new(viewport)
  154.       sprite.z = 1000
  155.       sprite.visible = false
  156.       sprite.opacity = 0
  157.       @sprites.push(sprite)
  158.       @current_pose.push(0)
  159.       @info.push(rand(50))
  160.       @countarray.push(rand(15))
  161.     }
  162.   end
  163.  
  164.   def dispose
  165.    
  166.     @sprites.each {|sprite| sprite.dispose}
  167.    
  168.    [@rain_bitmap, @storm_bitmap, @impact_bitmap, @meteor_bitmap, @hail_bitmap,
  169.     @sakura_bitmap, @snow_bitmap, @bomb_bitmap, @arrow_bitmap, @fish_bitmap
  170.     ].each {|bitmap| bitmap.dispose}
  171.  
  172.     @leaf_bitmaps.each {|image| image.dispose}
  173.     @petal_bitmaps.each {|image| image.dispose}
  174.     @feather_bitmaps.each {|image| image.dispose}
  175.     @sparkle_bitmaps.each {|image| image.dispose}
  176.     @starburst_bitmaps.each {|image| image.dispose}
  177.     @monostarburst_bitmaps.each {|image| image.dispose}
  178.     @fallingrocks_bitmaps.each {|image| image.dispose}
  179.     @butterfly_bitmaps.each {|image| image.dispose}
  180.     @bird_bitmaps.each {|image| image.dispose}
  181.     @bat_bitmaps.each {|image| image.dispose}
  182.     @bee_bitmaps.each {|image| image.dispose}
  183.     @raven_bitmaps.each {|image| image.dispose}
  184.     @user_bitmaps.each {|image| image.dispose}
  185.  
  186.     $WEATHER_UPDATE = true
  187.    
  188.   end
  189. #-------------------------------------------------------------------------------  
  190.   def type=(type)
  191.     return if @type == type
  192.     @type = type
  193.     case @type
  194.     when 1, 5, 9                            # Rain, Thunder, Real Thunder
  195.       bitmap = @rain_bitmap
  196.       @thunder = true if @type == 5
  197.       @realistic_thunder = true if @type == 9
  198.     when 2                                  # Storm
  199.       bitmap = @storm_bitmap
  200.     when 3, 16                              # Snow
  201.       bitmap = @snow_bitmap
  202.     when 4                                  # Hail
  203.       bitmap = @hail_bitmap
  204.     when 6, 7, 8                            # Leaves
  205.       bitmap = @leaf_bitmaps
  206.     when 10                                 # Sakura petals
  207.       bitmap = @sakura_bitmap
  208.     when 11                                 # Flower petals
  209.       bitmap = @petal_bitmaps[0]
  210.     when 12                                 # Feathers
  211.       bitmap = @feather_bitmaps[0]
  212.     when 13                                 # Butterflies
  213.       bitmap = @butterfly_bitmaps
  214.     when 14                                 # Sparkles
  215.       bitmap = @sparkle_bitmaps[0]
  216.     when 15                                 # User-defined
  217.       r = rand(@user_bitmaps.size)
  218.       bitmap = @user_bitmaps[r]
  219.     when 17                                 # Meteors
  220.       bitmap = @meteor_bitmap
  221.     when 18                                 # Falling ash
  222.       bitmap = @ash_bitmaps[rand(2)]
  223.     when 19                                 # Bubbles
  224.       bitmap = @bubble_bitmaps[rand(2)]
  225.     when 20                                 # Bubbles 2
  226.       bitmap = @bubble2_bitmaps[rand(4)]
  227.     when 21                                 # Sparkles up
  228.       bitmap = @sparkle_bitmaps[0]
  229.     when 22                                 # Falling rocks
  230.       bitmap = @fallingrocks_bitmaps
  231.     when 23                                 # Arrows
  232.       bitmap = @arrow_bitmap
  233.     when 24, 25, 26                         # Starburst
  234.       bitmap = @starburst_bitmaps[0]
  235.     when 27, 28, 29                         # Mono-starburst
  236.       bitmap = @monostarburst_bitmaps[0]
  237.     when 30                                 # Bombs
  238.       bitmap = @bomb_bitmap
  239.     when 31                                 # Birds
  240.       bitmap = @bird_bitmaps
  241.     when 32                                 # Bats
  242.       bitmap = @bat_bitmaps
  243.     when 33                                 # Bees
  244.       bitmap = @bee_bitmaps
  245.     when 34                                 # Fish
  246.       bitmap = @fish_bitmap
  247.     when 35                                 # Ravens
  248.       bitmap = @raven_bitmaps
  249.     else                                    # No weather
  250.       bitmap = nil
  251.     end
  252.      
  253.     @thunder           = false if @type != 5
  254.     @realistic_thunder = false if @type != 9
  255.        
  256.     # Operates the Adverse Weather Switch and Weather Type Variable
  257.     if $game_switches != nil && $game_variables != nil
  258.       $game_variables[WEATHER_TYPE_VARIABLE] = $game_screen.weather_type
  259.       if ADVERSE_WEATHER.include?($game_screen.weather_type)
  260.         $game_switches[ADVERSE_WEATHER_SWITCH] = true
  261.       else                                
  262.         $game_switches[ADVERSE_WEATHER_SWITCH] = false
  263.       end
  264.     end
  265.  
  266.     (1..500).each {|i|
  267.       sprite = @sprites[i]
  268.       if sprite != nil
  269.         sprite.visible = (i <= @max)
  270.         if @type == 3
  271.           r = @info[i] = rand(4)
  272.           sprite.bitmap = @snow_bitmaps[r]
  273.         elsif @type == 6 || @type == 7 || @type == 8
  274.           @current_pose[i] = rand(13)
  275.           bitmap = @leaf_bitmaps[@current_pose[i]]
  276.         elsif @type == 13
  277.           @current_pose[i] = rand(16)
  278.           sprite.bitmap = @butterfly_bitmaps[@current_pose[i]]
  279.         elsif @type == 19
  280.           sprite.bitmap = @bubble_bitmaps[rand(2)]
  281.         elsif @type == 20
  282.           sprite.bitmap = @bubble2_bitmaps[rand(4)]
  283.         elsif @type == 22
  284.           r = @info[i] = rand(3)
  285.           sprite.bitmap = @fallingrocks_bitmaps[r]
  286.         elsif @type == 31
  287.           @current_pose[i] = rand(4)
  288.           sprite.bitmap = @bird_bitmaps[@current_pose[i]]
  289.         elsif @type == 32
  290.           @current_pose[i] = rand(16)
  291.           sprite.bitmap = @bat_bitmaps[@current_pose[i]]
  292.         elsif @type == 33
  293.           @current_pose[i] = rand(16)
  294.           sprite.bitmap = @bee_bitmaps[@current_pose[i]]
  295.         elsif @type == 34
  296.           @info[i] = rand(200)
  297.           sprite.bitmap = bitmap
  298.         elsif @type == 35
  299.           @current_pose[i] = rand(16)
  300.           sprite.bitmap = @raven_bitmaps[@current_pose[i]]
  301.         else
  302.           sprite.bitmap = bitmap
  303.         end
  304.       end
  305.     }
  306.   end
  307.  
  308.   def ox=(ox)
  309.     return if @ox == ox;
  310.     @ox = ox
  311.     @sprites.each {|sprite| sprite.ox = @ox}
  312.   end
  313.  
  314.   def oy=(oy)
  315.     return if @oy == oy;
  316.     @oy = oy
  317.     @sprites.each {|sprite| sprite.oy = @oy}
  318.   end
  319.  
  320.   def max=(max)
  321.     return if @max == max;
  322.     @max = [[max, 0].max, 500].min
  323.     (1..500).each {|i|
  324.       sprite = @sprites[i]
  325.       sprite.visible = (i <= @max) if sprite != nil
  326.     }
  327.   end
  328.  
  329. #-------------------------------------------------------------------------------  
  330.   def update
  331.     return if @type == 0
  332.     (1..@max).each {|i|
  333.       sprite = @sprites[i]
  334.       break if sprite == nil
  335.     #----------------------------------------------------------------------    
  336.       if @type == 1 || @type == 5 || @type == 9  # Rain        
  337.         if sprite.opacity <= 150
  338.           if @current_pose[i] == 0
  339.             sprite.y += @rain_bitmap.height
  340.             sprite.x -= @rain_bitmap.width
  341.             if @type == 1 || @type == 5 || @type == 9
  342.               sprite.bitmap = @rain_splash
  343.             end
  344.             @current_pose[i] = 1
  345.           end
  346.         else
  347.           if @current_pose[i] == 1
  348.             if @type == 1 || @type == 5 || @type == 9
  349.               sprite.bitmap = @rain_bitmap
  350.             end
  351.             @current_pose[i] = 0
  352.           end
  353.           sprite.x -= 2
  354.           sprite.y += 16
  355.           if @thunder && (rand((THUNDER_RATE * 2000) - @max) == 0)
  356.             case $game_screen.weather_variation
  357.             when 0, 2, 3, 4 # Normal, Acid, Oil, and Golden
  358.               $game_screen.start_flash(Color.new(255, 255, 255, 255), 5)
  359.             when 1 # Blood
  360.               $game_screen.start_flash(Color.new(141, 9, 9, 255), 5)
  361.             when 5 # Sepia
  362.               $game_screen.start_flash(Color.new(169, 152, 142, 255), 5)
  363.             end
  364.             Audio.se_play('Audio/SE/061-Thunderclap01')
  365.           end
  366.         end
  367.         sprite.opacity -= 8
  368.       end
  369.       if @realistic_thunder && (rand((THUNDER_RATE * 2000) - @max) == 0)
  370.         thundervolume = rand(50) + 50 # Random number 50-100
  371.         thunderpitch = rand(100) + 50 # Random number 50-150
  372.         Audio.se_play('Audio/SE/061-Thunderclap01', thundervolume, thunderpitch)
  373.         # Screen will not flash or shake unless the volume and pitch are high
  374.         if thundervolume > 75 && thunderpitch > 100
  375.           $game_screen.start_flash(Color.new(255, 255, 255, 255), 7)
  376.           $game_screen.start_shake(9, 7, 5)
  377.         end
  378.       end
  379.     #----------------------------------------------------------------------
  380.       if @type == 2  # Storm
  381.         sprite.x -= 8
  382.         sprite.y += 16
  383.         sprite.opacity -= 12
  384.       end
  385.     #----------------------------------------------------------------------
  386.       if @type == 3 # Snow
  387.         case @info[i]
  388.         when 0
  389.           sprite.y += 1
  390.         when 1
  391.           sprite.y += 3
  392.         when 2
  393.           sprite.y += 5
  394.         when 3
  395.           sprite.y += 7
  396.         end
  397.         sprite.opacity -= 3
  398.       end
  399.     #----------------------------------------------------------------------
  400.       if @type == 4 # Hail
  401.         sprite.x -= 1
  402.         sprite.y += 18
  403.         sprite.opacity -= 15
  404.       end
  405.     #----------------------------------------------------------------------
  406.       if @type == 6 # Falling Leaves
  407.         @count = rand(20)
  408.         if @count == 0
  409.           sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  410.           @current_pose[i] = (@current_pose[i] + 1) % 13
  411.         end
  412.         sprite.y += 1
  413.       end
  414.     #----------------------------------------------------------------------
  415.       if @type == 7 # Blowing Leaves
  416.         @count = rand(20)
  417.         if @count == 0
  418.           sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  419.           @current_pose[i] = (@current_pose[i] + 1) % 13
  420.         end
  421.         sprite.x -= 10
  422.         sprite.y += (rand(4) - 2)
  423.       end
  424.     #----------------------------------------------------------------------
  425.       if @type == 8 # Swirling Leaves
  426.         @count = rand(20)
  427.         if @count == 0
  428.           sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  429.           @current_pose[i] = (@current_pose[i] + 1) % 13
  430.         end
  431.         if @info[i] != 0
  432.           if @info[i] >= 1 && @info[i] <= 10
  433.             sprite.x -= 3
  434.             sprite.y -= 1
  435.           elsif @info[i] >= 11 && @info[i] <= 16
  436.             sprite.x -= 1
  437.             sprite.y -= 2
  438.           elsif @info[i] >= 17 && @info[i] <= 20
  439.             sprite.y -= 3
  440.           elsif @info[i] >= 21 && @info[i] <= 30
  441.             sprite.y -= 2
  442.             sprite.x += 1
  443.           elsif @info[i] >= 31 && @info[i] <= 36
  444.             sprite.y -= 1
  445.             sprite.x += 3
  446.           elsif @info[i] >= 37 && @info[i] <= 40
  447.             sprite.x += 5
  448.           elsif @info[i] >= 41 && @info[i] <= 46
  449.             sprite.y += 1
  450.             sprite.x += 3
  451.           elsif @info[i] >= 47 && @info[i] <= 58
  452.             sprite.y += 2
  453.             sprite.x += 1
  454.           elsif @info[i] >= 59 && @info[i] <= 64
  455.             sprite.y += 3
  456.           elsif @info[i] >= 65 && @info[i] <= 70
  457.             sprite.x -= 1
  458.             sprite.y += 2
  459.           elsif @info[i] >= 71 && @info[i] <= 81
  460.             sprite.x -= 3
  461.             sprite.y += 1
  462.           elsif @info[i] >= 82 && @info[i] <= 87
  463.             sprite.x -= 5
  464.           end
  465.           @info[i] = (@info[i] + 1) % 88
  466.         else
  467.           if rand(200) == 0
  468.             @info[i] = 1
  469.           end
  470.           sprite.x -= 5
  471.           sprite.y += 1
  472.         end
  473.       end
  474.     #----------------------------------------------------------------------
  475.       if @type == 10 # Sakura Petals
  476.         if @info[i] < 25
  477.           sprite.x -= 1
  478.         else
  479.           sprite.x += 1
  480.         end
  481.         @info[i] = (@info[i] + 1) % 50
  482.         sprite.y += 1
  483.       end
  484.     #----------------------------------------------------------------------
  485.       if @type == 11 # Flower Petals
  486.         @count = rand(20)
  487.         if @count == 0
  488.           sprite.bitmap = @petal_bitmaps[@current_pose[i]]
  489.           @current_pose[i] = (@current_pose[i] + 1) % @petal_bitmaps.size
  490.         end
  491.         if @info[i] % 2 == 0
  492.           if @info[i] < 10
  493.             sprite.x -= 1
  494.           elsif
  495.             sprite.x += 1
  496.           end
  497.         end
  498.         sprite.y += 1
  499.       end
  500.     #----------------------------------------------------------------------
  501.       if @type == 12 # Feathers
  502.         if @countarray[i] == 0
  503.           @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  504.           sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  505.         end
  506.         @countarray[i] = (@countarray[i] + 1) % 15
  507.         if rand(100) == 0
  508.           sprite.x -= 1
  509.         end
  510.         if rand(100) == 0
  511.           sprite.y -= 1
  512.         end
  513.         if @info[i] < 50
  514.           if rand(2) == 0
  515.             sprite.x -= 1
  516.           else
  517.             sprite.y -= 1
  518.           end
  519.         else
  520.           if rand(2) == 0
  521.             sprite.x += 1
  522.           else
  523.             sprite.y += 1
  524.           end
  525.         end
  526.         @info[i] = (@info[i] + 1) % 100
  527.       end
  528.     #----------------------------------------------------------------------
  529.       if @type == 13 # Butterflies
  530.         @count = (@count += 1) % 5
  531.         @info[i] = rand(50)
  532.         sprite.bitmap = @butterfly_bitmaps[@current_pose[i]]
  533.         if @count == 0 || 3
  534.           if @count == 0
  535.             case @current_pose[i]
  536.             when 0, 1, 2, 3
  537.               @current_pose[i] = (@current_pose[i] += 1) % 4
  538.             when 4, 5, 6, 7
  539.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 4
  540.             when 8, 9, 10, 11
  541.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 8
  542.             when 12, 13, 14, 15
  543.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 12
  544.             end
  545.           end
  546.           case @current_pose[i]
  547.           when 0, 1, 2, 3
  548.             sprite.y -= 1
  549.             sprite.x -= 1 if @current_pose[i] == 0
  550.             sprite.x += 1 if @current_pose[i] == 2
  551.           when 4, 5, 6, 7
  552.             sprite.y += 1
  553.             sprite.x += 1 if @current_pose[i] == 4
  554.             sprite.x -= 1 if @current_pose[i] == 6
  555.           when 8, 9, 10, 11
  556.             sprite.x -= 1
  557.             sprite.y -= 1 if @current_pose[i] == 8
  558.             sprite.y += 1 if @current_pose[i] == 10
  559.           when 12, 13, 14, 15
  560.             sprite.x += 1
  561.             sprite.y -= 1 if @current_pose[i] == 12
  562.             sprite.y += 1 if @current_pose[i] == 14
  563.           end
  564.           if @info[i] < 10
  565.             @current_pose[i] = (@current_pose[i] += 1) % 16
  566.           end
  567.         end
  568.       end
  569.     #----------------------------------------------------------------------
  570.       if @type == 14 # Sparkles
  571.         if @countarray[i] == 0
  572.           @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  573.           sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  574.         end
  575.         @countarray[i] = (@countarray[i] + 1) % 15
  576.         sprite.y += 1
  577.         sprite.opacity -= 1
  578.       end
  579.     #----------------------------------------------------------------------
  580.       if @type == 15 # User-Defined
  581.         if $WEATHER_UPDATE
  582.           update_user_defined
  583.           $WEATHER_UPDATE = false
  584.         end
  585.         if $WEATHER_ANIMATED && @countarray[i] == 0
  586.           @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  587.           sprite.bitmap = @user_bitmaps[@current_pose[i]]
  588.         end
  589.         sprite.x += $WEATHER_X
  590.         sprite.y += $WEATHER_Y
  591.         sprite.opacity -= $WEATHER_FADE
  592.       end
  593.     #----------------------------------------------------------------------
  594.       if @type == 16 # Blowing Snow
  595.         sprite.x -= 10
  596.         sprite.y += 6
  597.         sprite.opacity -= 4
  598.       end
  599.     #----------------------------------------------------------------------
  600.       if @type == 17 # Meteors
  601.         if @countarray[i] > 0
  602.           if rand(20) == 0
  603.             sprite.bitmap = @impact_bitmap
  604.             @countarray[i] = -5
  605.           else
  606.             sprite.x -= 6
  607.             sprite.y += 10
  608.           end
  609.         else
  610.           @countarray[i] += 1
  611.           if @countarray[i] == 0
  612.             sprite.bitmap = @meteor_bitmap
  613.             sprite.opacity = 0
  614.             @count_array = 1
  615.           end
  616.         end
  617.       end
  618.     #----------------------------------------------------------------------
  619.       if @type == 18 # Ash
  620.         sprite.y += 2
  621.         case @countarray[i] % 3
  622.         when 0
  623.           sprite.x -= 1
  624.         when 1
  625.           sprite.x += 1
  626.         end
  627.       end
  628.     #----------------------------------------------------------------------
  629.       if @type == 19 || @type == 20 # Bubbles
  630.         switch = rand(75) + rand(75) + 1
  631.         if @info[i] < switch / 2
  632.           sprite.x -= 1
  633.         else
  634.           sprite.x += 1
  635.         end
  636.         @info[i] = (@info[i] + 1) % switch
  637.         sprite.y -= 1
  638.         if switch % 2 == 0
  639.           sprite.opacity -= 1
  640.         end
  641.       end
  642.     #----------------------------------------------------------------------
  643.       if @type == 21 # Sparkles Up
  644.         if @countarray[i] == 0
  645.           @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  646.           sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  647.         end
  648.         @countarray[i] = (@countarray[i] + 1) % 15
  649.         sprite.y -= 1
  650.         sprite.opacity -= 1
  651.       end
  652.     #----------------------------------------------------------------------
  653.       if @type == 22 # Falling Rocks
  654.         case @info[i]
  655.         when 0 # large
  656.           sprite.y += 10
  657.         when 1 # small
  658.           sprite.y += 5
  659.         when 2 # mid-size
  660.           sprite.y += 7
  661.         end
  662.         sprite.opacity -= 1
  663.       end
  664.     #----------------------------------------------------------------------
  665.       if @type == 23 # Arrows
  666.         sprite.y += 10
  667.         sprite.x -= 7
  668.       end
  669.     #----------------------------------------------------------------------
  670.        if @type == 24 # Starburst
  671.         if @countarray[i] == 0
  672.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  673.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  674.         end
  675.         @countarray[i] = (@countarray[i] + 1) % 15
  676.         sprite.y += 1
  677.         sprite.opacity -= 1
  678.       end
  679.     #----------------------------------------------------------------------
  680.       if @type == 25 # Starburst up
  681.         if @countarray[i] == 0
  682.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  683.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  684.         end
  685.         @countarray[i] = (@countarray[i] + 1) % 15
  686.         sprite.y -= 1
  687.         sprite.opacity -= 1
  688.       end
  689.     #----------------------------------------------------------------------
  690.       if @type == 26 # Starburst Rain
  691.         if @countarray[i] == 0
  692.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  693.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  694.         end
  695.         @countarray[i] = (@countarray[i] + 1) % 15
  696.         sprite.x -= 2
  697.         sprite.y += 8
  698.         sprite.opacity -= 1
  699.       end  
  700.     #----------------------------------------------------------------------
  701.       if @type == 27 # Monochromatic Starburst
  702.         if @countarray[i] == 0
  703.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  704.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  705.         end
  706.         @countarray[i] = (@countarray[i] + 1) % 15
  707.         sprite.y += 1
  708.         sprite.opacity -= 1
  709.       end
  710.     #----------------------------------------------------------------------
  711.       if @type == 28 # Monochromatic Starburst Up
  712.         if @countarray[i] == 0
  713.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  714.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  715.         end
  716.         @countarray[i] = (@countarray[i] + 1) % 15
  717.         sprite.y -= 1
  718.         sprite.opacity -= 1
  719.       end
  720.     #----------------------------------------------------------------------
  721.       if @type == 29 # Monochromatic Starburst Rain
  722.         if @countarray[i] == 0
  723.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  724.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  725.         end
  726.         @countarray[i] = (@countarray[i] + 1) % 15
  727.         sprite.x -= 2
  728.         sprite.y += 8
  729.         sprite.opacity -= 1
  730.       end  
  731.     #----------------------------------------------------------------------
  732.       if @type == 30 # Bombs
  733.         if @countarray[i] > 0
  734.           if rand(20) == 0
  735.             sprite.bitmap = @bomb_impact_bitmap
  736.             @countarray[i] = -5
  737.           else
  738.             sprite.x -= 3
  739.             sprite.y += 5
  740.           end
  741.         else
  742.           @countarray[i] += 1
  743.           if @countarray[i] == 0
  744.             sprite.bitmap = @bomb_bitmap
  745.             sprite.opacity = 0
  746.             @count_array = 1
  747.           end
  748.         end
  749.       end
  750.       x = sprite.x - @ox
  751.       y = sprite.y - @oy
  752.       if sprite.opacity < 64 || x < -50 || x > 750 || y < -300 || y > 500
  753.         sprite.x = rand(800) - 50 + @ox
  754.         sprite.y = rand(800) - 200 + @oy
  755.         sprite.opacity = 255
  756.       end
  757.     #----------------------------------------------------------------------
  758.       if @type == 31 # Birds
  759.         @count = (@count += 1) % 5
  760.         if @count == 0
  761.           @current_pose[i] = (@current_pose[i] += 1) % 4
  762.         end
  763.         sprite.bitmap = @bird_bitmaps[@current_pose[i]]
  764.         sprite.x -= rand(2) + 3
  765.         sprite.y -= 1 if @info[i].between?(0, 20)
  766.         sprite.y += 1 if @info[i].between?(20, 40)
  767.         sprite.y -= 1 if @info[i].between?(40, 70)
  768.         sprite.y += 1 if @info[i].between?(70, 120)
  769.         @info[i] = (@info[i] += 1) % 120
  770.       end
  771.     #----------------------------------------------------------------------
  772.       if @type == 32 || @type == 33 # Bats and Bees
  773.         @count = (@count += 1) % 5
  774.         sprite.bitmap = @bat_bitmaps[@current_pose[i]] if @type == 32
  775.         sprite.bitmap = @bee_bitmaps[@current_pose[i]] if @type == 33
  776.         if @count == 0 || 3
  777.           if @count == 0
  778.             case @current_pose[i]
  779.             when 0, 1, 2, 3       # Left
  780.               @current_pose[i] = (@current_pose[i] += 1) % 4
  781.             when 4, 5, 6, 7       # Up
  782.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 4
  783.             when 8, 9, 10, 11     # Right
  784.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 8
  785.             when 12, 13, 14, 15   # Down
  786.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 12
  787.             end
  788.           end
  789.           @info[i] = rand(50)
  790.           case @current_pose[i]
  791.           when 0, 1, 2, 3
  792.             sprite.x -= 4
  793.             sprite.y += 3 if @info[i] <= 35
  794.             sprite.y -= 3 if @info[i] > 35
  795.           when 4, 5, 6, 7
  796.             sprite.y -= 4
  797.             sprite.x += 3 if @info[i] <= 40
  798.             sprite.x -= 3 if @info[i] > 40
  799.           when 8, 9, 10, 11
  800.             sprite.x += 4
  801.             sprite.y += 3 if @info[i] <= 15
  802.             sprite.y -= 3 if @info[i] > 15
  803.           when 12, 13, 14, 15
  804.             sprite.y += 4
  805.             sprite.x += 3 if @info[i] <= 25
  806.             sprite.x -= 3 if @info[i] > 25
  807.           end
  808.           if @info[i] < 10
  809.             @current_pose[i] = (@current_pose[i] += 1) % 16
  810.           end
  811.         end
  812.       end
  813.     #----------------------------------------------------------------------
  814.       if @type == 34 # Fish
  815.         @info[i] = (@info[i] += 1) % 200
  816.         sprite.x -= rand(2) + 1
  817.         sprite.x -= 3 if @info[i] >= 180
  818.         sprite.y -= 1 if @info[i] < 75
  819.         sprite.y += 1 if @info[i].between?(75, 150)
  820.       end
  821.     #----------------------------------------------------------------------
  822.       if @type == 35 # Ravens
  823.         @count = (@count += 1) % 5
  824.         sprite.bitmap = @raven_bitmaps[@current_pose[i]]
  825.         if @count == 0 || 3
  826.           if @count == 0
  827.             case @current_pose[i]
  828.             when 0, 1, 2, 3       # Left
  829.               @current_pose[i] = (@current_pose[i] += 1) % 4
  830.             when 4, 5, 6, 7       # Up
  831.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 4
  832.             when 8, 9, 10, 11     # Right
  833.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 8
  834.             when 12, 13, 14, 15   # Down
  835.               @current_pose[i] = ((@current_pose[i] += 1) % 4) + 12
  836.             end
  837.           end
  838.           @info[i] = rand(50)
  839.           case @current_pose[i]
  840.           when 0, 1, 2, 3
  841.             sprite.x -= 2
  842.             sprite.y += 1 if @info[i] <= 35
  843.             sprite.y -= 1 if @info[i] > 35
  844.           when 4, 5, 6, 7
  845.             sprite.y -= 2
  846.             sprite.x += 1 if @info[i] <= 40
  847.             sprite.x -= 1 if @info[i] > 40
  848.           when 8, 9, 10, 11
  849.             sprite.x += 2
  850.             sprite.y += 1 if @info[i] <= 15
  851.             sprite.y -= 1 if @info[i] > 15
  852.           when 12, 13, 14, 15
  853.             sprite.y += 2
  854.             sprite.x += 1 if @info[i] <= 25
  855.             sprite.x -= 1 if @info[i] > 25
  856.           end
  857.           if @info[i] < 5
  858.             @current_pose[i] = (@current_pose[i] += 1) % 16
  859.           end
  860.         end
  861.       end
  862.     #----------------------------------------------------------------------
  863.     }
  864.   end
  865. #-------------------------------------------------------------------------------  
  866.   def make_bitmaps
  867.    
  868.     # All the colors for each type are used only for their respective bitmaps
  869.     # now, therefore the colors can be changed for one type without worrying
  870.     # about messing up another that shares that color.
  871.    
  872. #-------------------------------------------------------------------------------
  873.     # Rain Bitmap
  874.    
  875.     @rain_bitmap = Bitmap.new(7, 56)
  876.     rain_color = case $game_screen.weather_variation
  877.     when 1 then Color.new(141, 9, 9)            # Blood Rain
  878.     when 2 then Color.new(15, 15, 15)           # Oil Rain
  879.     when 3 then Color.new(76, 91, 43)           # Acid Rain
  880.     when 4 then Color.new(218, 207, 36)         # Golden Rain
  881.     when 5 then Color.new(100, 75, 63)          # Sepia Rain
  882.     else
  883.       Color.new(255, 255, 255)                  # Normal
  884.     end
  885.    
  886.     (0..6).each {|i| @rain_bitmap.fill_rect(6-i, i*8, 1, 8, rain_color)}
  887. #-------------------------------------------------------------------------------
  888.     # Storm Bitmap
  889.    
  890.     @storm_bitmap = Bitmap.new(34, 64)
  891.     case $game_screen.weather_variation
  892.     when 1 # Blood
  893.       storm_color1 = Color.new(141, 9, 9)
  894.       storm_color2 = Color.new(141, 9, 9, 128)
  895.     when 2 # Oil
  896.       storm_color1 = Color.new(15, 15, 15)
  897.       storm_color2 = Color.new(15, 15, 15, 128)
  898.     when 3 # Acid
  899.       storm_color1 = Color.new(227, 217, 56)
  900.       storm_color2 = Color.new(218, 207, 36)
  901.     when 4 # Golden
  902.       storm_color1 = Color.new(227, 217, 56)
  903.       storm_color2 = Color.new(218, 207, 36)
  904.     when 5 # Sepia
  905.       storm_color1 = Color.new(167, 149, 139)
  906.       storm_color2 = Color.new(100, 75, 63)
  907.     else # Normal, Realistic (Default)
  908.       storm_color1 = Color.new(255, 255, 255)
  909.       storm_color2 = Color.new(255, 255, 255, 128)
  910.     end
  911.      
  912.     (0..31).each {|i|
  913.       @storm_bitmap.fill_rect(33-i, i*2, 1, 2, storm_color2)
  914.       @storm_bitmap.fill_rect(32-i, i*2, 1, 2, storm_color1)
  915.       @storm_bitmap.fill_rect(31-i, i*2, 1, 2, storm_color2)
  916.     }
  917. #-------------------------------------------------------------------------------
  918.     # Splash Bitmap
  919.  
  920.     @rain_splash = Bitmap.new(8, 5)
  921.     case $game_screen.weather_variation
  922.     when 1 # Blood splash
  923.       splash_color1 = Color.new(141, 9, 9)
  924.       splash_color2 = Color.new(141, 9, 9, 128)
  925.     when 2 # Oil splash
  926.       splash_color1 = Color.new(0, 0, 0)
  927.       splash_color2 = Color.new(15, 15, 15)
  928.     when 4 # Golden splash
  929.       splash_color1 = Color.new(227, 217, 56)
  930.       splash_color2 = Color.new(218, 207, 36)
  931.     when 5 # Sepia splash
  932.       splash_color1 = Color.new(167, 149, 139)
  933.       splash_color2 = Color.new(100, 75, 63)
  934.     else # Normal (Default)
  935.       splash_color1 = Color.new(255, 255, 255)
  936.       splash_color2 = Color.new(255, 255, 255, 128)
  937.     end
  938.    
  939.     @rain_splash.fill_rect(1, 0, 6, 1, splash_color2)
  940.     @rain_splash.fill_rect(1, 4, 6, 1, splash_color2)
  941.     @rain_splash.fill_rect(0, 1, 1, 3, splash_color2)
  942.     @rain_splash.fill_rect(7, 1, 1, 3, splash_color2)
  943.     @rain_splash.set_pixel(1, 0, splash_color1)
  944.     @rain_splash.set_pixel(0, 1, splash_color1)
  945. #-------------------------------------------------------------------------------
  946.     # Snow Bitmaps
  947.    
  948.     case $game_screen.weather_variation
  949.     when 1 # Crimson
  950.       snow_color1 = Color.new(141, 9, 9)
  951.       snow_color2 = Color.new(141, 9, 9, 128)
  952.       snow_color3 = Color.new(141, 9, 9, 204)
  953.     else # Normal (Default)
  954.       snow_color1 = Color.new(255, 255, 255)
  955.       snow_color2 = Color.new(255, 255, 255, 128)
  956.       snow_color3 = Color.new(255, 255, 255, 204)
  957.     end
  958.    
  959.     # Used for Blowing Snow
  960.     @snow_bitmap = Bitmap.new(6, 6)
  961.     @snow_bitmap.fill_rect(0, 1, 6, 4, snow_color2)
  962.     @snow_bitmap.fill_rect(1, 0, 4, 6, snow_color2)
  963.     @snow_bitmap.fill_rect(1, 2, 4, 2, snow_color1)
  964.     @snow_bitmap.fill_rect(2, 1, 2, 4, snow_color1)
  965.    
  966.     # Used for Falling Snow
  967.     @sprites = []  
  968.     @snow_bitmaps = []
  969.     @snow_bitmaps[0] = Bitmap.new(3, 3)
  970.     @snow_bitmaps[0].fill_rect(0, 0, 3, 3, snow_color2)
  971.     @snow_bitmaps[0].fill_rect(0, 1, 3, 1, snow_color3)
  972.     @snow_bitmaps[0].fill_rect(1, 0, 1, 3, snow_color3)
  973.     @snow_bitmaps[0].set_pixel(1, 1, snow_color1)
  974.    
  975.     @snow_bitmaps[1] = Bitmap.new(4, 4)
  976.     @snow_bitmaps[1].fill_rect(0, 1, 4, 2, snow_color2)
  977.     @snow_bitmaps[1].fill_rect(1, 0, 2, 4, snow_color2)
  978.     @snow_bitmaps[1].fill_rect(1, 1, 2, 2, snow_color1)
  979.    
  980.     @snow_bitmaps[2] = Bitmap.new(5, 5)
  981.     @snow_bitmaps[2].fill_rect(0, 1, 5, 3, snow_color3)
  982.     @snow_bitmaps[2].fill_rect(1, 0, 3, 5, snow_color3)
  983.     @snow_bitmaps[2].fill_rect(1, 1, 3, 3, snow_color2)
  984.     @snow_bitmaps[2].fill_rect(2, 1, 3, 1, snow_color1)
  985.     @snow_bitmaps[2].fill_rect(1, 2, 1, 3, snow_color1)
  986.    
  987.     @snow_bitmaps[3] = Bitmap.new(7, 7)
  988.     @snow_bitmaps[3].fill_rect(1, 1, 5, 5, snow_color3)
  989.     @snow_bitmaps[3].fill_rect(2, 0, 7, 3, snow_color3)
  990.     @snow_bitmaps[3].fill_rect(0, 2, 3, 7, snow_color3)
  991.     @snow_bitmaps[3].fill_rect(2, 1, 5, 3, snow_color2)
  992.     @snow_bitmaps[3].fill_rect(1, 2, 3, 5, snow_color2)
  993.     @snow_bitmaps[3].fill_rect(2, 2, 3, 3, snow_color1)
  994.     @snow_bitmaps[3].fill_rect(3, 1, 5, 1, snow_color1)
  995.     @snow_bitmaps[3].fill_rect(1, 3, 1, 5, snow_color1)
  996. #-------------------------------------------------------------------------------    
  997.     #Hail
  998.    
  999.     hail_color1 = Color.new(215, 227, 227, 150)
  1000.     hail_color2 = Color.new(214, 217, 217, 150)
  1001.     hail_color3 = Color.new(233, 233, 233, 250)
  1002.     hail_color4 = Color.new(222, 239, 243, 250)
  1003.    
  1004.     @hail_bitmap = Bitmap.new(4, 4)
  1005.     @hail_bitmap.fill_rect(1, 0, 2, 1, hail_color1)
  1006.     @hail_bitmap.fill_rect(0, 1, 1, 2, hail_color1)
  1007.     @hail_bitmap.fill_rect(3, 1, 1, 2, hail_color2)
  1008.     @hail_bitmap.fill_rect(1, 3, 2, 1, hail_color2)
  1009.     @hail_bitmap.fill_rect(1, 1, 2, 2, hail_color3)
  1010.     @hail_bitmap.set_pixel(1, 1, hail_color4)
  1011. #-------------------------------------------------------------------------------    
  1012.     #Sakura Petals
  1013.  
  1014.     sakura_color1 = Color.new(255, 167, 192, 255)
  1015.     sakura_color2 = Color.new(213, 106, 136, 255)
  1016.    
  1017.     @sakura_bitmap = Bitmap.new(4, 4)  
  1018.     @sakura_bitmap.fill_rect(0, 3, 1, 1, sakura_color1)
  1019.     @sakura_bitmap.fill_rect(1, 2, 1, 1, sakura_color1)
  1020.     @sakura_bitmap.fill_rect(2, 1, 1, 1, sakura_color1)
  1021.     @sakura_bitmap.fill_rect(3, 0, 1, 1, sakura_color1)
  1022.     @sakura_bitmap.fill_rect(1, 3, 1, 1, sakura_color2)
  1023.     @sakura_bitmap.fill_rect(2, 2, 1, 1, sakura_color2)
  1024.     @sakura_bitmap.fill_rect(3, 1, 1, 1, sakura_color2)
  1025. #-------------------------------------------------------------------------------
  1026.     # Leaf Bitmaps
  1027.    
  1028.     @leaf_bitmaps = []
  1029.     case $game_screen.weather_variation
  1030.     when 1 # Yellow
  1031.       leaf_color1 = Color.new(110, 104, 3)
  1032.       leaf_color2 = Color.new(205, 194, 23)
  1033.       leaf_color3 = Color.new(186, 176, 14)
  1034.       leaf_color4 = Color.new(218, 207, 36)
  1035.       leaf_color5 = Color.new(227, 217, 56)
  1036.     when 2 # Autumn
  1037.       leaf_color1 = Color.new(248, 88, 0)
  1038.       leaf_color2 = Color.new(144, 80, 56)
  1039.       leaf_color3 = Color.new(152, 0, 0)
  1040.       leaf_color4 = Color.new(232, 160, 128)
  1041.       leaf_color5 = Color.new(72, 40, 0)
  1042.     when 3 # Red Maple
  1043.       leaf_color1 = Color.new(255, 0, 0)
  1044.       leaf_color2 = Color.new(179, 17, 17)
  1045.       leaf_color3 = Color.new(141, 9, 9)
  1046.       leaf_color4 = Color.new(179, 17, 17)
  1047.       leaf_color5 = Color.new(141, 9, 9)
  1048.     else # Green (Default)
  1049.       leaf_color1 = Color.new(62, 76, 31)
  1050.       leaf_color2 = Color.new(76, 91, 43)
  1051.       leaf_color3 = Color.new(105, 114, 66)
  1052.       leaf_color4 = Color.new(128, 136, 88)
  1053.       leaf_color5 = Color.new(146, 154, 106)
  1054.     end
  1055.  
  1056.     # 1st leaf bitmap
  1057.     @leaf_bitmaps[0] = Bitmap.new(8, 8)
  1058.     @leaf_bitmaps[0].set_pixel(1, 0, leaf_color1)
  1059.     @leaf_bitmaps[0].set_pixel(1, 1, leaf_color2)
  1060.     @leaf_bitmaps[0].set_pixel(2, 1, leaf_color1)
  1061.     @leaf_bitmaps[0].set_pixel(2, 2, leaf_color3)
  1062.     @leaf_bitmaps[0].set_pixel(3, 2, leaf_color1)
  1063.     @leaf_bitmaps[0].set_pixel(4, 2, leaf_color3)
  1064.     @leaf_bitmaps[0].fill_rect(2, 3, 3, 1, leaf_color2)
  1065.     @leaf_bitmaps[0].set_pixel(5, 3, leaf_color3)
  1066.     @leaf_bitmaps[0].fill_rect(2, 4, 2, 1, leaf_color2)
  1067.     @leaf_bitmaps[0].set_pixel(4, 4, leaf_color1)
  1068.     @leaf_bitmaps[0].set_pixel(5, 4, leaf_color4)
  1069.     @leaf_bitmaps[0].set_pixel(6, 4, leaf_color3)
  1070.     @leaf_bitmaps[0].set_pixel(3, 5, leaf_color2)
  1071.     @leaf_bitmaps[0].set_pixel(4, 5, leaf_color1)
  1072.     @leaf_bitmaps[0].set_pixel(5, 5, leaf_color3)
  1073.     @leaf_bitmaps[0].set_pixel(6, 5, leaf_color4)
  1074.     @leaf_bitmaps[0].set_pixel(4, 6, leaf_color2)
  1075.     @leaf_bitmaps[0].set_pixel(5, 6, leaf_color1)
  1076.     @leaf_bitmaps[0].set_pixel(6, 6, leaf_color4)
  1077.     @leaf_bitmaps[0].set_pixel(6, 7, leaf_color3)
  1078.    
  1079.     # 2nd leaf bitmap
  1080.     @leaf_bitmaps[1] = Bitmap.new(8, 8)
  1081.     @leaf_bitmaps[1].fill_rect(1, 1, 1, 2, leaf_color2)
  1082.     @leaf_bitmaps[1].fill_rect(2, 2, 2, 1, leaf_color3)
  1083.     @leaf_bitmaps[1].set_pixel(4, 2, leaf_color4)
  1084.     @leaf_bitmaps[1].fill_rect(2, 3, 2, 1, leaf_color1)
  1085.     @leaf_bitmaps[1].fill_rect(4, 3, 2, 1, leaf_color4)
  1086.     @leaf_bitmaps[1].set_pixel(2, 4, leaf_color2)
  1087.     @leaf_bitmaps[1].set_pixel(3, 4, leaf_color1)
  1088.     @leaf_bitmaps[1].set_pixel(4, 4, leaf_color3)
  1089.     @leaf_bitmaps[1].fill_rect(5, 4, 2, 1, leaf_color4)
  1090.     @leaf_bitmaps[1].set_pixel(3, 5, leaf_color2)
  1091.     @leaf_bitmaps[1].set_pixel(4, 5, leaf_color1)
  1092.     @leaf_bitmaps[1].set_pixel(5, 5, leaf_color3)
  1093.     @leaf_bitmaps[1].set_pixel(6, 5, leaf_color4)
  1094.     @leaf_bitmaps[1].set_pixel(5, 6, leaf_color1)
  1095.     @leaf_bitmaps[1].fill_rect(6, 6, 2, 1, leaf_color3)
  1096.    
  1097.     # 3rd leaf bitmap
  1098.     @leaf_bitmaps[2] = Bitmap.new(8, 8)
  1099.     @leaf_bitmaps[2].set_pixel(1, 1, leaf_color1)
  1100.     @leaf_bitmaps[2].fill_rect(1, 2, 2, 1, leaf_color2)
  1101.     @leaf_bitmaps[2].set_pixel(2, 3, leaf_color2)
  1102.     @leaf_bitmaps[2].set_pixel(3, 3, leaf_color1)
  1103.     @leaf_bitmaps[2].set_pixel(4, 3, leaf_color2)
  1104.     @leaf_bitmaps[2].fill_rect(2, 4, 2, 1, leaf_color2)
  1105.     @leaf_bitmaps[2].set_pixel(4, 4, leaf_color1)
  1106.     @leaf_bitmaps[2].set_pixel(5, 4, leaf_color4)
  1107.     @leaf_bitmaps[2].set_pixel(3, 5, leaf_color2)
  1108.     @leaf_bitmaps[2].set_pixel(4, 5, leaf_color1)
  1109.     @leaf_bitmaps[2].fill_rect(5, 5, 2, 1, leaf_color3)
  1110.     @leaf_bitmaps[2].fill_rect(4, 6, 2, 1, leaf_color2)
  1111.     @leaf_bitmaps[2].set_pixel(6, 6, leaf_color4)
  1112.     @leaf_bitmaps[2].set_pixel(6, 7, leaf_color3)
  1113.    
  1114.     # 4th leaf bitmap
  1115.     @leaf_bitmaps[3] = Bitmap.new(8, 8)
  1116.     @leaf_bitmaps[3].fill_rect(0, 3, 1, 2, leaf_color1)
  1117.     @leaf_bitmaps[3].set_pixel(1, 4, leaf_color2)
  1118.     @leaf_bitmaps[3].set_pixel(2, 4, leaf_color3)
  1119.     @leaf_bitmaps[3].set_pixel(3, 4, leaf_color4)
  1120.     @leaf_bitmaps[3].set_pixel(4, 4, leaf_color1)
  1121.     @leaf_bitmaps[3].set_pixel(7, 4, leaf_color2)
  1122.     @leaf_bitmaps[3].set_pixel(1, 5, leaf_color1)
  1123.     @leaf_bitmaps[3].set_pixel(2, 5, leaf_color2)
  1124.     @leaf_bitmaps[3].set_pixel(3, 5, leaf_color4)
  1125.     @leaf_bitmaps[3].set_pixel(4, 5, leaf_color5)
  1126.     @leaf_bitmaps[3].set_pixel(5, 5, leaf_color4)
  1127.     @leaf_bitmaps[3].set_pixel(6, 5, leaf_color3)
  1128.     @leaf_bitmaps[3].set_pixel(7, 5, leaf_color2)
  1129.     @leaf_bitmaps[3].fill_rect(2, 6, 2, 1, leaf_color2)
  1130.     @leaf_bitmaps[3].set_pixel(4, 6, leaf_color4)
  1131.     @leaf_bitmaps[3].set_pixel(5, 6, leaf_color3)
  1132.     @leaf_bitmaps[3].set_pixel(6, 6, leaf_color2)
  1133.    
  1134.     # 5th leaf bitmap
  1135.     @leaf_bitmaps[4] = Bitmap.new(8, 8)
  1136.     @leaf_bitmaps[4].set_pixel(6, 2, leaf_color2)
  1137.     @leaf_bitmaps[4].set_pixel(7, 2, leaf_color1)
  1138.     @leaf_bitmaps[4].fill_rect(4, 3, 2, 1, leaf_color2)
  1139.     @leaf_bitmaps[4].set_pixel(6, 3, leaf_color3)
  1140.     @leaf_bitmaps[4].set_pixel(2, 4, leaf_color1)
  1141.     @leaf_bitmaps[4].fill_rect(3, 4, 2, 1, leaf_color3)
  1142.     @leaf_bitmaps[4].set_pixel(5, 4, leaf_color4)
  1143.     @leaf_bitmaps[4].set_pixel(6, 4, leaf_color3)
  1144.     @leaf_bitmaps[4].set_pixel(1, 5, leaf_color2)
  1145.     @leaf_bitmaps[4].set_pixel(2, 5, leaf_color3)
  1146.     @leaf_bitmaps[4].set_pixel(3, 5, leaf_color4)
  1147.     @leaf_bitmaps[4].set_pixel(4, 5, leaf_color5)
  1148.     @leaf_bitmaps[4].set_pixel(5, 5, leaf_color2)
  1149.     @leaf_bitmaps[4].set_pixel(2, 6, leaf_color1)
  1150.     @leaf_bitmaps[4].fill_rect(3, 6, 2, 1, leaf_color2)
  1151.    
  1152.     # 6th leaf bitmap
  1153.     @leaf_bitmaps[5] = Bitmap.new(8, 8)
  1154.     @leaf_bitmaps[5].fill_rect(6, 2, 2, 1, leaf_color2)
  1155.     @leaf_bitmaps[5].fill_rect(4, 3, 2, 1, leaf_color2)
  1156.     @leaf_bitmaps[5].set_pixel(6, 3, leaf_color3)
  1157.     @leaf_bitmaps[5].set_pixel(3, 4, leaf_color2)
  1158.     @leaf_bitmaps[5].set_pixel(4, 4, leaf_color3)
  1159.     @leaf_bitmaps[5].set_pixel(5, 4, leaf_color4)
  1160.     @leaf_bitmaps[5].set_pixel(6, 4, leaf_color5)
  1161.     @leaf_bitmaps[5].set_pixel(1, 5, leaf_color2)
  1162.     @leaf_bitmaps[5].set_pixel(2, 5, leaf_color3)
  1163.     @leaf_bitmaps[5].fill_rect(3, 5, 2, 1, leaf_color5)
  1164.     @leaf_bitmaps[5].set_pixel(5, 5, leaf_color4)
  1165.     @leaf_bitmaps[5].set_pixel(2, 6, leaf_color2)
  1166.     @leaf_bitmaps[5].set_pixel(3, 6, leaf_color3)
  1167.     @leaf_bitmaps[5].set_pixel(4, 6, leaf_color4)
  1168.    
  1169.     # 7th leaf bitmap
  1170.     @leaf_bitmaps[6] = Bitmap.new(8, 8)
  1171.     @leaf_bitmaps[6].fill_rect(6, 1, 1, 2, leaf_color2)
  1172.     @leaf_bitmaps[6].fill_rect(4, 2, 2, 1, leaf_color2)
  1173.     @leaf_bitmaps[6].fill_rect(6, 2, 1, 2, leaf_color1)
  1174.     @leaf_bitmaps[6].fill_rect(3, 3, 2, 1, leaf_color2)
  1175.     @leaf_bitmaps[6].set_pixel(5, 3, leaf_color3)
  1176.     @leaf_bitmaps[6].set_pixel(2, 4, leaf_color2)
  1177.     @leaf_bitmaps[6].set_pixel(3, 4, leaf_color3)
  1178.     @leaf_bitmaps[6].set_pixel(4, 4, leaf_color4)
  1179.     @leaf_bitmaps[6].set_pixel(5, 4, leaf_color2)
  1180.     @leaf_bitmaps[6].set_pixel(1, 5, leaf_color2)
  1181.     @leaf_bitmaps[6].set_pixel(2, 5, leaf_color3)
  1182.     @leaf_bitmaps[6].fill_rect(3, 5, 2, 1, leaf_color2)
  1183.     @leaf_bitmaps[6].set_pixel(1, 6, leaf_color1)
  1184.     @leaf_bitmaps[6].set_pixel(2, 6, leaf_color2)
  1185.    
  1186.     # 8th leaf bitmap
  1187.     @leaf_bitmaps[7] = Bitmap.new(8, 8)
  1188.     @leaf_bitmaps[7].set_pixel(6, 1, leaf_color2)
  1189.     @leaf_bitmaps[7].fill_rect(4, 2, 3, 2, leaf_color2)
  1190.     @leaf_bitmaps[7].set_pixel(3, 3, leaf_color1)
  1191.     @leaf_bitmaps[7].set_pixel(2, 4, leaf_color1)
  1192.     @leaf_bitmaps[7].set_pixel(3, 4, leaf_color2)
  1193.     @leaf_bitmaps[7].fill_rect(4, 4, 2, 1, leaf_color3)
  1194.     @leaf_bitmaps[7].set_pixel(1, 5, leaf_color1)
  1195.     @leaf_bitmaps[7].set_pixel(2, 5, leaf_color2)
  1196.     @leaf_bitmaps[7].fill_rect(3, 5, 2, 1, leaf_color4)
  1197.     @leaf_bitmaps[7].set_pixel(2, 6, leaf_color2)
  1198.     @leaf_bitmaps[7].set_pixel(3, 6, leaf_color4)
  1199.    
  1200.     # 9th leaf bitmap
  1201.     @leaf_bitmaps[8] = Bitmap.new(8, 8)
  1202.     @leaf_bitmaps[8].fill_rect(6, 1, 1, 2, leaf_color2)
  1203.     @leaf_bitmaps[8].fill_rect(4, 2, 2, 1, leaf_color2)
  1204.     @leaf_bitmaps[8].fill_rect(6, 2, 1, 2, leaf_color1)
  1205.     @leaf_bitmaps[8].fill_rect(3, 3, 2, 1, leaf_color2)
  1206.     @leaf_bitmaps[8].set_pixel(5, 3, leaf_color3)
  1207.     @leaf_bitmaps[8].set_pixel(2, 4, leaf_color2)
  1208.     @leaf_bitmaps[8].set_pixel(3, 4, leaf_color3)
  1209.     @leaf_bitmaps[8].set_pixel(4, 4, leaf_color4)
  1210.     @leaf_bitmaps[8].set_pixel(5, 4, leaf_color2)
  1211.     @leaf_bitmaps[8].set_pixel(1, 5, leaf_color2)
  1212.     @leaf_bitmaps[8].set_pixel(2, 5, leaf_color3)
  1213.     @leaf_bitmaps[8].fill_rect(3, 5, 2, 1, leaf_color2)
  1214.     @leaf_bitmaps[8].set_pixel(1, 6, leaf_color1)
  1215.     @leaf_bitmaps[8].set_pixel(2, 6, leaf_color2)
  1216.    
  1217.     # 10th leaf bitmap
  1218.     @leaf_bitmaps[9] = Bitmap.new(8, 8)
  1219.     @leaf_bitmaps[9].fill_rect(6, 2, 2, 1, leaf_color2)
  1220.     @leaf_bitmaps[9].fill_rect(4, 3, 2, 1, leaf_color2)
  1221.     @leaf_bitmaps[9].set_pixel(6, 3, leaf_color3)
  1222.     @leaf_bitmaps[9].set_pixel(3, 4, leaf_color2)
  1223.     @leaf_bitmaps[9].set_pixel(4, 4, leaf_color3)
  1224.     @leaf_bitmaps[9].set_pixel(5, 4, leaf_color4)
  1225.     @leaf_bitmaps[9].set_pixel(6, 4, leaf_color5)
  1226.     @leaf_bitmaps[9].set_pixel(1, 5, leaf_color2)
  1227.     @leaf_bitmaps[9].set_pixel(2, 5, leaf_color3)
  1228.     @leaf_bitmaps[9].fill_rect(3, 5, 2, 1, leaf_color5)
  1229.     @leaf_bitmaps[9].set_pixel(5, 5, leaf_color4)
  1230.     @leaf_bitmaps[9].set_pixel(2, 6, leaf_color2)
  1231.     @leaf_bitmaps[9].set_pixel(3, 6, leaf_color3)
  1232.     @leaf_bitmaps[9].set_pixel(4, 6, leaf_color4)
  1233.    
  1234.     # 11th leaf bitmap
  1235.     @leaf_bitmaps[10] = Bitmap.new(8, 8)
  1236.     @leaf_bitmaps[10].set_pixel(6, 2, leaf_color2)
  1237.     @leaf_bitmaps[10].set_pixel(7, 2, leaf_color1)
  1238.     @leaf_bitmaps[10].fill_rect(4, 3, 2, 1, leaf_color2)
  1239.     @leaf_bitmaps[10].set_pixel(6, 3, leaf_color3)
  1240.     @leaf_bitmaps[10].set_pixel(2, 4, leaf_color1)
  1241.     @leaf_bitmaps[10].fill_rect(3, 4, 2, 1, leaf_color3)
  1242.     @leaf_bitmaps[10].set_pixel(5, 4, leaf_color4)
  1243.     @leaf_bitmaps[10].set_pixel(6, 4, leaf_color3)
  1244.     @leaf_bitmaps[10].set_pixel(1, 5, leaf_color2)
  1245.     @leaf_bitmaps[10].set_pixel(2, 5, leaf_color3)
  1246.     @leaf_bitmaps[10].set_pixel(3, 5, leaf_color4)
  1247.     @leaf_bitmaps[10].set_pixel(4, 5, leaf_color5)
  1248.     @leaf_bitmaps[10].set_pixel(5, 5, leaf_color2)
  1249.     @leaf_bitmaps[10].set_pixel(2, 6, leaf_color1)
  1250.     @leaf_bitmaps[10].fill_rect(3, 6, 2, 1, leaf_color2)
  1251.    
  1252.     # 12th leaf bitmap
  1253.     @leaf_bitmaps[11] = Bitmap.new(8, 8)
  1254.     @leaf_bitmaps[11].fill_rect(0, 3, 1, 2, leaf_color1)
  1255.     @leaf_bitmaps[11].set_pixel(1, 4, leaf_color2)
  1256.     @leaf_bitmaps[11].set_pixel(2, 4, leaf_color3)
  1257.     @leaf_bitmaps[11].set_pixel(3, 4, leaf_color4)
  1258.     @leaf_bitmaps[11].set_pixel(4, 4, leaf_color1)
  1259.     @leaf_bitmaps[11].set_pixel(7, 4, leaf_color2)
  1260.     @leaf_bitmaps[11].set_pixel(1, 5, leaf_color1)
  1261.     @leaf_bitmaps[11].set_pixel(2, 5, leaf_color2)
  1262.     @leaf_bitmaps[11].set_pixel(3, 5, leaf_color4)
  1263.     @leaf_bitmaps[11].set_pixel(4, 5, leaf_color5)
  1264.     @leaf_bitmaps[11].set_pixel(5, 5, leaf_color4)
  1265.     @leaf_bitmaps[11].set_pixel(6, 5, leaf_color3)
  1266.     @leaf_bitmaps[11].set_pixel(7, 5, leaf_color2)
  1267.     @leaf_bitmaps[11].fill_rect(2, 6, 2, 1, leaf_color2)
  1268.     @leaf_bitmaps[11].set_pixel(4, 6, leaf_color4)
  1269.     @leaf_bitmaps[11].set_pixel(5, 6, leaf_color3)
  1270.     @leaf_bitmaps[11].set_pixel(6, 6, leaf_color2)
  1271.    
  1272.     # 13th leaf bitmap
  1273.     @leaf_bitmaps[12] = Bitmap.new(8, 8)
  1274.     @leaf_bitmaps[12].set_pixel(1, 1, leaf_color1)
  1275.     @leaf_bitmaps[12].fill_rect(1, 2, 2, 1, leaf_color2)
  1276.     @leaf_bitmaps[12].set_pixel(2, 3, leaf_color2)
  1277.     @leaf_bitmaps[12].set_pixel(3, 3, leaf_color1)
  1278.     @leaf_bitmaps[12].set_pixel(4, 3, leaf_color2)
  1279.     @leaf_bitmaps[12].fill_rect(2, 4, 2, 1, leaf_color2)
  1280.     @leaf_bitmaps[12].set_pixel(4, 4, leaf_color1)
  1281.     @leaf_bitmaps[12].set_pixel(5, 4, leaf_color4)
  1282.     @leaf_bitmaps[12].set_pixel(3, 5, leaf_color2)
  1283.     @leaf_bitmaps[12].set_pixel(4, 5, leaf_color1)
  1284.     @leaf_bitmaps[12].fill_rect(5, 5, 2, 1, leaf_color3)
  1285.     @leaf_bitmaps[12].fill_rect(4, 6, 2, 1, leaf_color2)
  1286.     @leaf_bitmaps[12].set_pixel(6, 6, leaf_color4)
  1287.     @leaf_bitmaps[12].set_pixel(6, 7, leaf_color3)
  1288. #-------------------------------------------------------------------------------    
  1289.     # Petals
  1290.  
  1291.     @petal_bitmaps = []
  1292.     case $game_screen.weather_variation
  1293.     when 1 # Lavender
  1294.       petal_color1 = Color.new(213, 80, 254)
  1295.       petal_color2 = Color.new(176, 92, 201)
  1296.       petal_color3 = Color.new(154, 86, 175)
  1297.     when 2 # Tiger Lily
  1298.       petal_color1 = Color.new(254, 154, 40)
  1299.       petal_color2 = Color.new(254, 162, 65)
  1300.       petal_color3 = Color.new(254, 135, 71)
  1301.     when 3 # Pink
  1302.       petal_color1 = Color.new(247, 80, 119)
  1303.       petal_color2 = Color.new(247, 101, 138)
  1304.       petal_color3 = Color.new(244, 105, 165)
  1305.     when 4 # Blue
  1306.       petal_color1 = Color.new(109, 126, 238)
  1307.       petal_color2 = Color.new(128, 143, 240)
  1308.       petal_color3 = Color.new(129, 165, 236)
  1309.     when 5 # Green
  1310.       petal_color1 = Color.new(136, 217, 135)
  1311.       petal_color2 = Color.new(153, 221, 152)
  1312.       petal_color3 = Color.new(170, 221, 154)
  1313.     when 6 # Blue-Purple
  1314.       petal_color1 = Color.new(94, 44, 170)
  1315.       petal_color2 = Color.new(105, 62, 170)
  1316.       petal_color3 = Color.new(78, 60, 168)
  1317.     else # Rose
  1318.       petal_color1 = Color.new(255, 0, 0)
  1319.       petal_color2 = Color.new(179, 17, 17)
  1320.       petal_color3 = Color.new(141, 9, 9)
  1321.     end
  1322.    
  1323.     # 1st petal bitmap
  1324.     @petal_bitmaps[0] = Bitmap.new(3, 3)
  1325.     @petal_bitmaps[0].fill_rect(1, 0, 2, 1, petal_color1)
  1326.     @petal_bitmaps[0].fill_rect(0, 1, 1, 2, petal_color1)
  1327.     @petal_bitmaps[0].fill_rect(1, 1, 2, 2, petal_color2)
  1328.     @petal_bitmaps[0].set_pixel(2, 2, petal_color3)
  1329.    
  1330.     # 2nd petal bitmap
  1331.     @petal_bitmaps[1] = Bitmap.new(3, 3)
  1332.     @petal_bitmaps[1].set_pixel(0, 1, petal_color2)
  1333.     @petal_bitmaps[1].set_pixel(1, 1, petal_color1)
  1334.     @petal_bitmaps[1].fill_rect(1, 2, 1, 2, petal_color2)
  1335. #-------------------------------------------------------------------------------
  1336.     #Feathers
  1337.  
  1338.     @feather_bitmaps = []
  1339.     feather_color1 = Color.new(255, 255, 255)
  1340.     feather_color2 = Color.new(214, 217, 217, 150)
  1341.    
  1342.     # 1st feather bitmap
  1343.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1344.     @feather_bitmaps[0].set_pixel(0, 2, feather_color1)
  1345.     @feather_bitmaps[0].set_pixel(1, 2, feather_color2)
  1346.     @feather_bitmaps[0].set_pixel(2, 1, feather_color2)
  1347.    
  1348.     # 2nd feather bitmap
  1349.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1350.     @feather_bitmaps[0].set_pixel(0, 0, feather_color1)
  1351.     @feather_bitmaps[0].set_pixel(0, 1, feather_color2)
  1352.     @feather_bitmaps[0].set_pixel(1, 2, feather_color2)
  1353.    
  1354.     # 3rd feather bitmap
  1355.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1356.     @feather_bitmaps[0].set_pixel(2, 0, feather_color1)
  1357.     @feather_bitmaps[0].set_pixel(1, 0, feather_color2)
  1358.     @feather_bitmaps[0].set_pixel(0, 1, feather_color2)
  1359.    
  1360.     # 4th feather bitmap
  1361.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1362.     @feather_bitmaps[0].set_pixel(2, 2, feather_color1)
  1363.     @feather_bitmaps[0].set_pixel(2, 1, feather_color2)
  1364.     @feather_bitmaps[0].set_pixel(1, 0, feather_color2)
  1365. #-------------------------------------------------------------------------------  
  1366.     # Sparkle bitmaps
  1367.    
  1368.     @sparkle_bitmaps = []
  1369.     case $game_screen.weather_variation
  1370.     when 1 # Lavender
  1371.       sparkle_color1 = Color.new(197, 181, 255)
  1372.       sparkle_color2 = Color.new(171, 126, 234)
  1373.       sparkle_color3 = Color.new(187 , 77, 234)
  1374.       sparkle_color4 = Color.new(255, 255, 255)
  1375.     when 2 # Pink
  1376.       sparkle_color1 = Color.new(255, 181, 234)
  1377.       sparkle_color2 = Color.new(232, 125, 178)
  1378.       sparkle_color3 = Color.new(232, 76, 110)
  1379.       sparkle_color4 = Color.new(255, 255, 255)
  1380.     when 3 # Green
  1381.       sparkle_color1 = Color.new(222, 255, 181)
  1382.       sparkle_color2 = Color.new(157, 226, 122)
  1383.       sparkle_color3 = Color.new(85, 226, 74)
  1384.       sparkle_color4 = Color.new(255, 255, 255)
  1385.     when 4 # White
  1386.       sparkle_color1 = Color.new(236, 236, 236)
  1387.       sparkle_color2 = Color.new(218, 218, 218)
  1388.       sparkle_color3 = Color.new(210, 210, 210)
  1389.       sparkle_color4 = Color.new(255, 255, 255)
  1390.     else # Blue
  1391.       sparkle_color1 = Color.new(181, 244, 255)
  1392.       sparkle_color2 = Color.new(126, 197, 235)
  1393.       sparkle_color3 = Color.new(77, 136, 225)
  1394.       sparkle_color4 = Color.new(255, 255, 255)
  1395.     end
  1396.    
  1397.     # 1st sparkle bitmap
  1398.     @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  1399.     @sparkle_bitmaps[0].set_pixel(3, 3, sparkle_color3)
  1400.    
  1401.     # 2nd sparkle bitmap
  1402.     @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  1403.     @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, sparkle_color3)
  1404.     @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, sparkle_color3)
  1405.     @sparkle_bitmaps[1].set_pixel(3, 3, sparkle_color2)
  1406.    
  1407.     # 3rd sparkle bitmap
  1408.     @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  1409.     @sparkle_bitmaps[2].set_pixel(1, 1, sparkle_color3)
  1410.     @sparkle_bitmaps[2].set_pixel(5, 1, sparkle_color3)
  1411.     @sparkle_bitmaps[2].set_pixel(2, 2, sparkle_color2)
  1412.     @sparkle_bitmaps[2].set_pixel(4, 2, sparkle_color2)
  1413.     @sparkle_bitmaps[2].set_pixel(3, 3, sparkle_color1)
  1414.     @sparkle_bitmaps[2].set_pixel(2, 4, sparkle_color2)
  1415.     @sparkle_bitmaps[2].set_pixel(4, 4, sparkle_color2)
  1416.     @sparkle_bitmaps[2].set_pixel(1, 5, sparkle_color3)
  1417.     @sparkle_bitmaps[2].set_pixel(5, 5, sparkle_color3)
  1418.    
  1419.     # 4th sparkle bitmap
  1420.     @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  1421.     @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, sparkle_color3)
  1422.     @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, sparkle_color3)
  1423.     @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, sparkle_color2)
  1424.     @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, sparkle_color2)
  1425.     @sparkle_bitmaps[3].set_pixel(3, 3, sparkle_color1)
  1426.    
  1427.     # 5th sparkle bitmap
  1428.     @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  1429.     @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, sparkle_color2)
  1430.     @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, sparkle_color3)
  1431.     @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, sparkle_color3)
  1432.     @sparkle_bitmaps[4].set_pixel(3, 3, sparkle_color1)
  1433.     @sparkle_bitmaps[4].set_pixel(1, 1, sparkle_color3)
  1434.     @sparkle_bitmaps[4].set_pixel(5, 1, sparkle_color3)
  1435.     @sparkle_bitmaps[4].set_pixel(1, 5, sparkle_color3)
  1436.     @sparkle_bitmaps[4].set_pixel(5, 1, sparkle_color3)
  1437.    
  1438.     # 6th sparkle bitmap
  1439.     @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  1440.     @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, sparkle_color3)
  1441.     @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, sparkle_color3)
  1442.     @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, sparkle_color2)
  1443.     @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, sparkle_color2)
  1444.     @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, sparkle_color2)
  1445.     @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, sparkle_color1)
  1446.     @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, sparkle_color1)
  1447.     @sparkle_bitmaps[5].set_pixel(3, 3, sparkle_color4)
  1448.    
  1449.     # 7th sparkle bitmap
  1450.     @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  1451.     @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, sparkle_color2)
  1452.     @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, sparkle_color2)
  1453.     @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, sparkle_color3)
  1454.     @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, sparkle_color3)
  1455.     @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, sparkle_color1)
  1456.     @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, sparkle_color2)
  1457.     @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, sparkle_color2)
  1458.     @sparkle_bitmaps[6].set_pixel(3, 3, sparkle_color4)
  1459. #-------------------------------------------------------------------------------    
  1460.     # Meteor bitmap
  1461.    
  1462.     case $game_screen.weather_variation
  1463.     when 1 # Flame Meteor
  1464.       meteor_color1 = Color.new(248, 88, 0)    
  1465.       meteor_color2 = Color.new(205, 194, 23)  
  1466.       meteor_color3 = Color.new(218, 207, 36)  
  1467.     when 2 # Rock Meteor
  1468.       meteor_color1 = Color.new(60, 60, 60)    
  1469.       meteor_color2 = Color.new(248, 88, 0)    
  1470.       meteor_color3 = Color.new(218, 207, 36)  
  1471.     else # Normal Meteor
  1472.       meteor_color1 = Color.new(232, 160, 128)  
  1473.       meteor_color2 = Color.new(248, 88, 0)    
  1474.       meteor_color3 = Color.new(179, 17, 17)  
  1475.     end
  1476.    
  1477.     @meteor_bitmap = Bitmap.new(14, 12)
  1478.     @meteor_bitmap.fill_rect(0, 8, 5, 4, meteor_color1)
  1479.     @meteor_bitmap.fill_rect(1, 7, 6, 4, meteor_color1)
  1480.     @meteor_bitmap.set_pixel(7, 8, meteor_color1)
  1481.     @meteor_bitmap.fill_rect(1, 8, 2, 2, meteor_color2)
  1482.     @meteor_bitmap.set_pixel(2, 7, meteor_color2)
  1483.     @meteor_bitmap.fill_rect(3, 6, 2, 1, meteor_color2)
  1484.     @meteor_bitmap.set_pixel(3, 8, meteor_color2)
  1485.     @meteor_bitmap.set_pixel(3, 10, meteor_color2)
  1486.     @meteor_bitmap.set_pixel(4, 9, meteor_color2)
  1487.     @meteor_bitmap.fill_rect(5, 5, 1, 5, meteor_color2)
  1488.     @meteor_bitmap.fill_rect(6, 4, 1, 5, meteor_color2)
  1489.     @meteor_bitmap.fill_rect(7, 3, 1, 5, meteor_color2)
  1490.     @meteor_bitmap.fill_rect(8, 6, 1, 2, meteor_color2)
  1491.     @meteor_bitmap.set_pixel(9, 5, meteor_color2)
  1492.     @meteor_bitmap.set_pixel(3, 8, meteor_color3)
  1493.     @meteor_bitmap.fill_rect(4, 7, 1, 2, meteor_color3)
  1494.     @meteor_bitmap.set_pixel(4, 5, meteor_color3)
  1495.     @meteor_bitmap.set_pixel(5, 4, meteor_color3)
  1496.     @meteor_bitmap.set_pixel(5, 6, meteor_color3)
  1497.     @meteor_bitmap.set_pixel(6, 5, meteor_color3)
  1498.     @meteor_bitmap.set_pixel(6, 7, meteor_color3)
  1499.     @meteor_bitmap.fill_rect(7, 4, 1, 3, meteor_color3)
  1500.     @meteor_bitmap.fill_rect(8, 3, 1, 3, meteor_color3)
  1501.     @meteor_bitmap.fill_rect(9, 2, 1, 3, meteor_color3)
  1502.     @meteor_bitmap.fill_rect(10, 1, 1, 3, meteor_color3)
  1503.     @meteor_bitmap.fill_rect(11, 0, 1, 3, meteor_color3)
  1504.     @meteor_bitmap.fill_rect(12, 0, 1, 2, meteor_color3)
  1505.     @meteor_bitmap.set_pixel(13, 0, meteor_color3)
  1506.    
  1507.     # Impact bitmap
  1508.     @impact_bitmap = Bitmap.new(22, 11)
  1509.     @impact_bitmap.fill_rect(0, 5, 1, 2, meteor_color2)
  1510.     @impact_bitmap.set_pixel(1, 4, meteor_color2)
  1511.     @impact_bitmap.set_pixel(1, 6, meteor_color2)
  1512.     @impact_bitmap.set_pixel(2, 3, meteor_color2)
  1513.     @impact_bitmap.set_pixel(2, 7, meteor_color2)
  1514.     @impact_bitmap.set_pixel(3, 2, meteor_color3)
  1515.     @impact_bitmap.set_pixel(3, 7, meteor_color3)
  1516.     @impact_bitmap.set_pixel(4, 2, meteor_color2)
  1517.     @impact_bitmap.set_pixel(4, 8, meteor_color2)
  1518.     @impact_bitmap.set_pixel(5, 2, meteor_color3)
  1519.     @impact_bitmap.fill_rect(5, 8, 3, 1, meteor_color2)
  1520.     @impact_bitmap.set_pixel(6, 1, meteor_color3)
  1521.     @impact_bitmap.fill_rect(7, 1, 8, 1, meteor_color2)
  1522.     @impact_bitmap.fill_rect(7, 9, 8, 1, meteor_color3)
  1523. #-------------------------------------------------------------------------------      
  1524.     # Ash bitmaps
  1525.    
  1526.     ash_color1 = Color.new(210, 210, 210, 250)
  1527.     ash_color2 = Color.new(255, 255, 255)
  1528.     ash_color3 = Color.new(214, 217, 217, 150)
  1529.    
  1530.     @ash_bitmaps = []
  1531.     @ash_bitmaps[0] = Bitmap.new(3, 3)
  1532.     @ash_bitmaps[0].fill_rect(0, 1, 1, 3, ash_color1)
  1533.     @ash_bitmaps[0].fill_rect(1, 0, 3, 1, ash_color1)
  1534.     @ash_bitmaps[0].set_pixel(1, 1, ash_color2)
  1535.     @ash_bitmaps[1] = Bitmap.new(3, 3)
  1536.     @ash_bitmaps[1].fill_rect(0, 1, 1, 3, ash_color3)
  1537.     @ash_bitmaps[1].fill_rect(1, 0, 3, 1, ash_color3)
  1538.     @ash_bitmaps[1].set_pixel(1, 1, ash_color1)
  1539. #-------------------------------------------------------------------------------    
  1540.     # Bubble bitmaps
  1541.    
  1542.     @bubble_bitmaps = []
  1543.     bubble_color1 = Color.new(77, 136, 225, 160)
  1544.     bubble_color2 = Color.new(197, 253, 254, 160)
  1545.     bubble_color3 = Color.new(225, 190, 244, 160)
  1546.     bubble_color4 = Color.new(255, 255, 255)
  1547.    
  1548.     # first bubble bitmap
  1549.     @bubble_bitmaps[0] = Bitmap.new(24, 24)
  1550.     @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, bubble_color1)
  1551.     @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, bubble_color1)
  1552.     @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, bubble_color1)
  1553.     @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, bubble_color1)
  1554.     @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, bubble_color1)
  1555.     @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, bubble_color1)
  1556.     @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, bubble_color1)
  1557.     @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, bubble_color1)
  1558.     @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, bubble_color2)
  1559.     @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, bubble_color2)
  1560.     @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, bubble_color2)
  1561.     @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, bubble_color2)
  1562.     @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, bubble_color2)
  1563.     @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, bubble_color2)
  1564.     @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, bubble_color3)
  1565.     @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, bubble_color3)
  1566.     @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, bubble_color3)
  1567.     @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, bubble_color3)
  1568.     @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, bubble_color3)
  1569.     @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, bubble_color3)
  1570.     @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, bubble_color3)
  1571.     @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, bubble_color4)
  1572.     @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, bubble_color4)
  1573.     @bubble_bitmaps[0].set_pixel(17, 6, bubble_color4)
  1574.    
  1575.     # second bubble bitmap
  1576.     @bubble_bitmaps[1] = Bitmap.new(14, 15)
  1577.     @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, bubble_color1)
  1578.     @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, bubble_color1)
  1579.     @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, bubble_color1)
  1580.     @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, bubble_color1)
  1581.     @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, bubble_color1)
  1582.     @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, bubble_color2)
  1583.     @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, bubble_color2)
  1584.     @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, bubble_color2)
  1585.     @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, bubble_color2)
  1586.     @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, bubble_color2)
  1587.     @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, bubble_color3)
  1588.     @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, bubble_color3)
  1589.     @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, bubble_color3)
  1590.     @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, bubble_color4)
  1591.     @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, bubble_color4)
  1592.     @bubble_bitmaps[1].set_pixel(7, 4, bubble_color4)
  1593.     @bubble_bitmaps[1].set_pixel(8, 5, bubble_color4)
  1594.    
  1595.     # Other option for bubbles
  1596.     @bubble2_bitmaps = Array.new
  1597.     bubble2_color1 = Color.new(145, 150, 155, 160)
  1598.     bubble2_color2 = Color.new(180, 180, 185, 160)
  1599.     bubble2_color3 = Color.new(225, 225, 235, 160)
  1600.     bubble2_color4 = Color.new(145, 145, 165, 160)
  1601.     bubble2_color5 = Color.new(165, 170, 180, 160)
  1602.     bubble2_color6 = Color.new(255, 255, 255, 160)
  1603.    
  1604.     # first bubble 2 bitmap
  1605.     @bubble2_bitmaps[0] = Bitmap.new(6, 6)
  1606.     @bubble2_bitmaps[0].fill_rect(0, 0, 6, 6, bubble2_color1)
  1607.     @bubble2_bitmaps[0].fill_rect(0, 2, 6, 2, bubble2_color2)
  1608.     @bubble2_bitmaps[0].fill_rect(2, 0, 2, 6, bubble2_color2)
  1609.     @bubble2_bitmaps[0].fill_rect(2, 2, 2, 2, bubble2_color3)
  1610.    
  1611.     # second bubble 2 bitmap
  1612.     @bubble2_bitmaps[1] = Bitmap.new(8, 8)
  1613.     @bubble2_bitmaps[1].fill_rect(0, 2, 2, 4, bubble2_color4)
  1614.     @bubble2_bitmaps[1].fill_rect(2, 0, 4, 2, bubble2_color1)
  1615.     @bubble2_bitmaps[1].fill_rect(6, 2, 2, 2, bubble2_color1)
  1616.     @bubble2_bitmaps[1].fill_rect(2, 6, 2, 2, bubble2_color1)
  1617.     @bubble2_bitmaps[1].fill_rect(6, 4, 2, 2, bubble2_color2)
  1618.     @bubble2_bitmaps[1].fill_rect(4, 6, 2, 2, bubble2_color2)
  1619.     @bubble2_bitmaps[1].fill_rect(4, 4, 2, 2, bubble2_color5)
  1620.     @bubble2_bitmaps[1].fill_rect(2, 4, 2, 2, bubble2_color3)
  1621.     @bubble2_bitmaps[1].fill_rect(4, 2, 2, 2, bubble2_color3)
  1622.     @bubble2_bitmaps[1].fill_rect(2, 2, 2, 2, bubble2_color6)
  1623.    
  1624.     # third bubble 2 bitmap
  1625.     @bubble2_bitmaps[2] = Bitmap.new(8, 10)
  1626.     @bubble2_bitmaps[2].fill_rect(8, 2, 2, 4, bubble2_color4)
  1627.     @bubble2_bitmaps[2].fill_rect(2, 0, 8, 2, bubble2_color1)
  1628.     @bubble2_bitmaps[2].fill_rect(2, 6, 8, 2, bubble2_color1)
  1629.     @bubble2_bitmaps[2].fill_rect(4, 0, 2, 2, bubble2_color2)
  1630.     @bubble2_bitmaps[2].fill_rect(4, 6, 2, 2, bubble2_color2)
  1631.     @bubble2_bitmaps[2].fill_rect(0, 2, 2, 2, bubble2_color2)
  1632.     @bubble2_bitmaps[2].fill_rect(0, 4, 2, 2, bubble2_color5)
  1633.     @bubble2_bitmaps[2].fill_rect(2, 2, 6, 4, bubble2_color3)
  1634.     @bubble2_bitmaps[2].fill_rect(2, 2, 4, 2, bubble2_color6)
  1635.     @bubble2_bitmaps[2].fill_rect(4, 4, 2, 2, bubble2_color6)
  1636.    
  1637.     # fourth bubble 2 bitmap
  1638.     @bubble2_bitmaps[3] = Bitmap.new(14, 14)
  1639.     @bubble2_bitmaps[3].fill_rect(4, 0, 4, 2, bubble2_color4)
  1640.     @bubble2_bitmaps[3].fill_rect(0, 4, 2, 4, bubble2_color4)
  1641.     @bubble2_bitmaps[3].fill_rect(12, 4, 2, 4, bubble2_color4)
  1642.     @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, bubble2_color1)
  1643.     @bubble2_bitmaps[3].fill_rect(0, 6, 2, 2, bubble2_color1)
  1644.     @bubble2_bitmaps[3].fill_rect(12, 6, 2, 2, bubble2_color1)
  1645.     @bubble2_bitmaps[3].fill_rect(4, 12, 6, 2, bubble2_color1)
  1646.     @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, bubble2_color1)
  1647.     @bubble2_bitmaps[3].fill_rect(2, 2, 10, 10, bubble2_color2)
  1648.     @bubble2_bitmaps[3].fill_rect(6, 12, 2, 2, bubble2_color2)
  1649.     @bubble2_bitmaps[3].fill_rect(2, 4, 10, 6, bubble2_color3)
  1650.     @bubble2_bitmaps[3].fill_rect(4, 2, 2, 2, bubble2_color3)
  1651.     @bubble2_bitmaps[3].fill_rect(6, 10, 4, 2, bubble2_color3)
  1652.     @bubble2_bitmaps[3].fill_rect(6, 4, 2, 2, bubble2_color6)
  1653.     @bubble2_bitmaps[3].fill_rect(4, 6, 2, 2, bubble2_color6)
  1654. #-------------------------------------------------------------------------------
  1655.     # Bomb bitmap
  1656.    
  1657.     case $game_screen.weather_variation
  1658.     when 1 # Flare
  1659.       bomb_color1 = Color.new(205, 194, 23)
  1660.       bomb_color2 = Color.new(248, 88, 0)
  1661.     when 2 # Ice
  1662.       bomb_color1 = Color.new(181, 244, 255)
  1663.       bomb_color2 = Color.new(181, 244, 255)
  1664.     else   # Water
  1665.       bomb_color1 = Color.new(197, 253, 254, 160)
  1666.       bomb_color2 = Color.new(197, 253, 254, 160)
  1667.     end
  1668.  
  1669.     @bomb_bitmap = Bitmap.new(8, 8)
  1670.     @bomb_bitmap.fill_rect(0, 2, 2, 4, bomb_color1)
  1671.     @bomb_bitmap.fill_rect(2, 0, 4, 2, bomb_color1)
  1672.     @bomb_bitmap.fill_rect(6, 2, 2, 2, bomb_color1)
  1673.     @bomb_bitmap.fill_rect(2, 6, 2, 2, bomb_color2)
  1674.     @bomb_bitmap.fill_rect(6, 4, 2, 2, bomb_color2)
  1675.     @bomb_bitmap.fill_rect(4, 6, 2, 2, bomb_color1)
  1676.     @bomb_bitmap.fill_rect(4, 4, 2, 2, bomb_color2)
  1677.     @bomb_bitmap.fill_rect(2, 4, 2, 2, bomb_color1)
  1678.     @bomb_bitmap.fill_rect(4, 2, 2, 2, bomb_color1)
  1679.     @bomb_bitmap.fill_rect(2, 2, 2, 2, bomb_color1)
  1680.  
  1681.     # Bomb impact bitmap
  1682.     @bomb_impact_bitmap = Bitmap.new(8, 5)
  1683.     @bomb_impact_bitmap.fill_rect(1, 0, 6, 1, bomb_color2)
  1684.     @bomb_impact_bitmap.fill_rect(1, 4, 6, 1, bomb_color2)
  1685.     @bomb_impact_bitmap.fill_rect(0, 1, 1, 3, bomb_color1)
  1686.     @bomb_impact_bitmap.fill_rect(7, 1, 1, 3, bomb_color1)
  1687.     @bomb_impact_bitmap.set_pixel(1, 0, bomb_color1)
  1688.     @bomb_impact_bitmap.set_pixel(0, 1, bomb_color1)
  1689. #-------------------------------------------------------------------------------
  1690.     # Starburst bitmaps (prismatic)
  1691.  
  1692.     @starburst_bitmaps = []
  1693.     starburst_color1 = Color.new(233, 210, 142)
  1694.     starburst_color2 = Color.new(219, 191, 95)
  1695.     starburst_color3 = Color.new(242, 229, 190)
  1696.     starburst_color4 = Color.new(241, 185, 187)
  1697.     starburst_color5 = Color.new(196, 55, 84)
  1698.     starburst_color6 = Color.new(178, 15, 56)
  1699.     starburst_color7 = Color.new (189, 225, 242)
  1700.     starburst_color8 = Color.new (102, 181, 221)
  1701.     starburst_color9 = Color.new (5, 88, 168)
  1702.     starburst_color10 = Color.new(205, 246, 205)
  1703.     starburst_color11 = Color.new(88, 221, 89)
  1704.     starburst_color12 = Color.new(44, 166, 0)
  1705.     starburst_color13 = Color.new(216, 197, 255)
  1706.     starburst_color14 = Color.new(155, 107, 255)
  1707.     starburst_color15 = Color.new(71, 0, 222)
  1708.     starburst_color16 = Color.new(255, 220, 177)
  1709.     starburst_color17 = Color.new(255, 180, 85)
  1710.     starburst_color18 = Color.new(222, 124, 0)
  1711.    
  1712.     # 1st starburst bitmap
  1713.     @starburst_bitmaps[0] = Bitmap.new(8, 8)
  1714.     @starburst_bitmaps[0].set_pixel(3, 3, starburst_color3)
  1715.    
  1716.     # 2nd starburst bitmap
  1717.     @starburst_bitmaps[1] = Bitmap.new(8, 8)
  1718.     @starburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_color1)
  1719.     @starburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_color1)
  1720.     @starburst_bitmaps[1].set_pixel(3, 3, starburst_color3)
  1721.    
  1722.     # 3rd starburst bitmap
  1723.     @starburst_bitmaps[2] = Bitmap.new(7, 7)
  1724.     @starburst_bitmaps[2].set_pixel(1, 1, starburst_color1)
  1725.     @starburst_bitmaps[2].set_pixel(5, 1, starburst_color1)
  1726.     @starburst_bitmaps[2].set_pixel(2, 2, starburst_color2)
  1727.     @starburst_bitmaps[2].set_pixel(4, 2, starburst_color1)
  1728.     @starburst_bitmaps[2].set_pixel(3, 3, starburst_color3)
  1729.     @starburst_bitmaps[2].set_pixel(2, 4, starburst_color2)
  1730.     @starburst_bitmaps[2].set_pixel(4, 4, starburst_color2)
  1731.     @starburst_bitmaps[2].set_pixel(1, 5, starburst_color1)
  1732.     @starburst_bitmaps[2].set_pixel(5, 5, starburst_color1)
  1733.    
  1734.     # 4th starburst bitmap
  1735.     @starburst_bitmaps[3] = Bitmap.new(7, 7)
  1736.     @starburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_color1)
  1737.     @starburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_color2)
  1738.     @starburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_color1)
  1739.     @starburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_color2)
  1740.     @starburst_bitmaps[3].set_pixel(3, 3, starburst_color3)
  1741.    
  1742.     # 5th starburst bitmap
  1743.     @starburst_bitmaps[4] = Bitmap.new(7, 7)
  1744.     @starburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_color1)
  1745.     @starburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_color1)
  1746.     @starburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_color2)
  1747.     @starburst_bitmaps[4].set_pixel(3, 3, starburst_color3)
  1748.     @starburst_bitmaps[4].set_pixel(1, 1, starburst_color1)
  1749.     @starburst_bitmaps[4].set_pixel(5, 1, starburst_color1)
  1750.     @starburst_bitmaps[4].set_pixel(1, 5, starburst_color2)
  1751.     @starburst_bitmaps[4].set_pixel(5, 1, starburst_color2)
  1752.    
  1753.     # 6th starburst bitmap
  1754.     @starburst_bitmaps[5] = Bitmap.new(8, 8)
  1755.     @starburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_color1)
  1756.     @starburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_color1)
  1757.     @starburst_bitmaps[5].set_pixel(3, 3, starburst_color3)
  1758.    
  1759.     # 7th starburst bitmap
  1760.     @starburst_bitmaps[6] = Bitmap.new(8, 8)
  1761.     @starburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_color11)
  1762.     @starburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_color11)
  1763.     @starburst_bitmaps[6].set_pixel(3, 3, starburst_color10)
  1764.    
  1765.     # 8th starburst bitmap
  1766.     @starburst_bitmaps[7] = Bitmap.new(7, 7)
  1767.     @starburst_bitmaps[7].set_pixel(1, 1, starburst_color12)
  1768.     @starburst_bitmaps[7].set_pixel(5, 1, starburst_color12)
  1769.     @starburst_bitmaps[7].set_pixel(2, 2, starburst_color12)
  1770.     @starburst_bitmaps[7].set_pixel(4, 2, starburst_color12)
  1771.     @starburst_bitmaps[7].set_pixel(3, 3, starburst_color11)
  1772.     @starburst_bitmaps[7].set_pixel(2, 4, starburst_color11)
  1773.     @starburst_bitmaps[7].set_pixel(4, 4, starburst_color11)
  1774.     @starburst_bitmaps[7].set_pixel(1, 5, starburst_color11)
  1775.     @starburst_bitmaps[7].set_pixel(5, 5, starburst_color10)
  1776.    
  1777.     # 9th starburst bitmap
  1778.     @starburst_bitmaps[8] = Bitmap.new(7, 7)
  1779.     @starburst_bitmaps[8].fill_rect(3, 1, 1, 5, starburst_color12)
  1780.     @starburst_bitmaps[8].fill_rect(1, 3, 5, 1, starburst_color12)
  1781.     @starburst_bitmaps[8].fill_rect(3, 2, 1, 3, starburst_color11)
  1782.     @starburst_bitmaps[8].fill_rect(2, 3, 3, 1, starburst_color11)
  1783.     @starburst_bitmaps[8].set_pixel(3, 3, starburst_color10)
  1784.        
  1785.     # 10th starburst bitmap
  1786.     @starburst_bitmaps[9] = Bitmap.new(7, 7)
  1787.     @starburst_bitmaps[9].fill_rect(2, 1, 3, 5, starburst_color12)
  1788.     @starburst_bitmaps[9].fill_rect(1, 2, 5, 3, starburst_color12)
  1789.     @starburst_bitmaps[9].fill_rect(2, 2, 3, 3, starburst_color11)
  1790.     @starburst_bitmaps[9].fill_rect(3, 1, 1, 5, starburst_color11)
  1791.     @starburst_bitmaps[9].fill_rect(1, 3, 5, 1, starburst_color11)
  1792.     @starburst_bitmaps[9].fill_rect(3, 2, 1, 3, starburst_color10)
  1793.     @starburst_bitmaps[9].fill_rect(2, 3, 3, 1, starburst_color10)
  1794.     @starburst_bitmaps[9].set_pixel(3, 3, starburst_color10)
  1795.    
  1796.     # 11th starburst bitmap
  1797.     @starburst_bitmaps[10] = Bitmap.new(7, 7)
  1798.     @starburst_bitmaps[10].fill_rect(2, 2, 3, 3, starburst_color12)
  1799.     @starburst_bitmaps[10].fill_rect(3, 2, 1, 3, starburst_color12)
  1800.     @starburst_bitmaps[10].fill_rect(2, 3, 3, 1, starburst_color11)
  1801.     @starburst_bitmaps[10].set_pixel(3, 3, starburst_color10)
  1802.     @starburst_bitmaps[10].set_pixel(1, 1, starburst_color11)
  1803.     @starburst_bitmaps[10].set_pixel(5, 1, starburst_color11)
  1804.     @starburst_bitmaps[10].set_pixel(1, 5, starburst_color12)
  1805.     @starburst_bitmaps[10].set_pixel(5, 1, starburst_color12)
  1806.        
  1807.     # 12th starburst bitmap
  1808.     @starburst_bitmaps[11] = Bitmap.new(8, 8)
  1809.     @starburst_bitmaps[11].fill_rect(3, 2, 1, 3, starburst_color11)
  1810.     @starburst_bitmaps[11].fill_rect(2, 3, 3, 1, starburst_color11)
  1811.     @starburst_bitmaps[11].set_pixel(3, 3, starburst_color10)
  1812.    
  1813.     # 13th starburst bitmap
  1814.     @starburst_bitmaps[12] = Bitmap.new(8, 8)
  1815.     @starburst_bitmaps[12].fill_rect(3, 2, 1, 3, starburst_color8)
  1816.     @starburst_bitmaps[12].fill_rect(2, 3, 3, 1, starburst_color8)
  1817.     @starburst_bitmaps[12].set_pixel(3, 3, starburst_color7)
  1818.    
  1819.     # 14th starburst bitmap
  1820.     @starburst_bitmaps[13] = Bitmap.new(7, 7)
  1821.     @starburst_bitmaps[13].set_pixel(1, 1, starburst_color9)
  1822.     @starburst_bitmaps[13].set_pixel(5, 1, starburst_color9)
  1823.     @starburst_bitmaps[13].set_pixel(2, 2, starburst_color9)
  1824.     @starburst_bitmaps[13].set_pixel(4, 2, starburst_color9)
  1825.     @starburst_bitmaps[13].set_pixel(3, 3, starburst_color8)
  1826.     @starburst_bitmaps[13].set_pixel(2, 4, starburst_color8)
  1827.     @starburst_bitmaps[13].set_pixel(4, 4, starburst_color8)
  1828.     @starburst_bitmaps[13].set_pixel(1, 5, starburst_color8)
  1829.     @starburst_bitmaps[13].set_pixel(5, 5, starburst_color7)
  1830.    
  1831.     # 15th starburst bitmap
  1832.     @starburst_bitmaps[14] = Bitmap.new(7, 7)
  1833.     @starburst_bitmaps[14].fill_rect(3, 1, 1, 5, starburst_color9)
  1834.     @starburst_bitmaps[14].fill_rect(1, 3, 5, 1, starburst_color9)
  1835.     @starburst_bitmaps[14].fill_rect(3, 2, 1, 3, starburst_color8)
  1836.     @starburst_bitmaps[14].fill_rect(2, 3, 3, 1, starburst_color8)
  1837.     @starburst_bitmaps[14].set_pixel(3, 3, starburst_color7)
  1838.        
  1839.     # 16th starburst bitmap
  1840.     @starburst_bitmaps[15] = Bitmap.new(7, 7)
  1841.     @starburst_bitmaps[15].fill_rect(2, 1, 3, 5, starburst_color9)
  1842.     @starburst_bitmaps[15].fill_rect(1, 2, 5, 3, starburst_color9)
  1843.     @starburst_bitmaps[15].fill_rect(2, 2, 3, 3, starburst_color8)
  1844.     @starburst_bitmaps[15].fill_rect(3, 1, 1, 5, starburst_color8)
  1845.     @starburst_bitmaps[15].fill_rect(1, 3, 5, 1, starburst_color8)
  1846.     @starburst_bitmaps[15].fill_rect(3, 2, 1, 3, starburst_color7)
  1847.     @starburst_bitmaps[15].fill_rect(2, 3, 3, 1, starburst_color7)
  1848.     @starburst_bitmaps[15].set_pixel(3, 3, starburst_color7)
  1849.    
  1850.     # 17th starburst bitmap
  1851.     @starburst_bitmaps[16] = Bitmap.new(8, 8)
  1852.     @starburst_bitmaps[16].fill_rect(3, 2, 1, 3, starburst_color8)
  1853.     @starburst_bitmaps[16].fill_rect(2, 3, 3, 1, starburst_color8)
  1854.     @starburst_bitmaps[16].set_pixel(3, 3, starburst_color7)
  1855.    
  1856.     # 18th starburst bitmap
  1857.     @starburst_bitmaps[17] = Bitmap.new(8, 8)
  1858.     @starburst_bitmaps[17].fill_rect(3, 2, 1, 3, starburst_color14)
  1859.     @starburst_bitmaps[17].fill_rect(2, 3, 3, 1, starburst_color14)
  1860.     @starburst_bitmaps[17].set_pixel(3, 3, starburst_color13)
  1861.    
  1862.     # 19th starburst bitmap
  1863.     @starburst_bitmaps[18] = Bitmap.new(7, 7)
  1864.     @starburst_bitmaps[18].set_pixel(1, 1, starburst_color15)
  1865.     @starburst_bitmaps[18].set_pixel(5, 1, starburst_color15)
  1866.     @starburst_bitmaps[18].set_pixel(2, 2, starburst_color15)
  1867.     @starburst_bitmaps[18].set_pixel(4, 2, starburst_color15)
  1868.     @starburst_bitmaps[18].set_pixel(3, 3, starburst_color14)
  1869.     @starburst_bitmaps[18].set_pixel(2, 4, starburst_color14)
  1870.     @starburst_bitmaps[18].set_pixel(4, 4, starburst_color14)
  1871.     @starburst_bitmaps[18].set_pixel(1, 5, starburst_color14)
  1872.     @starburst_bitmaps[18].set_pixel(5, 5, starburst_color13)
  1873.    
  1874.     # 20th starburst bitmap
  1875.     @starburst_bitmaps[19] = Bitmap.new(7, 7)
  1876.     @starburst_bitmaps[19].fill_rect(3, 1, 1, 5, starburst_color15)
  1877.     @starburst_bitmaps[19].fill_rect(1, 3, 5, 1, starburst_color15)
  1878.     @starburst_bitmaps[19].fill_rect(3, 2, 1, 3, starburst_color14)
  1879.     @starburst_bitmaps[19].fill_rect(2, 3, 3, 1, starburst_color14)
  1880.     @starburst_bitmaps[19].set_pixel(3, 3, starburst_color14)
  1881.        
  1882.     # 21st starburst bitmap
  1883.     @starburst_bitmaps[20] = Bitmap.new(7, 7)
  1884.     @starburst_bitmaps[20].fill_rect(2, 1, 3, 5, starburst_color15)
  1885.     @starburst_bitmaps[20].fill_rect(1, 2, 5, 3, starburst_color15)
  1886.     @starburst_bitmaps[20].fill_rect(2, 2, 3, 3, starburst_color14)
  1887.     @starburst_bitmaps[20].fill_rect(3, 1, 1, 5, starburst_color14)
  1888.     @starburst_bitmaps[20].fill_rect(1, 3, 5, 1, starburst_color14)
  1889.     @starburst_bitmaps[20].fill_rect(3, 2, 1, 3, starburst_color13)
  1890.     @starburst_bitmaps[20].fill_rect(2, 3, 3, 1, starburst_color13)
  1891.     @starburst_bitmaps[20].set_pixel(3, 3, starburst_color13)
  1892.    
  1893.     # 22nd starburst bitmap
  1894.     @starburst_bitmaps[21] = Bitmap.new(7, 7)
  1895.     @starburst_bitmaps[21].fill_rect(2, 1, 3, 5, starburst_color14)
  1896.     @starburst_bitmaps[21].fill_rect(1, 2, 5, 3, starburst_color14)
  1897.     @starburst_bitmaps[21].fill_rect(3, 0, 1, 7, starburst_color15)
  1898.     @starburst_bitmaps[21].fill_rect(0, 3, 7, 1, starburst_color15)
  1899.     @starburst_bitmaps[21].fill_rect(2, 2, 3, 3, starburst_color13)
  1900.     @starburst_bitmaps[21].fill_rect(3, 2, 1, 3, starburst_color14)
  1901.     @starburst_bitmaps[21].fill_rect(2, 3, 3, 1, starburst_color14)
  1902.     @starburst_bitmaps[21].set_pixel(3, 3, starburst_color13)
  1903.    
  1904.     # 23rd starburst bitmap
  1905.     @starburst_bitmaps[22] = Bitmap.new(8, 8)
  1906.     @starburst_bitmaps[22].fill_rect(3, 2, 1, 3, starburst_color14)
  1907.     @starburst_bitmaps[22].fill_rect(2, 3, 3, 1, starburst_color14)
  1908.     @starburst_bitmaps[22].set_pixel(3, 3, starburst_color13)
  1909.    
  1910.     # 24th starburst bitmap
  1911.     @starburst_bitmaps[23] = Bitmap.new(8, 8)
  1912.     @starburst_bitmaps[23].fill_rect(3, 2, 1, 3, starburst_color5)
  1913.     @starburst_bitmaps[23].fill_rect(2, 3, 3, 1, starburst_color5)
  1914.     @starburst_bitmaps[23].set_pixel(3, 3, starburst_color4)
  1915.    
  1916.     # 25th starburst bitmap
  1917.     @starburst_bitmaps[24] = Bitmap.new(7, 7)
  1918.     @starburst_bitmaps[24].set_pixel(1, 1, starburst_color6)
  1919.     @starburst_bitmaps[24].set_pixel(5, 1, starburst_color6)
  1920.     @starburst_bitmaps[24].set_pixel(2, 2, starburst_color6)
  1921.     @starburst_bitmaps[24].set_pixel(4, 2, starburst_color6)
  1922.     @starburst_bitmaps[24].set_pixel(3, 3, starburst_color5)
  1923.     @starburst_bitmaps[24].set_pixel(2, 4, starburst_color5)
  1924.     @starburst_bitmaps[24].set_pixel(4, 4, starburst_color5)
  1925.     @starburst_bitmaps[24].set_pixel(1, 5, starburst_color5)
  1926.     @starburst_bitmaps[24].set_pixel(5, 5, starburst_color4)
  1927.    
  1928.     # 26th starburst bitmap
  1929.     @starburst_bitmaps[25] = Bitmap.new(7, 7)
  1930.     @starburst_bitmaps[25].fill_rect(3, 1, 1, 5, starburst_color6)
  1931.     @starburst_bitmaps[25].fill_rect(1, 3, 5, 1, starburst_color6)
  1932.     @starburst_bitmaps[25].fill_rect(3, 2, 1, 3, starburst_color5)
  1933.     @starburst_bitmaps[25].fill_rect(2, 3, 3, 1, starburst_color5)
  1934.     @starburst_bitmaps[25].set_pixel(3, 3, starburst_color4)
  1935.        
  1936.     # 27th starburst bitmap
  1937.     @starburst_bitmaps[26] = Bitmap.new(7, 7)
  1938.     @starburst_bitmaps[26].fill_rect(2, 1, 3, 5, starburst_color6)
  1939.     @starburst_bitmaps[26].fill_rect(1, 2, 5, 3, starburst_color6)
  1940.     @starburst_bitmaps[26].fill_rect(2, 2, 3, 3, starburst_color5)
  1941.     @starburst_bitmaps[26].fill_rect(3, 1, 1, 5, starburst_color5)
  1942.     @starburst_bitmaps[26].fill_rect(1, 3, 5, 1, starburst_color5)
  1943.     @starburst_bitmaps[26].fill_rect(3, 2, 1, 3, starburst_color4)
  1944.     @starburst_bitmaps[26].fill_rect(2, 3, 3, 1, starburst_color4)
  1945.     @starburst_bitmaps[26].set_pixel(3, 3, starburst_color4)
  1946.    
  1947.     # 28th starburst bitmap
  1948.     @starburst_bitmaps[27] = Bitmap.new(7, 7)
  1949.     @starburst_bitmaps[27].fill_rect(2, 1, 3, 5, starburst_color5)
  1950.     @starburst_bitmaps[27].fill_rect(1, 2, 5, 3, starburst_color5)
  1951.     @starburst_bitmaps[27].fill_rect(3, 0, 1, 7, starburst_color6)
  1952.     @starburst_bitmaps[27].fill_rect(0, 3, 7, 1, starburst_color6)
  1953.     @starburst_bitmaps[27].fill_rect(2, 2, 3, 3, starburst_color4)
  1954.     @starburst_bitmaps[27].fill_rect(3, 2, 1, 3, starburst_color5)
  1955.     @starburst_bitmaps[27].fill_rect(2, 3, 3, 1, starburst_color5)
  1956.     @starburst_bitmaps[27].set_pixel(3, 3, starburst_color4)
  1957.    
  1958.     # 29th starburst bitmap
  1959.     @starburst_bitmaps[28] = Bitmap.new(8, 8)
  1960.     @starburst_bitmaps[28].fill_rect(3, 2, 1, 3, starburst_color5)
  1961.     @starburst_bitmaps[28].fill_rect(2, 3, 3, 1, starburst_color5)
  1962.     @starburst_bitmaps[28].set_pixel(3, 3, starburst_color4)
  1963.    
  1964.     # 30th starburst bitmap
  1965.     @starburst_bitmaps[29] = Bitmap.new(8, 8)
  1966.     @starburst_bitmaps[29].fill_rect(3, 2, 1, 3, starburst_color17)
  1967.     @starburst_bitmaps[29].fill_rect(2, 3, 3, 1, starburst_color17)
  1968.     @starburst_bitmaps[29].set_pixel(3, 3, starburst_color16)
  1969.    
  1970.     # 31st starburst bitmap
  1971.     @starburst_bitmaps[30] = Bitmap.new(7, 7)
  1972.     @starburst_bitmaps[30].set_pixel(1, 1, starburst_color18)
  1973.     @starburst_bitmaps[30].set_pixel(5, 1, starburst_color18)
  1974.     @starburst_bitmaps[30].set_pixel(2, 2, starburst_color18)
  1975.     @starburst_bitmaps[30].set_pixel(4, 2, starburst_color18)
  1976.     @starburst_bitmaps[30].set_pixel(3, 3, starburst_color17)
  1977.     @starburst_bitmaps[30].set_pixel(2, 4, starburst_color17)
  1978.     @starburst_bitmaps[30].set_pixel(4, 4, starburst_color17)
  1979.     @starburst_bitmaps[30].set_pixel(1, 5, starburst_color17)
  1980.     @starburst_bitmaps[30].set_pixel(5, 5, starburst_color16)
  1981.    
  1982.     # 32nd starburst bitmap
  1983.     @starburst_bitmaps[31] = Bitmap.new(7, 7)
  1984.     @starburst_bitmaps[31].fill_rect(3, 1, 1, 5, starburst_color18)
  1985.     @starburst_bitmaps[31].fill_rect(1, 3, 5, 1, starburst_color18)
  1986.     @starburst_bitmaps[31].fill_rect(3, 2, 1, 3, starburst_color17)
  1987.     @starburst_bitmaps[31].fill_rect(2, 3, 3, 1, starburst_color17)
  1988.     @starburst_bitmaps[31].set_pixel(3, 3, starburst_color16)
  1989.        
  1990.     # 33rd starburst bitmap
  1991.     @starburst_bitmaps[32] = Bitmap.new(7, 7)
  1992.     @starburst_bitmaps[32].fill_rect(2, 1, 3, 5, starburst_color18)
  1993.     @starburst_bitmaps[32].fill_rect(1, 2, 5, 3, starburst_color18)
  1994.     @starburst_bitmaps[32].fill_rect(2, 2, 3, 3, starburst_color17)
  1995.     @starburst_bitmaps[32].fill_rect(3, 1, 1, 5, starburst_color17)
  1996.     @starburst_bitmaps[32].fill_rect(1, 3, 5, 1, starburst_color17)
  1997.     @starburst_bitmaps[32].fill_rect(3, 2, 1, 3, starburst_color16)
  1998.     @starburst_bitmaps[32].fill_rect(2, 3, 3, 1, starburst_color16)
  1999.     @starburst_bitmaps[32].set_pixel(3, 3, starburst_color16)
  2000.    
  2001.     # 34th starburst bitmap
  2002.     @starburst_bitmaps[33] = Bitmap.new(7, 7)
  2003.     @starburst_bitmaps[33].fill_rect(2, 1, 3, 5, starburst_color17)
  2004.     @starburst_bitmaps[33].fill_rect(1, 2, 5, 3, starburst_color17)
  2005.     @starburst_bitmaps[33].fill_rect(3, 0, 1, 7, starburst_color18)
  2006.     @starburst_bitmaps[33].fill_rect(0, 3, 7, 1, starburst_color18)
  2007.     @starburst_bitmaps[33].fill_rect(2, 2, 3, 3, starburst_color16)
  2008.     @starburst_bitmaps[33].fill_rect(3, 2, 1, 3, starburst_color17)
  2009.     @starburst_bitmaps[33].fill_rect(2, 3, 3, 1, starburst_color17)
  2010.     @starburst_bitmaps[33].set_pixel(3, 3, starburst_color16)
  2011.    
  2012.     # 35th starburst bitmap
  2013.     @starburst_bitmaps[34] = Bitmap.new(8, 8)
  2014.     @starburst_bitmaps[34].fill_rect(3, 2, 1, 3, starburst_color17)
  2015.     @starburst_bitmaps[34].fill_rect(2, 3, 3, 1, starburst_color17)
  2016.     @starburst_bitmaps[34].set_pixel(3, 3, starburst_color16)
  2017.    
  2018.     # 36th starburst bitmap
  2019.     @starburst_bitmaps[35] = Bitmap.new(8, 8)
  2020.     @starburst_bitmaps[35].set_pixel(3, 3, starburst_color16)    
  2021. #-------------------------------------------------------------------------------      
  2022.     # Monochrome starburst bitmaps
  2023.    
  2024.     @monostarburst_bitmaps = []
  2025.     case $game_screen.weather_variation
  2026.     when 1 # Green
  2027.       monostarburst_color1 = Color.new(159, 232, 141)
  2028.       monostarburst_color2 = Color.new(198, 239, 189)
  2029.       monostarburst_color3 = Color.new(115, 216, 95)
  2030.     when 2 # Aqua-blue
  2031.       monostarburst_color1 = Color.new(139, 229, 217)
  2032.       monostarburst_color2 = Color.new(189, 237, 231)
  2033.       monostarburst_color3 = Color.new(94, 214, 202)
  2034.     when 3 # Blue
  2035.       monostarburst_color1 = Color.new(138, 153, 226)
  2036.       monostarburst_color2 = Color.new(187, 195, 234)
  2037.       monostarburst_color3 = Color.new(93, 108, 211)
  2038.     when 4 # Violet
  2039.       monostarburst_color1 = Color.new(205, 139, 224)
  2040.       monostarburst_color2 = Color.new(221, 185, 232)
  2041.       monostarburst_color3 = Color.new(189, 94, 209)
  2042.     when 5 # Red
  2043.       monostarburst_color1 = Color.new(221, 139, 161)
  2044.       monostarburst_color2 = Color.new(229, 183, 196)
  2045.       monostarburst_color3 = Color.new(206, 92, 117)
  2046.     else # Yellow (Default)
  2047.       monostarburst_color1 = Color.new(233, 210, 142)
  2048.       monostarburst_color2 = Color.new(242, 229, 190)
  2049.       monostarburst_color3 = Color.new(219, 191, 95)
  2050.      end
  2051.    
  2052.     # 1st starburst bitmap
  2053.     @monostarburst_bitmaps[0] = Bitmap.new(8, 8)
  2054.     @monostarburst_bitmaps[0].set_pixel(3, 3, monostarburst_color2)
  2055.    
  2056.     # 2nd starburst bitmap
  2057.     @monostarburst_bitmaps[1] = Bitmap.new(8, 8)
  2058.     @monostarburst_bitmaps[1].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2059.     @monostarburst_bitmaps[1].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2060.     @monostarburst_bitmaps[1].set_pixel(3, 3, monostarburst_color2)
  2061.    
  2062.     # 3d starburst bitmap
  2063.     @monostarburst_bitmaps[2] = Bitmap.new(7, 7)
  2064.     @monostarburst_bitmaps[2].set_pixel(1, 1, monostarburst_color3)
  2065.     @monostarburst_bitmaps[2].set_pixel(5, 1, monostarburst_color3)
  2066.     @monostarburst_bitmaps[2].set_pixel(2, 2, monostarburst_color3)
  2067.     @monostarburst_bitmaps[2].set_pixel(4, 2, monostarburst_color3)
  2068.     @monostarburst_bitmaps[2].set_pixel(3, 3, monostarburst_color1)
  2069.     @monostarburst_bitmaps[2].set_pixel(2, 4, monostarburst_color1)
  2070.     @monostarburst_bitmaps[2].set_pixel(4, 4, monostarburst_color1)
  2071.     @monostarburst_bitmaps[2].set_pixel(1, 5, monostarburst_color1)
  2072.     @monostarburst_bitmaps[2].set_pixel(5, 5, monostarburst_color2)
  2073.    
  2074.     # 4th starburst bitmap
  2075.     @monostarburst_bitmaps[3] = Bitmap.new(7, 7)
  2076.     @monostarburst_bitmaps[3].fill_rect(3, 1, 1, 5, monostarburst_color3)
  2077.     @monostarburst_bitmaps[3].fill_rect(1, 3, 5, 1, monostarburst_color3)
  2078.     @monostarburst_bitmaps[3].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2079.     @monostarburst_bitmaps[3].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2080.     @monostarburst_bitmaps[3].set_pixel(3, 3, monostarburst_color2)
  2081.        
  2082.     # 5th starburst bitmap
  2083.     @monostarburst_bitmaps[4] = Bitmap.new(7, 7)
  2084.     @monostarburst_bitmaps[4].fill_rect(2, 1, 3, 5, monostarburst_color3)
  2085.     @monostarburst_bitmaps[4].fill_rect(1, 2, 5, 3, monostarburst_color3)
  2086.     @monostarburst_bitmaps[4].fill_rect(2, 2, 3, 3, monostarburst_color1)
  2087.     @monostarburst_bitmaps[4].fill_rect(3, 1, 1, 5, monostarburst_color1)
  2088.     @monostarburst_bitmaps[4].fill_rect(1, 3, 5, 1, monostarburst_color1)
  2089.     @monostarburst_bitmaps[4].fill_rect(3, 2, 1, 3, monostarburst_color2)
  2090.     @monostarburst_bitmaps[4].fill_rect(2, 3, 3, 1, monostarburst_color2)
  2091.     @monostarburst_bitmaps[4].set_pixel(3, 3, monostarburst_color2)
  2092.    
  2093.     # 6th starburst bitmap
  2094.     @monostarburst_bitmaps[5] = Bitmap.new(7, 7)
  2095.     @monostarburst_bitmaps[5].fill_rect(2, 1, 3, 5, monostarburst_color1)
  2096.     @monostarburst_bitmaps[5].fill_rect(1, 2, 5, 3, monostarburst_color1)
  2097.     @monostarburst_bitmaps[5].fill_rect(3, 0, 1, 7, monostarburst_color3)
  2098.     @monostarburst_bitmaps[5].fill_rect(0, 3, 7, 1, monostarburst_color3)
  2099.     @monostarburst_bitmaps[5].fill_rect(2, 2, 3, 3, monostarburst_color2)
  2100.     @monostarburst_bitmaps[5].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2101.     @monostarburst_bitmaps[5].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2102.     @monostarburst_bitmaps[5].set_pixel(3, 3, monostarburst_color2)
  2103.    
  2104.     # 7th starburst bitmap
  2105.     @monostarburst_bitmaps[6] = Bitmap.new(8, 8)
  2106.     @monostarburst_bitmaps[6].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2107.     @monostarburst_bitmaps[6].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2108.     @monostarburst_bitmaps[6].set_pixel(3, 3, monostarburst_color2)
  2109.    
  2110.     # 8th starburst bitmap
  2111.     @monostarburst_bitmaps[7] = Bitmap.new(8, 8)
  2112.     @monostarburst_bitmaps[7].set_pixel(3, 3, monostarburst_color2)
  2113. #-------------------------------------------------------------------------------
  2114.     # Falling rock bitmaps
  2115.  
  2116.     @fallingrocks_bitmaps = []
  2117.     rock_color1 = Color.new(173, 145, 127)
  2118.     rock_color2 = Color.new(195, 159, 153)
  2119.     rock_color3 = Color.new(128, 120, 112)
  2120.     rock_color4 = Color.new(99, 92, 116)
  2121.     rock_color5 = Color.new(107, 89, 79)
  2122.     rock_color6 = Color.new(130, 110, 97)
  2123.     rock_color7 = Color.new(214, 181, 150)
  2124.     rock_color8 = Color.new(155, 129, 112)
  2125.     rock_color9 = Color.new(193, 177, 180)
  2126.     rock_color10 = Color.new(180, 180, 180)
  2127.    
  2128.     # 1st falling rock bitmap
  2129.     @fallingrocks_bitmaps[0] = Bitmap.new(10, 7)
  2130.     @fallingrocks_bitmaps[0].fill_rect(3, 0, 3, 1, rock_color1)
  2131.     @fallingrocks_bitmaps[0].fill_rect(1, 1, 2, 1, rock_color1)
  2132.     @fallingrocks_bitmaps[0].set_pixel(3, 1, rock_color10)
  2133.     @fallingrocks_bitmaps[0].fill_rect(4, 1, 1, 3, rock_color9)
  2134.     @fallingrocks_bitmaps[0].set_pixel(5, 1, rock_color2)
  2135.     @fallingrocks_bitmaps[0].set_pixel(6, 1, rock_color1)
  2136.     @fallingrocks_bitmaps[0].set_pixel(0, 2, rock_color1)
  2137.     @fallingrocks_bitmaps[0].fill_rect(1, 2, 3, 1, rock_color7)
  2138.     @fallingrocks_bitmaps[0].set_pixel(5, 2, rock_color9)
  2139.     @fallingrocks_bitmaps[0].set_pixel(6, 2, rock_color2)
  2140.     @fallingrocks_bitmaps[0].set_pixel(7, 2, rock_color3)
  2141.     @fallingrocks_bitmaps[0].fill_rect(8, 2, 2, 3, rock_color4)
  2142.     @fallingrocks_bitmaps[0].set_pixel(0, 3, rock_color3)
  2143.     @fallingrocks_bitmaps[0].set_pixel(1, 3, rock_color10)
  2144.     @fallingrocks_bitmaps[0].set_pixel(2, 3, rock_color7)
  2145.     @fallingrocks_bitmaps[0].set_pixel(3, 3, rock_color10)
  2146.     @fallingrocks_bitmaps[0].set_pixel(5, 3, rock_color2)
  2147.     @fallingrocks_bitmaps[0].set_pixel(6, 3, rock_color1)
  2148.     @fallingrocks_bitmaps[0].set_pixel(7, 3, rock_color5)
  2149.     @fallingrocks_bitmaps[0].fill_rect(0, 4, 2, 1, rock_color5)
  2150.     @fallingrocks_bitmaps[0].set_pixel(2, 4, rock_color3)
  2151.     @fallingrocks_bitmaps[0].set_pixel(3, 4, rock_color9)
  2152.     @fallingrocks_bitmaps[0].set_pixel(4, 4, rock_color2)
  2153.     @fallingrocks_bitmaps[0].set_pixel(5, 4, rock_color1)
  2154.     @fallingrocks_bitmaps[0].set_pixel(6, 4, rock_color8)
  2155.     @fallingrocks_bitmaps[0].set_pixel(7, 4, rock_color3)
  2156.     @fallingrocks_bitmaps[0].set_pixel(1, 5, rock_color4)
  2157.     @fallingrocks_bitmaps[0].fill_rect(2, 5, 2, 1, rock_color5)
  2158.     @fallingrocks_bitmaps[0].fill_rect(4, 5, 2, 1, rock_color3)
  2159.     @fallingrocks_bitmaps[0].fill_rect(6, 5, 2, 1, rock_color5)
  2160.     @fallingrocks_bitmaps[0].set_pixel(8, 5, rock_color4)
  2161.     @fallingrocks_bitmaps[0].fill_rect(3, 6, 5, 1, rock_color4)
  2162.    
  2163.     # 2nd falling rock bitmap
  2164.     @fallingrocks_bitmaps[1] = Bitmap.new(5, 4)
  2165.     @fallingrocks_bitmaps[1].set_pixel(1, 0, rock_color8)
  2166.     @fallingrocks_bitmaps[1].set_pixel(2, 0, rock_color1)
  2167.     @fallingrocks_bitmaps[1].set_pixel(3, 0, rock_color6)
  2168.     @fallingrocks_bitmaps[1].set_pixel(0, 1, rock_color6)
  2169.     @fallingrocks_bitmaps[1].set_pixel(1, 1, rock_color1)
  2170.     @fallingrocks_bitmaps[1].set_pixel(2, 1, rock_color2)
  2171.     @fallingrocks_bitmaps[1].set_pixel(3, 1, rock_color1)
  2172.     @fallingrocks_bitmaps[1].set_pixel(4, 1, rock_color5)
  2173.     @fallingrocks_bitmaps[1].fill_rect(0, 2, 1, 2, rock_color4)
  2174.     @fallingrocks_bitmaps[1].fill_rect(1, 2, 2, 1, rock_color6)
  2175.     @fallingrocks_bitmaps[1].set_pixel(3, 2, rock_color5)
  2176.     @fallingrocks_bitmaps[1].fill_rect(1, 3, 3, 1, rock_color4)
  2177.    
  2178.     # 3rd falling rock bitmap
  2179.     @fallingrocks_bitmaps[2] = Bitmap.new(7, 6)
  2180.     @fallingrocks_bitmaps[2].set_pixel(2, 0, rock_color4)
  2181.     @fallingrocks_bitmaps[2].set_pixel(3, 0, rock_color3)
  2182.     @fallingrocks_bitmaps[2].set_pixel(4, 0, rock_color8)
  2183.     @fallingrocks_bitmaps[2].set_pixel(5, 0, rock_color6)
  2184.     @fallingrocks_bitmaps[2].set_pixel(1, 1, rock_color3)
  2185.     @fallingrocks_bitmaps[2].set_pixel(2, 1, rock_color8)
  2186.     @fallingrocks_bitmaps[2].set_pixel(3, 1, rock_color2)
  2187.     @fallingrocks_bitmaps[2].fill_rect(4, 1, 1, 2, rock_color9)
  2188.     @fallingrocks_bitmaps[2].set_pixel(5, 1, rock_color8)
  2189.     @fallingrocks_bitmaps[2].fill_rect(6, 1, 1, 3, rock_color4)
  2190.     @fallingrocks_bitmaps[2].set_pixel(0, 2, rock_color3)
  2191.     @fallingrocks_bitmaps[2].set_pixel(1, 2, rock_color8)
  2192.     @fallingrocks_bitmaps[2].set_pixel(2, 2, rock_color2)
  2193.     @fallingrocks_bitmaps[2].fill_rect(3, 2, 1, 2, rock_color9)
  2194.     @fallingrocks_bitmaps[2].set_pixel(5, 2, rock_color6)
  2195.     @fallingrocks_bitmaps[2].set_pixel(0, 3, rock_color6)
  2196.     @fallingrocks_bitmaps[2].set_pixel(1, 3, rock_color2)
  2197.     @fallingrocks_bitmaps[2].set_pixel(2, 3, rock_color7)
  2198.     @fallingrocks_bitmaps[2].set_pixel(4, 3, rock_color6)
  2199.     @fallingrocks_bitmaps[2].fill_rect(5, 3, 1, 2, rock_color4)
  2200.     @fallingrocks_bitmaps[2].set_pixel(0, 4, rock_color5)
  2201.     @fallingrocks_bitmaps[2].set_pixel(1, 4, rock_color6)
  2202.     @fallingrocks_bitmaps[2].set_pixel(2, 4, rock_color9)
  2203.     @fallingrocks_bitmaps[2].set_pixel(3, 4, rock_color6)
  2204.     @fallingrocks_bitmaps[2].fill_rect(4, 4, 1, 2, rock_color4)
  2205.     @fallingrocks_bitmaps[2].set_pixel(0, 5, rock_color6)
  2206.     @fallingrocks_bitmaps[2].fill_rect(1, 5, 2, 1, rock_color5)
  2207.     @fallingrocks_bitmaps[2].set_pixel(3, 5, rock_color4)
  2208. #-------------------------------------------------------------------------------
  2209.     # Arrows
  2210.  
  2211.     arrow_color1 = Color.new(38, 0, 0)
  2212.     arrow_color2 = Color.new(73, 10, 42)
  2213.     arrow_color3 = Color.new(80, 50, 20)
  2214.     arrow_color4 = Color.new(255, 255, 255)
  2215.     arrow_color5 = Color.new(180, 180, 180)
  2216.  
  2217.     @arrow_bitmap = Bitmap.new(23, 23)
  2218.     @arrow_bitmap.fill_rect(19, 0, 1, 3, arrow_color4)
  2219.     @arrow_bitmap.fill_rect(20, 0, 1, 2, arrow_color5)
  2220.     @arrow_bitmap.set_pixel(22, 0, arrow_color3)
  2221.     @arrow_bitmap.fill_rect(18, 1, 1, 3, arrow_color5)
  2222.     @arrow_bitmap.set_pixel(21, 1, arrow_color3)
  2223.     @arrow_bitmap.fill_rect(17, 2, 1, 3, arrow_color4)
  2224.     @arrow_bitmap.set_pixel(20, 2, arrow_color3)
  2225.     @arrow_bitmap.fill_rect(21, 2, 2, 1, arrow_color5)
  2226.     @arrow_bitmap.set_pixel(19, 3, arrow_color3)
  2227.     @arrow_bitmap.fill_rect(20, 3, 3, 1, arrow_color4)
  2228.     @arrow_bitmap.set_pixel(18, 4, arrow_color3)
  2229.     @arrow_bitmap.fill_rect(19, 4, 3, 1, arrow_color5)
  2230.     @arrow_bitmap.set_pixel(17, 5, arrow_color3)
  2231.     @arrow_bitmap.fill_rect(18, 5, 3, 1, arrow_color4)
  2232.     @arrow_bitmap.set_pixel(16, 6, arrow_color3)
  2233.     @arrow_bitmap.set_pixel(15, 7, arrow_color3)
  2234.     @arrow_bitmap.set_pixel(14, 8, arrow_color3)
  2235.     @arrow_bitmap.set_pixel(13, 9, arrow_color3)
  2236.     @arrow_bitmap.set_pixel(12, 10, arrow_color3)
  2237.     @arrow_bitmap.set_pixel(11, 11, arrow_color3)
  2238.     @arrow_bitmap.set_pixel(10, 12, arrow_color3)
  2239.     @arrow_bitmap.set_pixel(9, 13, arrow_color3)
  2240.     @arrow_bitmap.set_pixel(8, 14, arrow_color3)
  2241.     @arrow_bitmap.set_pixel(7, 15, arrow_color3)
  2242.     @arrow_bitmap.set_pixel(6, 16, arrow_color3)
  2243.     @arrow_bitmap.set_pixel(5, 17, arrow_color3)
  2244.     @arrow_bitmap.set_pixel(4, 18, arrow_color3)
  2245.     @arrow_bitmap.fill_rect(1, 19, 3, 1, arrow_color1)
  2246.     @arrow_bitmap.fill_rect(0, 20, 1, 3, arrow_color1)
  2247.     @arrow_bitmap.set_pixel(1, 20, arrow_color2)
  2248.     @arrow_bitmap.set_pixel(2, 20, arrow_color5)
  2249.     @arrow_bitmap.fill_rect(3, 20, 1, 2, arrow_color1)
  2250.     @arrow_bitmap.set_pixel(1, 21, arrow_color5)
  2251.     @arrow_bitmap.set_pixel(2, 21, arrow_color2)
  2252.     @arrow_bitmap.fill_rect(1, 22, 2, 1, arrow_color1)
  2253. #-------------------------------------------------------------------------------
  2254.     # Butterflies
  2255.    
  2256.     @butterfly_bitmaps = []
  2257.     case $game_screen.weather_variation
  2258.     when 1
  2259.       # Red butterflies
  2260.       butterfly_color1 = Color.new(204, 53, 55)
  2261.       butterfly_color2 = Color.new(206, 76, 74)
  2262.       butterfly_color3 = Color.new(252, 131, 137)
  2263.       butterfly_color4 = Color.new(255, 178, 163)
  2264.       butterfly_color5 = Color.new(175, 35, 49)
  2265.     when 2
  2266.       # Yellow butterflies
  2267.       butterfly_color1 = Color.new(209, 190, 75)
  2268.       butterfly_color2 = Color.new(254, 228, 131)
  2269.       butterfly_color3 = Color.new(205, 178, 52)
  2270.       butterfly_color4 = Color.new(255, 255, 162)
  2271.       butterfly_color5 = Color.new(177, 141, 34)
  2272.     when 3
  2273.       # Aqua-blue butterflies
  2274.       butterfly_color1 = Color.new(53, 204, 201)
  2275.       butterfly_color2 = Color.new(73, 204, 204)
  2276.       butterfly_color3 = Color.new(129, 249, 243)
  2277.       butterfly_color4 = Color.new(163, 241, 255)
  2278.       butterfly_color5 = Color.new(34, 173, 159)
  2279.     when 4
  2280.       # Green butterflies
  2281.       butterfly_color1 = Color.new(63, 204, 53)
  2282.       butterfly_color2 = Color.new(77, 204, 73)
  2283.       butterfly_color3 = Color.new(138, 247, 128)
  2284.       butterfly_color4 = Color.new(163, 255, 173)
  2285.       butterfly_color5 = Color.new(54, 170, 34)
  2286.     else
  2287.       # Violet butterflies
  2288.       butterfly_color1 = Color.new(163, 53, 204)
  2289.       butterfly_color2 = Color.new(173, 73, 204)
  2290.       butterfly_color3 = Color.new(209, 128, 242)
  2291.       butterfly_color4 = Color.new(247, 163, 255)
  2292.       butterfly_color5 = Color.new(121, 33, 165)
  2293.     end
  2294.    
  2295.     # Butterfly up 1
  2296.     @butterfly_bitmaps[0] = Bitmap.new(9, 6)
  2297.     @butterfly_bitmaps[0].fill_rect(1, 0, 2, 1, butterfly_color1)
  2298.     @butterfly_bitmaps[0].fill_rect(6, 0, 2, 1, butterfly_color1)
  2299.     @butterfly_bitmaps[0].fill_rect(0, 1, 1, 2, butterfly_color1)
  2300.     @butterfly_bitmaps[0].set_pixel(1, 1, butterfly_color2)
  2301.     @butterfly_bitmaps[0].fill_rect(2, 1, 1, 2, butterfly_color4)
  2302.     @butterfly_bitmaps[0].set_pixel(3, 1, butterfly_color1)
  2303.     @butterfly_bitmaps[0].set_pixel(5, 1, butterfly_color1)
  2304.     @butterfly_bitmaps[0].fill_rect(6, 1, 1, 2, butterfly_color4)
  2305.     @butterfly_bitmaps[0].set_pixel(7, 1, butterfly_color2)
  2306.     @butterfly_bitmaps[0].fill_rect(8, 1, 1, 2, butterfly_color1)
  2307.     @butterfly_bitmaps[0].set_pixel(1, 2, butterfly_color4)
  2308.     @butterfly_bitmaps[0].set_pixel(3, 2, butterfly_color4)
  2309.     @butterfly_bitmaps[0].set_pixel(4, 2, butterfly_color1)
  2310.     @butterfly_bitmaps[0].set_pixel(5, 2, butterfly_color4)
  2311.     @butterfly_bitmaps[0].set_pixel(7, 2, butterfly_color4)
  2312.     @butterfly_bitmaps[0].set_pixel(1, 3, butterfly_color5)
  2313.     @butterfly_bitmaps[0].fill_rect(2, 3, 2, 1, butterfly_color2)
  2314.     @butterfly_bitmaps[0].set_pixel(4, 3, butterfly_color5)
  2315.     @butterfly_bitmaps[0].fill_rect(5, 3, 2, 1, butterfly_color2)
  2316.     @butterfly_bitmaps[0].set_pixel(7, 3, butterfly_color5)
  2317.     @butterfly_bitmaps[0].fill_rect(1, 4, 1, 2, butterfly_color1)
  2318.     @butterfly_bitmaps[0].set_pixel(2, 4, butterfly_color4)
  2319.     @butterfly_bitmaps[0].set_pixel(3, 4, butterfly_color5)
  2320.     @butterfly_bitmaps[0].set_pixel(5, 4, butterfly_color5)
  2321.     @butterfly_bitmaps[0].set_pixel(6, 4, butterfly_color4)
  2322.     @butterfly_bitmaps[0].fill_rect(7, 4, 1, 2, butterfly_color1)
  2323.     @butterfly_bitmaps[0].set_pixel(2, 5, butterfly_color1)
  2324.     @butterfly_bitmaps[0].set_pixel(6, 5, butterfly_color1)
  2325.    
  2326.     # Butterfly up 2
  2327.     @butterfly_bitmaps[1] = Bitmap.new(9, 6)
  2328.     @butterfly_bitmaps[1].fill_rect(2, 0, 2, 1, butterfly_color1)
  2329.     @butterfly_bitmaps[1].fill_rect(5, 0, 2, 1, butterfly_color1)
  2330.     @butterfly_bitmaps[1].fill_rect(0, 1, 1, 2, butterfly_color1)
  2331.     @butterfly_bitmaps[1].fill_rect(1, 1, 3, 1, butterfly_color4)
  2332.     @butterfly_bitmaps[1].fill_rect(4, 1, 1, 2, butterfly_color1)
  2333.     @butterfly_bitmaps[1].fill_rect(5, 1, 3, 1, butterfly_color4)
  2334.     @butterfly_bitmaps[1].fill_rect(8, 1, 1, 2, butterfly_color1)
  2335.     @butterfly_bitmaps[1].fill_rect(1, 2, 2, 1, butterfly_color4)
  2336.     @butterfly_bitmaps[1].set_pixel(3, 2, butterfly_color2)
  2337.     @butterfly_bitmaps[1].set_pixel(5, 2, butterfly_color2)
  2338.     @butterfly_bitmaps[1].fill_rect(6, 2, 2, 1, butterfly_color4)
  2339.     @butterfly_bitmaps[1].set_pixel(1, 3, butterfly_color5)
  2340.     @butterfly_bitmaps[1].fill_rect(2, 3, 2, 1, butterfly_color1)
  2341.     @butterfly_bitmaps[1].set_pixel(4, 3, butterfly_color5)
  2342.     @butterfly_bitmaps[1].fill_rect(5, 3, 2, 1, butterfly_color1)
  2343.     @butterfly_bitmaps[1].set_pixel(7, 3, butterfly_color5)
  2344.     @butterfly_bitmaps[1].set_pixel(1, 4, butterfly_color1)
  2345.     @butterfly_bitmaps[1].set_pixel(2, 4, butterfly_color2)
  2346.     @butterfly_bitmaps[1].set_pixel(3, 4, butterfly_color5)
  2347.     @butterfly_bitmaps[1].set_pixel(5, 4, butterfly_color5)
  2348.     @butterfly_bitmaps[1].set_pixel(6, 4, butterfly_color2)
  2349.     @butterfly_bitmaps[1].set_pixel(7, 4, butterfly_color1)
  2350.     @butterfly_bitmaps[1].set_pixel(2, 5, butterfly_color1)
  2351.     @butterfly_bitmaps[1].set_pixel(6, 5, butterfly_color1)
  2352.  
  2353.     # Butterfly up 3
  2354.     @butterfly_bitmaps[2] = Bitmap.new(9, 6)
  2355.     @butterfly_bitmaps[2].fill_rect(1, 0, 2, 1, butterfly_color1)
  2356.     @butterfly_bitmaps[2].fill_rect(6, 0, 2, 1, butterfly_color1)
  2357.     @butterfly_bitmaps[2].fill_rect(0, 1, 1, 2, butterfly_color1)
  2358.     @butterfly_bitmaps[2].set_pixel(1, 1, butterfly_color2)
  2359.     @butterfly_bitmaps[2].fill_rect(2, 1, 1, 2, butterfly_color4)
  2360.     @butterfly_bitmaps[2].set_pixel(3, 1, butterfly_color1)
  2361.     @butterfly_bitmaps[2].set_pixel(5, 1, butterfly_color1)
  2362.     @butterfly_bitmaps[2].fill_rect(6, 1, 1, 2, butterfly_color4)
  2363.     @butterfly_bitmaps[2].set_pixel(7, 1, butterfly_color2)
  2364.     @butterfly_bitmaps[2].fill_rect(8, 1, 1, 2, butterfly_color1)
  2365.     @butterfly_bitmaps[2].set_pixel(1, 2, butterfly_color4)
  2366.     @butterfly_bitmaps[2].set_pixel(3, 2, butterfly_color4)
  2367.     @butterfly_bitmaps[2].set_pixel(4, 2, butterfly_color1)
  2368.     @butterfly_bitmaps[2].set_pixel(5, 2, butterfly_color4)
  2369.     @butterfly_bitmaps[2].set_pixel(7, 2, butterfly_color4)
  2370.     @butterfly_bitmaps[2].set_pixel(1, 3, butterfly_color5)
  2371.     @butterfly_bitmaps[2].fill_rect(2, 3, 2, 1, butterfly_color2)
  2372.     @butterfly_bitmaps[2].set_pixel(4, 3, butterfly_color5)
  2373.     @butterfly_bitmaps[2].fill_rect(5, 3, 2, 1, butterfly_color2)
  2374.     @butterfly_bitmaps[2].set_pixel(7, 3, butterfly_color5)
  2375.     @butterfly_bitmaps[2].fill_rect(1, 4, 1, 2, butterfly_color1)
  2376.     @butterfly_bitmaps[2].set_pixel(2, 4, butterfly_color4)
  2377.     @butterfly_bitmaps[2].set_pixel(3, 4, butterfly_color5)
  2378.     @butterfly_bitmaps[2].set_pixel(5, 4, butterfly_color5)
  2379.     @butterfly_bitmaps[2].set_pixel(6, 4, butterfly_color4)
  2380.     @butterfly_bitmaps[2].fill_rect(7, 4, 1, 2, butterfly_color1)
  2381.     @butterfly_bitmaps[2].set_pixel(2, 5, butterfly_color1)
  2382.     @butterfly_bitmaps[2].set_pixel(6, 5, butterfly_color1)
  2383.  
  2384.     # Butterfly up 4
  2385.     @butterfly_bitmaps[3] = Bitmap.new(7, 6)
  2386.     @butterfly_bitmaps[3].fill_rect(1, 0, 2, 1, butterfly_color1)
  2387.     @butterfly_bitmaps[3].fill_rect(4, 0, 2, 1, butterfly_color1)
  2388.     @butterfly_bitmaps[3].fill_rect(0, 1, 1, 2, butterfly_color1)
  2389.     @butterfly_bitmaps[3].fill_rect(1, 1, 2, 2, butterfly_color4)
  2390.     @butterfly_bitmaps[3].fill_rect(4, 1, 2, 2, butterfly_color4)
  2391.     @butterfly_bitmaps[3].fill_rect(6, 1, 1, 2, butterfly_color1)
  2392.     @butterfly_bitmaps[3].fill_rect(3, 2, 1, 2, butterfly_color1)
  2393.     @butterfly_bitmaps[3].set_pixel(1, 3, butterfly_color5)
  2394.     @butterfly_bitmaps[3].fill_rect(2, 3, 1, 2, butterfly_color2)
  2395.     @butterfly_bitmaps[3].fill_rect(4, 3, 1, 2, butterfly_color2)
  2396.     @butterfly_bitmaps[3].set_pixel(5, 3, butterfly_color5)
  2397.     @butterfly_bitmaps[3].set_pixel(1, 4, butterfly_color2)
  2398.     @butterfly_bitmaps[3].set_pixel(3, 4, butterfly_color5)
  2399.     @butterfly_bitmaps[3].set_pixel(5, 4, butterfly_color2)
  2400.     @butterfly_bitmaps[3].set_pixel(1, 5, butterfly_color1)
  2401.     @butterfly_bitmaps[3].set_pixel(2, 5, butterfly_color5)
  2402.     @butterfly_bitmaps[3].set_pixel(4, 5, butterfly_color5)
  2403.     @butterfly_bitmaps[3].set_pixel(5, 5, butterfly_color1)
  2404.  
  2405.     # Butterfly down 1
  2406.     @butterfly_bitmaps[4] = Bitmap.new(9, 6)
  2407.     @butterfly_bitmaps[4].fill_rect(1, 0, 2, 1, butterfly_color1)
  2408.     @butterfly_bitmaps[4].fill_rect(6, 0, 2, 1, butterfly_color1)
  2409.     @butterfly_bitmaps[4].set_pixel(1, 1, butterfly_color1)
  2410.     @butterfly_bitmaps[4].set_pixel(2, 1, butterfly_color4)
  2411.     @butterfly_bitmaps[4].set_pixel(3, 1, butterfly_color5)
  2412.     @butterfly_bitmaps[4].set_pixel(5, 1, butterfly_color5)
  2413.     @butterfly_bitmaps[4].set_pixel(6, 1, butterfly_color4)
  2414.     @butterfly_bitmaps[4].set_pixel(7, 1, butterfly_color1)
  2415.     @butterfly_bitmaps[4].set_pixel(1, 2, butterfly_color5)
  2416.     @butterfly_bitmaps[4].fill_rect(2, 2, 2, 1, butterfly_color2)
  2417.     @butterfly_bitmaps[4].set_pixel(4, 2, butterfly_color5)
  2418.     @butterfly_bitmaps[4].fill_rect(5, 2, 2, 1, butterfly_color2)
  2419.     @butterfly_bitmaps[4].set_pixel(7, 2, butterfly_color5)
  2420.     @butterfly_bitmaps[4].fill_rect(0, 3, 1, 2, butterfly_color1)
  2421.     @butterfly_bitmaps[4].fill_rect(1, 3, 3, 1, butterfly_color4)
  2422.     @butterfly_bitmaps[4].set_pixel(4, 3, butterfly_color1)
  2423.     @butterfly_bitmaps[4].fill_rect(5, 3, 3, 1, butterfly_color4)
  2424.     @butterfly_bitmaps[4].fill_rect(8, 3, 1, 2, butterfly_color1)
  2425.     @butterfly_bitmaps[4].set_pixel(1, 4, butterfly_color2)
  2426.     @butterfly_bitmaps[4].set_pixel(2, 4, butterfly_color4)
  2427.     @butterfly_bitmaps[4].set_pixel(3, 4, butterfly_color1)
  2428.     @butterfly_bitmaps[4].set_pixel(5, 4, butterfly_color1)
  2429.     @butterfly_bitmaps[4].set_pixel(6, 4, butterfly_color4)
  2430.     @butterfly_bitmaps[4].set_pixel(7, 4, butterfly_color2)
  2431.     @butterfly_bitmaps[4].fill_rect(1, 5, 2, 1, butterfly_color1)
  2432.     @butterfly_bitmaps[4].fill_rect(6, 5, 2, 1, butterfly_color1)
  2433.  
  2434.     # Butterfly down 2
  2435.     @butterfly_bitmaps[5] = Bitmap.new(9, 6)
  2436.     @butterfly_bitmaps[5].set_pixel(2, 0, butterfly_color1)
  2437.     @butterfly_bitmaps[5].set_pixel(6, 0, butterfly_color1)
  2438.     @butterfly_bitmaps[5].set_pixel(1, 1, butterfly_color1)
  2439.     @butterfly_bitmaps[5].set_pixel(2, 1, butterfly_color2)
  2440.     @butterfly_bitmaps[5].set_pixel(3, 1, butterfly_color5)
  2441.     @butterfly_bitmaps[5].set_pixel(5, 1, butterfly_color5)
  2442.     @butterfly_bitmaps[5].set_pixel(6, 1, butterfly_color2)
  2443.     @butterfly_bitmaps[5].set_pixel(7, 1, butterfly_color1)
  2444.     @butterfly_bitmaps[5].set_pixel(1, 2, butterfly_color5)
  2445.     @butterfly_bitmaps[5].fill_rect(2, 2, 2, 1, butterfly_color1)
  2446.     @butterfly_bitmaps[5].set_pixel(4, 2, butterfly_color5)
  2447.     @butterfly_bitmaps[5].fill_rect(5, 2, 2, 1, butterfly_color1)
  2448.     @butterfly_bitmaps[5].set_pixel(7, 2, butterfly_color5)
  2449.     @butterfly_bitmaps[5].fill_rect(0, 3, 1, 2, butterfly_color1)
  2450.     @butterfly_bitmaps[5].fill_rect(1, 3, 2, 2, butterfly_color4)
  2451.     @butterfly_bitmaps[5].set_pixel(3, 3, butterfly_color2)
  2452.     @butterfly_bitmaps[5].fill_rect(4, 3, 1, 2, butterfly_color1)
  2453.     @butterfly_bitmaps[5].set_pixel(5, 3, butterfly_color2)
  2454.     @butterfly_bitmaps[5].fill_rect(6, 3, 2, 2, butterfly_color4)
  2455.     @butterfly_bitmaps[5].fill_rect(8, 3, 1, 2, butterfly_color1)
  2456.     @butterfly_bitmaps[5].set_pixel(3, 4, butterfly_color4)
  2457.     @butterfly_bitmaps[5].set_pixel(5, 4, butterfly_color4)
  2458.     @butterfly_bitmaps[5].fill_rect(2, 5, 2, 1, butterfly_color1)
  2459.     @butterfly_bitmaps[5].fill_rect(5, 5, 2, 1, butterfly_color1)
  2460.  
  2461.     # Butterfly down 3
  2462.     @butterfly_bitmaps[6] = Bitmap.new(9, 6)
  2463.     @butterfly_bitmaps[6].fill_rect(1, 0, 2, 1, butterfly_color1)
  2464.     @butterfly_bitmaps[6].fill_rect(6, 0, 2, 1, butterfly_color1)
  2465.     @butterfly_bitmaps[6].set_pixel(1, 1, butterfly_color1)
  2466.     @butterfly_bitmaps[6].set_pixel(2, 1, butterfly_color4)
  2467.     @butterfly_bitmaps[6].set_pixel(3, 1, butterfly_color5)
  2468.     @butterfly_bitmaps[6].set_pixel(5, 1, butterfly_color5)
  2469.     @butterfly_bitmaps[6].set_pixel(6, 1, butterfly_color4)
  2470.     @butterfly_bitmaps[6].set_pixel(7, 1, butterfly_color1)
  2471.     @butterfly_bitmaps[6].set_pixel(1, 2, butterfly_color5)
  2472.     @butterfly_bitmaps[6].fill_rect(2, 2, 2, 1, butterfly_color2)
  2473.     @butterfly_bitmaps[6].set_pixel(4, 2, butterfly_color5)
  2474.     @butterfly_bitmaps[6].fill_rect(5, 2, 2, 1, butterfly_color2)
  2475.     @butterfly_bitmaps[6].set_pixel(7, 2, butterfly_color5)
  2476.     @butterfly_bitmaps[6].fill_rect(0, 3, 1, 2, butterfly_color1)
  2477.     @butterfly_bitmaps[6].fill_rect(1, 3, 3, 1, butterfly_color4)
  2478.     @butterfly_bitmaps[6].set_pixel(4, 3, butterfly_color1)
  2479.     @butterfly_bitmaps[6].fill_rect(5, 3, 3, 1, butterfly_color4)
  2480.     @butterfly_bitmaps[6].fill_rect(8, 3, 1, 2, butterfly_color1)
  2481.     @butterfly_bitmaps[6].set_pixel(1, 4, butterfly_color2)
  2482.     @butterfly_bitmaps[6].set_pixel(2, 4, butterfly_color4)
  2483.     @butterfly_bitmaps[6].set_pixel(3, 4, butterfly_color1)
  2484.     @butterfly_bitmaps[6].set_pixel(5, 4, butterfly_color1)
  2485.     @butterfly_bitmaps[6].set_pixel(6, 4, butterfly_color4)
  2486.     @butterfly_bitmaps[6].set_pixel(7, 4, butterfly_color2)
  2487.     @butterfly_bitmaps[6].fill_rect(1, 5, 2, 1, butterfly_color1)
  2488.     @butterfly_bitmaps[6].fill_rect(6, 5, 2, 1, butterfly_color1)
  2489.  
  2490.     # Butterfly down 4
  2491.     @butterfly_bitmaps[7] = Bitmap.new(7, 6)
  2492.     @butterfly_bitmaps[7].set_pixel(1, 0, butterfly_color1)
  2493.     @butterfly_bitmaps[7].set_pixel(2, 0, butterfly_color5)
  2494.     @butterfly_bitmaps[7].set_pixel(4, 0, butterfly_color5)
  2495.     @butterfly_bitmaps[7].set_pixel(5, 0, butterfly_color1)
  2496.     @butterfly_bitmaps[7].fill_rect(1, 1, 2, 1, butterfly_color2)
  2497.     @butterfly_bitmaps[7].set_pixel(3, 1, butterfly_color5)
  2498.     @butterfly_bitmaps[7].fill_rect(4, 1, 2, 1, butterfly_color2)
  2499.     @butterfly_bitmaps[7].set_pixel(1, 2, butterfly_color5)
  2500.     @butterfly_bitmaps[7].set_pixel(2, 2, butterfly_color2)
  2501.     @butterfly_bitmaps[7].fill_rect(3, 2, 1, 2, butterfly_color1)
  2502.     @butterfly_bitmaps[7].set_pixel(4, 2, butterfly_color2)
  2503.     @butterfly_bitmaps[7].set_pixel(5, 2, butterfly_color5)
  2504.     @butterfly_bitmaps[7].fill_rect(0, 3, 1, 2, butterfly_color1)
  2505.     @butterfly_bitmaps[7].fill_rect(1, 3, 2, 2, butterfly_color4)
  2506.     @butterfly_bitmaps[7].fill_rect(4, 3, 2, 2, butterfly_color4)
  2507.     @butterfly_bitmaps[7].fill_rect(6, 3, 1, 2, butterfly_color1)
  2508.     @butterfly_bitmaps[7].fill_rect(1, 5, 2, 1, butterfly_color1)
  2509.     @butterfly_bitmaps[7].fill_rect(4, 5, 2, 1, butterfly_color1)
  2510.  
  2511.     # Butterfly left 1
  2512.     @butterfly_bitmaps[8] = Bitmap.new(7, 7)
  2513.     @butterfly_bitmaps[8].set_pixel(2, 0, butterfly_color3)
  2514.     @butterfly_bitmaps[8].fill_rect(3, 0, 2, 1, butterfly_color1)
  2515.     @butterfly_bitmaps[8].fill_rect(0, 1, 2, 2, butterfly_color3)
  2516.     @butterfly_bitmaps[8].set_pixel(2, 1, butterfly_color2)
  2517.     @butterfly_bitmaps[8].fill_rect(3, 1, 1, 3, butterfly_color4)
  2518.     @butterfly_bitmaps[8].set_pixel(4, 1, butterfly_color2)
  2519.     @butterfly_bitmaps[8].fill_rect(5, 1, 1, 3, butterfly_color1)
  2520.     @butterfly_bitmaps[8].fill_rect(2, 2, 1, 2, butterfly_color4)
  2521.     @butterfly_bitmaps[8].set_pixel(4, 2, butterfly_color4)
  2522.     @butterfly_bitmaps[8].set_pixel(0, 3, butterfly_color3)
  2523.     @butterfly_bitmaps[8].fill_rect(1, 3, 1, 2, butterfly_color5)
  2524.     @butterfly_bitmaps[8].set_pixel(4, 3, butterfly_color2)
  2525.     @butterfly_bitmaps[8].fill_rect(2, 4, 2, 1, butterfly_color2)
  2526.     @butterfly_bitmaps[8].set_pixel(4, 4, butterfly_color1)
  2527.     @butterfly_bitmaps[8].set_pixel(5, 4, butterfly_color5)
  2528.     @butterfly_bitmaps[8].set_pixel(2, 5, butterfly_color5)
  2529.     @butterfly_bitmaps[8].set_pixel(3, 5, butterfly_color1)
  2530.     @butterfly_bitmaps[8].fill_rect(4, 5, 2, 1, butterfly_color2)
  2531.     @butterfly_bitmaps[8].set_pixel(6, 5, butterfly_color1)
  2532.     @butterfly_bitmaps[8].set_pixel(3, 6, butterfly_color5)
  2533.     @butterfly_bitmaps[8].fill_rect(4, 6, 2, 1, butterfly_color1)
  2534.  
  2535.     # Butterfly left 2
  2536.     @butterfly_bitmaps[9] = Bitmap.new(7, 6)
  2537.     @butterfly_bitmaps[9].fill_rect(1, 0, 2, 1, butterfly_color2)
  2538.     @butterfly_bitmaps[9].set_pixel(3, 0, butterfly_color1)
  2539.     @butterfly_bitmaps[9].fill_rect(0, 1, 1, 2, butterfly_color3)
  2540.     @butterfly_bitmaps[9].set_pixel(1, 1, butterfly_color2)
  2541.     @butterfly_bitmaps[9].set_pixel(2, 1, butterfly_color4)
  2542.     @butterfly_bitmaps[9].set_pixel(3, 1, butterfly_color2)
  2543.     @butterfly_bitmaps[9].set_pixel(4, 1, butterfly_color3)
  2544.     @butterfly_bitmaps[9].set_pixel(1, 2, butterfly_color5)
  2545.     @butterfly_bitmaps[9].set_pixel(2, 2, butterfly_color2)
  2546.     @butterfly_bitmaps[9].set_pixel(3, 2, butterfly_color4)
  2547.     @butterfly_bitmaps[9].fill_rect(4, 2, 1, 2, butterfly_color2)
  2548.     @butterfly_bitmaps[9].fill_rect(5, 2, 1, 2, butterfly_color3)
  2549.     @butterfly_bitmaps[9].set_pixel(2, 3, butterfly_color5)
  2550.     @butterfly_bitmaps[9].set_pixel(3, 3, butterfly_color3)
  2551.     @butterfly_bitmaps[9].set_pixel(4, 4, butterfly_color3)
  2552.     @butterfly_bitmaps[9].set_pixel(5, 4, butterfly_color2)
  2553.     @butterfly_bitmaps[9].set_pixel(6, 4, butterfly_color3)
  2554.     @butterfly_bitmaps[9].set_pixel(5, 5, butterfly_color3)
  2555.     @butterfly_bitmaps[9].set_pixel(6, 5, butterfly_color2)
  2556.  
  2557.     # Butterfly left 3
  2558.     @butterfly_bitmaps[10] = Bitmap.new(7, 6)
  2559.     @butterfly_bitmaps[10].fill_rect(2, 0, 2, 1, butterfly_color3)
  2560.     @butterfly_bitmaps[10].set_pixel(4, 0, butterfly_color5)
  2561.     @butterfly_bitmaps[10].fill_rect(0, 1, 2, 1, butterfly_color3)
  2562.     @butterfly_bitmaps[10].set_pixel(2, 1, butterfly_color2)
  2563.     @butterfly_bitmaps[10].fill_rect(3, 1, 2, 2, butterfly_color4)
  2564.     @butterfly_bitmaps[10].set_pixel(5, 1, butterfly_color5)
  2565.     @butterfly_bitmaps[10].set_pixel(0, 2, butterfly_color3)
  2566.     @butterfly_bitmaps[10].set_pixel(1, 2, butterfly_color2)
  2567.     @butterfly_bitmaps[10].fill_rect(2, 2, 1, 2, butterfly_color4)
  2568.     @butterfly_bitmaps[10].set_pixel(5, 2, butterfly_color3)
  2569.     @butterfly_bitmaps[10].set_pixel(1, 3, butterfly_color3)
  2570.     @butterfly_bitmaps[10].set_pixel(3, 3, butterfly_color2)
  2571.     @butterfly_bitmaps[10].set_pixel(4, 3, butterfly_color3)
  2572.     @butterfly_bitmaps[10].fill_rect(5, 3, 1, 2, butterfly_color2)
  2573.     @butterfly_bitmaps[10].fill_rect(6, 3, 1, 2, butterfly_color3)
  2574.     @butterfly_bitmaps[10].fill_rect(2, 4, 2, 1, butterfly_color3)
  2575.     @butterfly_bitmaps[10].set_pixel(4, 4, butterfly_color2)
  2576.     @butterfly_bitmaps[10].fill_rect(4, 5, 2, 1, butterfly_color3)
  2577.  
  2578.     # Butterfly left 4
  2579.     @butterfly_bitmaps[11] = Bitmap.new(7, 6)
  2580.     @butterfly_bitmaps[11].fill_rect(1, 0, 2, 1, butterfly_color2)
  2581.     @butterfly_bitmaps[11].set_pixel(3, 0, butterfly_color1)
  2582.     @butterfly_bitmaps[11].fill_rect(0, 1, 2, 1, butterfly_color3)
  2583.     @butterfly_bitmaps[11].set_pixel(2, 1, butterfly_color4)
  2584.     @butterfly_bitmaps[11].set_pixel(3, 1, butterfly_color2)
  2585.     @butterfly_bitmaps[11].set_pixel(4, 1, butterfly_color3)
  2586.     @butterfly_bitmaps[11].set_pixel(0, 2, butterfly_color3)
  2587.     @butterfly_bitmaps[11].set_pixel(1, 2, butterfly_color5)
  2588.     @butterfly_bitmaps[11].set_pixel(2, 2, butterfly_color2)
  2589.     @butterfly_bitmaps[11].set_pixel(3, 2, butterfly_color4)
  2590.     @butterfly_bitmaps[11].fill_rect(4, 2, 1, 2, butterfly_color2)
  2591.     @butterfly_bitmaps[11].fill_rect(5, 2, 1, 2, butterfly_color3)
  2592.     @butterfly_bitmaps[11].set_pixel(2, 3, butterfly_color5)
  2593.     @butterfly_bitmaps[11].set_pixel(3, 3, butterfly_color3)
  2594.     @butterfly_bitmaps[11].set_pixel(4, 4, butterfly_color3)
  2595.     @butterfly_bitmaps[11].set_pixel(5, 4, butterfly_color2)
  2596.     @butterfly_bitmaps[11].fill_rect(6, 4, 1, 2, butterfly_color3)
  2597.     @butterfly_bitmaps[11].set_pixel(5, 5, butterfly_color3)
  2598.  
  2599.     # Butterfly right 1
  2600.     @butterfly_bitmaps[12] = Bitmap.new(7, 7)
  2601.     @butterfly_bitmaps[12].fill_rect(2, 0, 2, 1, butterfly_color1)
  2602.     @butterfly_bitmaps[12].set_pixel(4, 0, butterfly_color3)
  2603.     @butterfly_bitmaps[12].fill_rect(1, 1, 1, 3, butterfly_color1)
  2604.     @butterfly_bitmaps[12].set_pixel(2, 1, butterfly_color2)
  2605.     @butterfly_bitmaps[12].fill_rect(3, 1, 1, 3, butterfly_color4)
  2606.     @butterfly_bitmaps[12].set_pixel(4, 1, butterfly_color2)
  2607.     @butterfly_bitmaps[12].fill_rect(5, 1, 2, 2, butterfly_color3)
  2608.     @butterfly_bitmaps[12].set_pixel(2, 2, butterfly_color4)
  2609.     @butterfly_bitmaps[12].fill_rect(4, 2, 1, 2, butterfly_color4)
  2610.     @butterfly_bitmaps[12].set_pixel(2, 3, butterfly_color2)
  2611.     @butterfly_bitmaps[12].fill_rect(5, 3, 1, 2, butterfly_color5)
  2612.     @butterfly_bitmaps[12].set_pixel(6, 3, butterfly_color3)
  2613.     @butterfly_bitmaps[12].set_pixel(1, 4, butterfly_color5)
  2614.     @butterfly_bitmaps[12].set_pixel(2, 4, butterfly_color1)
  2615.     @butterfly_bitmaps[12].fill_rect(3, 4, 2, 1, butterfly_color2)
  2616.     @butterfly_bitmaps[12].set_pixel(0, 5, butterfly_color1)
  2617.     @butterfly_bitmaps[12].fill_rect(1, 5, 2, 1, butterfly_color2)
  2618.     @butterfly_bitmaps[12].set_pixel(3, 5, butterfly_color1)
  2619.     @butterfly_bitmaps[12].set_pixel(4, 5, butterfly_color5)
  2620.     @butterfly_bitmaps[12].fill_rect(1, 6, 2, 1, butterfly_color1)
  2621.     @butterfly_bitmaps[12].set_pixel(3, 6, butterfly_color5)
  2622.  
  2623.     # Butterfly right 2
  2624.     @butterfly_bitmaps[13] = Bitmap.new(7, 6)
  2625.     @butterfly_bitmaps[13].set_pixel(3, 0, butterfly_color1)
  2626.     @butterfly_bitmaps[13].fill_rect(4, 0, 2, 1, butterfly_color2)
  2627.     @butterfly_bitmaps[13].set_pixel(2, 1, butterfly_color3)
  2628.     @butterfly_bitmaps[13].set_pixel(3, 1, butterfly_color2)
  2629.     @butterfly_bitmaps[13].set_pixel(4, 1, butterfly_color4)
  2630.     @butterfly_bitmaps[13].set_pixel(5, 1, butterfly_color2)
  2631.     @butterfly_bitmaps[13].fill_rect(6, 1, 1, 2, butterfly_color3)
  2632.     @butterfly_bitmaps[13].fill_rect(1, 2, 1, 2, butterfly_color3)
  2633.     @butterfly_bitmaps[13].fill_rect(2, 2, 1, 2, butterfly_color2)
  2634.     @butterfly_bitmaps[13].set_pixel(3, 2, butterfly_color4)
  2635.     @butterfly_bitmaps[13].set_pixel(4, 2, butterfly_color2)
  2636.     @butterfly_bitmaps[13].set_pixel(5, 2, butterfly_color5)
  2637.     @butterfly_bitmaps[13].set_pixel(3, 3, butterfly_color3)
  2638.     @butterfly_bitmaps[13].set_pixel(4, 3, butterfly_color5)
  2639.     @butterfly_bitmaps[13].set_pixel(0, 4, butterfly_color3)
  2640.     @butterfly_bitmaps[13].set_pixel(1, 4, butterfly_color2)
  2641.     @butterfly_bitmaps[13].set_pixel(2, 4, butterfly_color3)
  2642.     @butterfly_bitmaps[13].set_pixel(0, 5, butterfly_color2)
  2643.     @butterfly_bitmaps[13].set_pixel(1, 5, butterfly_color3)
  2644.  
  2645.     # Butterfly right 3
  2646.     @butterfly_bitmaps[14] = Bitmap.new(7, 6)
  2647.     @butterfly_bitmaps[14].set_pixel(2, 0, butterfly_color5)
  2648.     @butterfly_bitmaps[14].fill_rect(3, 0, 2, 1, butterfly_color3)
  2649.     @butterfly_bitmaps[14].set_pixel(1, 1, butterfly_color5)
  2650.     @butterfly_bitmaps[14].fill_rect(2, 1, 2, 2, butterfly_color4)
  2651.     @butterfly_bitmaps[14].set_pixel(4, 1, butterfly_color2)
  2652.     @butterfly_bitmaps[14].fill_rect(5, 1, 2, 1, butterfly_color3)
  2653.     @butterfly_bitmaps[14].set_pixel(1, 2, butterfly_color3)
  2654.     @butterfly_bitmaps[14].fill_rect(4, 2, 1, 2, butterfly_color4)
  2655.     @butterfly_bitmaps[14].set_pixel(5, 2, butterfly_color2)
  2656.     @butterfly_bitmaps[14].set_pixel(6, 2, butterfly_color3)
  2657.     @butterfly_bitmaps[14].fill_rect(0, 3, 1, 2, butterfly_color3)
  2658.     @butterfly_bitmaps[14].fill_rect(1, 3, 1, 2, butterfly_color2)
  2659.     @butterfly_bitmaps[14].set_pixel(2, 3, butterfly_color3)
  2660.     @butterfly_bitmaps[14].set_pixel(3, 3, butterfly_color2)
  2661.     @butterfly_bitmaps[14].set_pixel(5, 3, butterfly_color3)
  2662.     @butterfly_bitmaps[14].set_pixel(2, 4, butterfly_color2)
  2663.     @butterfly_bitmaps[14].fill_rect(3, 4, 2, 1, butterfly_color3)
  2664.     @butterfly_bitmaps[14].fill_rect(1, 5, 2, 1, butterfly_color3)
  2665.  
  2666.     # Butterfly right 4
  2667.     @butterfly_bitmaps[15] = Bitmap.new(7, 6)
  2668.     @butterfly_bitmaps[15].set_pixel(3, 0, butterfly_color1)
  2669.     @butterfly_bitmaps[15].fill_rect(4, 0, 2, 1, butterfly_color2)
  2670.     @butterfly_bitmaps[15].set_pixel(2, 1, butterfly_color3)
  2671.     @butterfly_bitmaps[15].set_pixel(3, 1, butterfly_color2)
  2672.     @butterfly_bitmaps[15].set_pixel(4, 1, butterfly_color4)
  2673.     @butterfly_bitmaps[15].fill_rect(5, 1, 2, 1, butterfly_color3)
  2674.     @butterfly_bitmaps[15].fill_rect(1, 2, 1, 2, butterfly_color3)
  2675.     @butterfly_bitmaps[15].fill_rect(2, 2, 1, 2, butterfly_color2)
  2676.     @butterfly_bitmaps[15].set_pixel(3, 2, butterfly_color4)
  2677.     @butterfly_bitmaps[15].set_pixel(4, 2, butterfly_color2)
  2678.     @butterfly_bitmaps[15].set_pixel(5, 2, butterfly_color5)
  2679.     @butterfly_bitmaps[15].set_pixel(6, 2, butterfly_color3)
  2680.     @butterfly_bitmaps[15].set_pixel(3, 3, butterfly_color3)
  2681.     @butterfly_bitmaps[15].set_pixel(4, 3, butterfly_color5)
  2682.     @butterfly_bitmaps[15].fill_rect(0, 4, 1, 2, butterfly_color3)
  2683.     @butterfly_bitmaps[15].set_pixel(1, 4, butterfly_color2)
  2684.     @butterfly_bitmaps[15].set_pixel(2, 4, butterfly_color3)
  2685.     @butterfly_bitmaps[15].set_pixel(1, 5, butterfly_color3)
  2686. #-------------------------------------------------------------------------------  
  2687.     # Bird bitmaps
  2688.  
  2689.     @bird_bitmaps = []
  2690.     bird_color1 = Color.new(100, 100, 100)
  2691.     bird_color2 = Color.new(170, 170, 170)
  2692.     bird_color3 = Color.new(136, 136, 136)
  2693.     bird_color4 = Color.new(204, 204, 204)
  2694.     bird_color5 = Color.new(240, 240, 240)
  2695.     bird_color6 = Color.new(73, 51, 87)
  2696.     bird_color7 = Color.new(191, 90, 97)
  2697.     bird_color8 = Color.new(255, 255, 255)
  2698.     bird_color9 = Color.new(223, 130, 142)
  2699.    
  2700.     # Bird left 1
  2701.     @bird_bitmaps[0] = Bitmap.new(12, 10)
  2702.     @bird_bitmaps[0].fill_rect(7, 0, 3, 1, bird_color1)
  2703.     @bird_bitmaps[0].set_pixel(5, 1, bird_color1)
  2704.     @bird_bitmaps[0].fill_rect(6, 1, 2, 1, bird_color2)
  2705.     @bird_bitmaps[0].set_pixel(8, 1, bird_color3)
  2706.     @bird_bitmaps[0].set_pixel(9, 1, bird_color1)
  2707.     @bird_bitmaps[0].set_pixel(3, 2, bird_color1)
  2708.     @bird_bitmaps[0].set_pixel(4, 2, bird_color2)
  2709.     @bird_bitmaps[0].set_pixel(5, 2, bird_color3)
  2710.     @bird_bitmaps[0].set_pixel(6, 2, bird_color4)
  2711.     @bird_bitmaps[0].fill_rect(7, 2, 5, 1, bird_color8)
  2712.     @bird_bitmaps[0].set_pixel(3, 3, bird_color6)
  2713.     @bird_bitmaps[0].set_pixel(4, 3, bird_color3)
  2714.     @bird_bitmaps[0].fill_rect(5, 3, 1, 3, bird_color8)
  2715.     @bird_bitmaps[0].set_pixel(6, 3, bird_color3)
  2716.     @bird_bitmaps[0].fill_rect(7, 3, 2, 1, bird_color4)
  2717.     @bird_bitmaps[0].set_pixel(9, 3, bird_color8)
  2718.     @bird_bitmaps[0].set_pixel(10, 3, bird_color2)
  2719.     @bird_bitmaps[0].set_pixel(11, 3, bird_color6)
  2720.     @bird_bitmaps[0].fill_rect(1, 4, 2, 1, bird_color3)
  2721.     @bird_bitmaps[0].set_pixel(3, 4, bird_color1)
  2722.     @bird_bitmaps[0].fill_rect(4, 4, 1, 2, bird_color2)
  2723.     @bird_bitmaps[0].set_pixel(6, 4, bird_color2)
  2724.     @bird_bitmaps[0].fill_rect(7, 4, 1, 2, bird_color4)
  2725.     @bird_bitmaps[0].set_pixel(8, 4, bird_color8)
  2726.     @bird_bitmaps[0].set_pixel(9, 4, bird_color2)
  2727.     @bird_bitmaps[0].set_pixel(10, 4, bird_color6)
  2728.     @bird_bitmaps[0].fill_rect(1, 5, 3, 1, bird_color8)
  2729.     @bird_bitmaps[0].set_pixel(6, 5, bird_color3)
  2730.     @bird_bitmaps[0].set_pixel(8, 5, bird_color2)
  2731.     @bird_bitmaps[0].set_pixel(1, 6, bird_color6)
  2732.     @bird_bitmaps[0].set_pixel(2, 6, bird_color2)
  2733.     @bird_bitmaps[0].fill_rect(3, 6, 2, 2, bird_color8)
  2734.     @bird_bitmaps[0].set_pixel(5, 6, bird_color4)
  2735.     @bird_bitmaps[0].set_pixel(6, 6, bird_color2)
  2736.     @bird_bitmaps[0].set_pixel(7, 6, bird_color1)
  2737.     @bird_bitmaps[0].set_pixel(2, 7, bird_color1)
  2738.     @bird_bitmaps[0].fill_rect(5, 7, 2, 1, bird_color8)
  2739.     @bird_bitmaps[0].fill_rect(7, 7, 1, 2, bird_color2)
  2740.     @bird_bitmaps[0].fill_rect(8, 7, 1, 2, bird_color8)
  2741.     @bird_bitmaps[0].fill_rect(9, 7, 1, 2, bird_color1)
  2742.     @bird_bitmaps[0].set_pixel(4, 8, bird_color6)
  2743.     @bird_bitmaps[0].fill_rect(5, 8, 2, 1, bird_color2)
  2744.     @bird_bitmaps[0].set_pixel(6, 9, bird_color6)
  2745.     @bird_bitmaps[0].fill_rect(8, 9, 2, 1, bird_color6)
  2746.    
  2747.     # Bird left 2
  2748.     @bird_bitmaps[1] = Bitmap.new(10, 13)
  2749.     @bird_bitmaps[1].set_pixel(5, 0, bird_color1)
  2750.     @bird_bitmaps[1].set_pixel(7, 0, bird_color4)
  2751.     @bird_bitmaps[1].set_pixel(8, 0, bird_color1)
  2752.     @bird_bitmaps[1].fill_rect(5, 1, 1, 4, bird_color2)
  2753.     @bird_bitmaps[1].set_pixel(6, 1, bird_color1)
  2754.     @bird_bitmaps[1].fill_rect(7, 1, 1, 2, bird_color8)
  2755.     @bird_bitmaps[1].set_pixel(8, 1, bird_color4)
  2756.     @bird_bitmaps[1].set_pixel(6, 2, bird_color3)
  2757.     @bird_bitmaps[1].set_pixel(8, 2, bird_color5)
  2758.     @bird_bitmaps[1].fill_rect(9, 2, 1, 4, bird_color1)
  2759.     @bird_bitmaps[1].fill_rect(6, 3, 3, 1, bird_color4)
  2760.     @bird_bitmaps[1].set_pixel(4, 4, bird_color1)
  2761.     @bird_bitmaps[1].set_pixel(6, 4, bird_color8)
  2762.     @bird_bitmaps[1].fill_rect(7, 4, 1, 3, bird_color4)
  2763.     @bird_bitmaps[1].set_pixel(8, 4, bird_color8)
  2764.     @bird_bitmaps[1].set_pixel(4, 5, bird_color2)
  2765.     @bird_bitmaps[1].set_pixel(5, 5, bird_color8)
  2766.     @bird_bitmaps[1].set_pixel(6, 5, bird_color2)
  2767.     @bird_bitmaps[1].set_pixel(8, 5, bird_color5)
  2768.     @bird_bitmaps[1].set_pixel(4, 6, bird_color8)
  2769.     @bird_bitmaps[1].set_pixel(5, 6, bird_color1)
  2770.     @bird_bitmaps[1].fill_rect(6, 6, 1, 2, bird_color4)
  2771.     @bird_bitmaps[1].set_pixel(8, 6, bird_color3)
  2772.     @bird_bitmaps[1].fill_rect(2, 7, 1, 2, bird_color3)
  2773.     @bird_bitmaps[1].set_pixel(3, 7, bird_color1)
  2774.     @bird_bitmaps[1].set_pixel(4, 7, bird_color2)
  2775.     @bird_bitmaps[1].set_pixel(5, 7, bird_color3)
  2776.     @bird_bitmaps[1].set_pixel(7, 7, bird_color3)
  2777.     @bird_bitmaps[1].set_pixel(8, 7, bird_color1)
  2778.     @bird_bitmaps[1].set_pixel(1, 8, bird_color7)
  2779.     @bird_bitmaps[1].fill_rect(3, 8, 1, 2, bird_color8)
  2780.     @bird_bitmaps[1].set_pixel(4, 8, bird_color4)
  2781.     @bird_bitmaps[1].set_pixel(5, 8, bird_color2)
  2782.     @bird_bitmaps[1].fill_rect(6, 8, 1, 2, bird_color3)
  2783.     @bird_bitmaps[1].fill_rect(7, 8, 1, 2, bird_color1)
  2784.     @bird_bitmaps[1].set_pixel(1, 9, bird_color6)
  2785.     @bird_bitmaps[1].set_pixel(2, 9, bird_color2)
  2786.     @bird_bitmaps[1].fill_rect(4, 9, 1, 2, bird_color8)
  2787.     @bird_bitmaps[1].set_pixel(5, 9, bird_color4)
  2788.     @bird_bitmaps[1].set_pixel(3, 10, bird_color2)
  2789.     @bird_bitmaps[1].fill_rect(5, 10, 2, 1, bird_color8)
  2790.     @bird_bitmaps[1].set_pixel(7, 10, bird_color4)
  2791.     @bird_bitmaps[1].set_pixel(8, 10, bird_color8)
  2792.     @bird_bitmaps[1].set_pixel(9, 10, bird_color2)
  2793.     @bird_bitmaps[1].set_pixel(4, 11, bird_color3)
  2794.     @bird_bitmaps[1].set_pixel(5, 11, bird_color2)
  2795.     @bird_bitmaps[1].set_pixel(6, 11, bird_color4)
  2796.     @bird_bitmaps[1].set_pixel(7, 11, bird_color1)
  2797.     @bird_bitmaps[1].set_pixel(8, 11, bird_color2)
  2798.     @bird_bitmaps[1].set_pixel(9, 11, bird_color4)
  2799.     @bird_bitmaps[1].set_pixel(6, 12, bird_color6)
  2800.     @bird_bitmaps[1].set_pixel(7, 12, bird_color7)
  2801.     @bird_bitmaps[1].set_pixel(9, 12, bird_color6)
  2802.    
  2803.     # Bird left 3
  2804.     @bird_bitmaps[2] = Bitmap.new(12, 7)
  2805.     @bird_bitmaps[2].set_pixel(4, 0, bird_color3)
  2806.     @bird_bitmaps[2].fill_rect(5, 0, 3, 1, bird_color1)
  2807.     @bird_bitmaps[2].set_pixel(3, 1, bird_color3)
  2808.     @bird_bitmaps[2].fill_rect(4, 1, 1, 4, bird_color8)
  2809.     @bird_bitmaps[2].set_pixel(5, 1, bird_color4)
  2810.     @bird_bitmaps[2].set_pixel(6, 1, bird_color2)
  2811.     @bird_bitmaps[2].set_pixel(7, 1, bird_color4)
  2812.     @bird_bitmaps[2].set_pixel(3, 2, bird_color7)
  2813.     @bird_bitmaps[2].fill_rect(5, 2, 2, 2, bird_color8)
  2814.     @bird_bitmaps[2].set_pixel(7, 2, bird_color2)
  2815.     @bird_bitmaps[2].set_pixel(8, 2, bird_color1)
  2816.     @bird_bitmaps[2].set_pixel(2, 3, bird_color3)
  2817.     @bird_bitmaps[2].fill_rect(3, 3, 1, 2, bird_color2)
  2818.     @bird_bitmaps[2].set_pixel(7, 3, bird_color8)
  2819.     @bird_bitmaps[2].set_pixel(8, 3, bird_color2)
  2820.     @bird_bitmaps[2].set_pixel(0, 4, bird_color1)
  2821.     @bird_bitmaps[2].set_pixel(1, 4, bird_color4)
  2822.     @bird_bitmaps[2].set_pixel(2, 4, bird_color8)
  2823.     @bird_bitmaps[2].set_pixel(5, 4, bird_color8)
  2824.     @bird_bitmaps[2].fill_rect(6, 4, 1, 2, bird_color3)
  2825.     @bird_bitmaps[2].set_pixel(7, 4, bird_color2)
  2826.     @bird_bitmaps[2].set_pixel(8, 4, bird_color4)
  2827.     @bird_bitmaps[2].fill_rect(9, 4, 2, 1, bird_color8)
  2828.     @bird_bitmaps[2].set_pixel(11, 4, bird_color2)
  2829.     @bird_bitmaps[2].set_pixel(1, 5, bird_color6)
  2830.     @bird_bitmaps[2].set_pixel(2, 5, bird_color3)
  2831.     @bird_bitmaps[2].set_pixel(3, 5, bird_color8)
  2832.     @bird_bitmaps[2].set_pixel(4, 5, bird_color3)
  2833.     @bird_bitmaps[2].set_pixel(5, 5, bird_color2)
  2834.     @bird_bitmaps[2].set_pixel(7, 5, bird_color4)
  2835.     @bird_bitmaps[2].fill_rect(8, 5, 2, 1, bird_color2)
  2836.     @bird_bitmaps[2].set_pixel(10, 5, bird_color8)
  2837.     @bird_bitmaps[2].set_pixel(11, 5, bird_color1)
  2838.     @bird_bitmaps[2].fill_rect(2, 6, 2, 1, bird_color6)
  2839.     @bird_bitmaps[2].set_pixel(4, 6, bird_color2)
  2840.     @bird_bitmaps[2].fill_rect(5, 6, 4, 1, bird_color6)
  2841.     @bird_bitmaps[2].fill_rect(10, 6, 2, 1, bird_color6)
  2842.    
  2843.     # Bird left 4
  2844.     @bird_bitmaps[3] = Bitmap.new(12, 9)
  2845.     @bird_bitmaps[3].fill_rect(3, 0, 2, 1, bird_color3)
  2846.     @bird_bitmaps[3].set_pixel(3, 1, bird_color4)
  2847.     @bird_bitmaps[3].fill_rect(4, 1, 1, 2, bird_color8)
  2848.     @bird_bitmaps[3].set_pixel(5, 1, bird_color2)
  2849.     @bird_bitmaps[3].set_pixel(6, 1, bird_color1)
  2850.     @bird_bitmaps[3].set_pixel(2, 2, bird_color9)
  2851.     @bird_bitmaps[3].set_pixel(3, 2, bird_color2)
  2852.     @bird_bitmaps[3].fill_rect(5, 2, 3, 1, bird_color8)
  2853.     @bird_bitmaps[3].set_pixel(8, 2, bird_color1)
  2854.     @bird_bitmaps[3].fill_rect(3, 3, 1, 2, bird_color3)
  2855.     @bird_bitmaps[3].set_pixel(4, 3, bird_color2)
  2856.     @bird_bitmaps[3].fill_rect(5, 3, 2, 2, bird_color8)
  2857.     @bird_bitmaps[3].set_pixel(7, 3, bird_color4)
  2858.     @bird_bitmaps[3].fill_rect(8, 3, 2, 1, bird_color8)
  2859.     @bird_bitmaps[3].fill_rect(10, 3, 2, 1, bird_color2)
  2860.     @bird_bitmaps[3].fill_rect(2, 4, 1, 2, bird_color3)
  2861.     @bird_bitmaps[3].fill_rect(4, 4, 1, 2, bird_color8)
  2862.     @bird_bitmaps[3].fill_rect(7, 4, 1, 2, bird_color8)
  2863.     @bird_bitmaps[3].set_pixel(8, 4, bird_color2)
  2864.     @bird_bitmaps[3].set_pixel(9, 4, bird_color1)
  2865.     @bird_bitmaps[3].set_pixel(10, 4, bird_color8)
  2866.     @bird_bitmaps[3].set_pixel(11, 4, bird_color4)
  2867.     @bird_bitmaps[3].set_pixel(0, 5, bird_color1)
  2868.     @bird_bitmaps[3].set_pixel(1, 5, bird_color2)
  2869.     @bird_bitmaps[3].fill_rect(3, 5, 1, 3, bird_color8)
  2870.     @bird_bitmaps[3].set_pixel(5, 5, bird_color5)
  2871.     @bird_bitmaps[3].fill_rect(6, 5, 1, 2, bird_color2)
  2872.     @bird_bitmaps[3].set_pixel(8, 5, bird_color6)
  2873.     @bird_bitmaps[3].set_pixel(9, 5, bird_color7)
  2874.     @bird_bitmaps[3].set_pixel(10, 5, bird_color2)
  2875.     @bird_bitmaps[3].set_pixel(11, 5, bird_color6)
  2876.     @bird_bitmaps[3].set_pixel(2, 6, bird_color8)
  2877.     @bird_bitmaps[3].fill_rect(4, 6, 2, 1, bird_color4)
  2878.     @bird_bitmaps[3].set_pixel(7, 6, bird_color1)
  2879.     @bird_bitmaps[3].set_pixel(1, 7, bird_color3)
  2880.     @bird_bitmaps[3].set_pixel(2, 7, bird_color5)
  2881.     @bird_bitmaps[3].set_pixel(4, 7, bird_color2)
  2882.     @bird_bitmaps[3].fill_rect(5, 7, 2, 1, bird_color1)
  2883.     @bird_bitmaps[3].set_pixel(0, 8, bird_color3)
  2884.     @bird_bitmaps[3].set_pixel(1, 8, bird_color8)
  2885.     @bird_bitmaps[3].fill_rect(2, 8, 2, 1, bird_color1)
  2886. #-------------------------------------------------------------------------------
  2887.     # Bat bitmaps
  2888.    
  2889.     @bat_bitmaps = []
  2890.     bat_color1 = Color.new(80, 62, 92)
  2891.     bat_color2 = Color.new(80, 80, 104)
  2892.     bat_color3 = Color.new(137, 137, 160)
  2893.     bat_color4 = Color.new(57, 57, 57)
  2894.     bat_color5 = Color.new(42, 42, 66)
  2895.     bat_color6 = Color.new(76, 67, 68)
  2896.     bat_color7 = Color.new(24, 24, 48)
  2897.     bat_color8 = Color.new(181, 156, 85)
  2898.     bat_color9 = Color.new(99, 99, 122)
  2899.     bat_color10 = Color.new(118, 118, 141)
  2900.     bat_color11 = Color.new(90, 90, 90)
  2901.     bat_color12 = Color.new(61, 61, 85)
  2902.     bat_color13 = Color.new(109, 91, 38)
  2903.     bat_color14 = Color.new(156, 156, 156)
  2904.     bat_color15 = Color.new(203, 179, 74)
  2905.     bat_color16 = Color.new(24, 24, 24)
  2906.     bat_color17 = Color.new(222, 222, 222)
  2907.     bat_color18 = Color.new(249, 226, 145)
  2908.  
  2909.     # Bat left 1
  2910.     @bat_bitmaps[0] = Bitmap.new(10, 8)
  2911.     @bat_bitmaps[0].fill_rect(1, 0, 3, 2, bat_color1)
  2912.     @bat_bitmaps[0].fill_rect(6, 0, 1, 4, bat_color2)
  2913.     @bat_bitmaps[0].set_pixel(7, 0, bat_color3)
  2914.     @bat_bitmaps[0].set_pixel(8, 0, bat_color4)
  2915.     @bat_bitmaps[0].set_pixel(9, 0, bat_color5)
  2916.     @bat_bitmaps[0].fill_rect(5, 1, 1, 3, bat_color2)
  2917.     @bat_bitmaps[0].fill_rect(7, 1, 2, 1, bat_color6)
  2918.     @bat_bitmaps[0].set_pixel(1, 2, bat_color3)
  2919.     @bat_bitmaps[0].set_pixel(2, 2, bat_color7)
  2920.     @bat_bitmaps[0].set_pixel(3, 2, bat_color5)
  2921.     @bat_bitmaps[0].set_pixel(4, 2, bat_color2)
  2922.     @bat_bitmaps[0].set_pixel(7, 2, bat_color6)
  2923.     @bat_bitmaps[0].set_pixel(0, 3, bat_color8)
  2924.     @bat_bitmaps[0].fill_rect(1, 3, 2, 1, bat_color9)
  2925.     @bat_bitmaps[0].set_pixel(3, 3, bat_color10)
  2926.     @bat_bitmaps[0].set_pixel(4, 3, bat_color1)
  2927.     @bat_bitmaps[0].set_pixel(7, 3, bat_color11)
  2928.     @bat_bitmaps[0].set_pixel(0, 4, bat_color12)
  2929.     @bat_bitmaps[0].fill_rect(1, 4, 2, 1, bat_color13)
  2930.     @bat_bitmaps[0].set_pixel(3, 4, bat_color9)
  2931.     @bat_bitmaps[0].fill_rect(4, 4, 2, 1, bat_color5)
  2932.     @bat_bitmaps[0].fill_rect(6, 4, 2, 1, bat_color4)
  2933.     @bat_bitmaps[0].set_pixel(0, 5, bat_color5)
  2934.     @bat_bitmaps[0].fill_rect(1, 5, 1, 2, bat_color12)
  2935.     @bat_bitmaps[0].fill_rect(2, 5, 1, 2, bat_color2)
  2936.     @bat_bitmaps[0].set_pixel(3, 5, bat_color12)
  2937.     @bat_bitmaps[0].fill_rect(4, 5, 1, 2, bat_color5)
  2938.     @bat_bitmaps[0].set_pixel(5, 5, bat_color4)
  2939.     @bat_bitmaps[0].set_pixel(6, 5, bat_color11)
  2940.     @bat_bitmaps[0].set_pixel(3, 6, bat_color9)
  2941.     @bat_bitmaps[0].set_pixel(5, 6, bat_color7)
  2942.     @bat_bitmaps[0].set_pixel(2, 7, bat_color5)
  2943.     @bat_bitmaps[0].fill_rect(3, 7, 2, 1, bat_color12)
  2944.     @bat_bitmaps[0].set_pixel(5, 7, bat_color5)
  2945.  
  2946.     # Bat left 2
  2947.     @bat_bitmaps[1] = Bitmap.new(9, 7)
  2948.     @bat_bitmaps[1].set_pixel(1, 0, bat_color10)
  2949.     @bat_bitmaps[1].fill_rect(2, 0, 2, 1, bat_color5)
  2950.     @bat_bitmaps[1].set_pixel(0, 1, bat_color13)
  2951.     @bat_bitmaps[1].set_pixel(1, 1, bat_color9)
  2952.     @bat_bitmaps[1].set_pixel(2, 1, bat_color2)
  2953.     @bat_bitmaps[1].set_pixel(3, 1, bat_color9)
  2954.     @bat_bitmaps[1].set_pixel(0, 2, bat_color14)
  2955.     @bat_bitmaps[1].set_pixel(1, 2, bat_color8)
  2956.     @bat_bitmaps[1].set_pixel(2, 2, bat_color15)
  2957.     @bat_bitmaps[1].fill_rect(3, 2, 2, 1, bat_color12)
  2958.     @bat_bitmaps[1].set_pixel(0, 3, bat_color5)
  2959.     @bat_bitmaps[1].set_pixel(1, 3, bat_color12)
  2960.     @bat_bitmaps[1].set_pixel(2, 3, bat_color9)
  2961.     @bat_bitmaps[1].fill_rect(3, 3, 1, 2, bat_color2)
  2962.     @bat_bitmaps[1].fill_rect(4, 3, 1, 2, bat_color5)
  2963.     @bat_bitmaps[1].set_pixel(5, 3, bat_color10)
  2964.     @bat_bitmaps[1].set_pixel(6, 3, bat_color2)
  2965.     @bat_bitmaps[1].set_pixel(1, 4, bat_color5)
  2966.     @bat_bitmaps[1].set_pixel(2, 4, bat_color2)
  2967.     @bat_bitmaps[1].fill_rect(5, 4, 1, 2, bat_color7)
  2968.     @bat_bitmaps[1].set_pixel(6, 4, bat_color9)
  2969.     @bat_bitmaps[1].set_pixel(7, 4, bat_color2)
  2970.     @bat_bitmaps[1].set_pixel(3, 5, bat_color5)
  2971.     @bat_bitmaps[1].set_pixel(4, 5, bat_color12)
  2972.     @bat_bitmaps[1].set_pixel(6, 5, bat_color10)
  2973.     @bat_bitmaps[1].set_pixel(7, 5, bat_color9)
  2974.     @bat_bitmaps[1].set_pixel(8, 5, bat_color2)
  2975.     @bat_bitmaps[1].set_pixel(8, 6, bat_color7)
  2976.  
  2977.     # Bat left 3
  2978.     @bat_bitmaps[2] = Bitmap.new(6, 11)
  2979.     @bat_bitmaps[2].set_pixel(1, 0, bat_color5)
  2980.     @bat_bitmaps[2].set_pixel(0, 1, bat_color13)
  2981.     @bat_bitmaps[2].set_pixel(1, 1, bat_color9)
  2982.     @bat_bitmaps[2].fill_rect(2, 1, 2, 1, bat_color10)
  2983.     @bat_bitmaps[2].set_pixel(0, 2, bat_color12)
  2984.     @bat_bitmaps[2].fill_rect(1, 2, 2, 2, bat_color13)
  2985.     @bat_bitmaps[2].set_pixel(3, 2, bat_color9)
  2986.     @bat_bitmaps[2].set_pixel(0, 3, bat_color7)
  2987.     @bat_bitmaps[2].fill_rect(3, 3, 2, 1, bat_color5)
  2988.     @bat_bitmaps[2].fill_rect(0, 4, 1, 4, bat_color1)
  2989.     @bat_bitmaps[2].set_pixel(1, 4, bat_color2)
  2990.     @bat_bitmaps[2].set_pixel(2, 4, bat_color9)
  2991.     @bat_bitmaps[2].set_pixel(3, 4, bat_color12)
  2992.     @bat_bitmaps[2].set_pixel(4, 4, bat_color2)
  2993.     @bat_bitmaps[2].set_pixel(5, 4, bat_color5)
  2994.     @bat_bitmaps[2].fill_rect(1, 5, 1, 2, bat_color1)
  2995.     @bat_bitmaps[2].set_pixel(2, 5, bat_color12)
  2996.     @bat_bitmaps[2].set_pixel(3, 5, bat_color5)
  2997.     @bat_bitmaps[2].fill_rect(4, 5, 1, 4, bat_color9)
  2998.     @bat_bitmaps[2].fill_rect(5, 5, 1, 2, bat_color2)
  2999.     @bat_bitmaps[2].set_pixel(3, 6, bat_color12)
  3000.     @bat_bitmaps[2].set_pixel(2, 7, bat_color12)
  3001.     @bat_bitmaps[2].set_pixel(3, 7, bat_color10)
  3002.     @bat_bitmaps[2].set_pixel(5, 7, bat_color9)
  3003.     @bat_bitmaps[2].set_pixel(3, 8, bat_color12)
  3004.     @bat_bitmaps[2].set_pixel(5, 8, bat_color12)
  3005.     @bat_bitmaps[2].fill_rect(4, 9, 2, 1, bat_color2)
  3006.     @bat_bitmaps[2].set_pixel(5, 10, bat_color12)
  3007.  
  3008.     # Bat left 4
  3009.     @bat_bitmaps[3] = Bitmap.new(9, 7)
  3010.     @bat_bitmaps[3].set_pixel(1, 0, bat_color10)
  3011.     @bat_bitmaps[3].fill_rect(2, 0, 2, 1, bat_color5)
  3012.     @bat_bitmaps[3].set_pixel(0, 1, bat_color13)
  3013.     @bat_bitmaps[3].set_pixel(1, 1, bat_color9)
  3014.     @bat_bitmaps[3].set_pixel(2, 1, bat_color2)
  3015.     @bat_bitmaps[3].set_pixel(3, 1, bat_color9)
  3016.     @bat_bitmaps[3].set_pixel(0, 2, bat_color14)
  3017.     @bat_bitmaps[3].set_pixel(1, 2, bat_color8)
  3018.     @bat_bitmaps[3].set_pixel(2, 2, bat_color15)
  3019.     @bat_bitmaps[3].fill_rect(3, 2, 2, 1, bat_color12)
  3020.     @bat_bitmaps[3].set_pixel(0, 3, bat_color5)
  3021.     @bat_bitmaps[3].set_pixel(1, 3, bat_color12)
  3022.     @bat_bitmaps[3].set_pixel(2, 3, bat_color9)
  3023.     @bat_bitmaps[3].fill_rect(3, 3, 1, 2, bat_color2)
  3024.     @bat_bitmaps[3].fill_rect(4, 3, 1, 2, bat_color5)
  3025.     @bat_bitmaps[3].set_pixel(5, 3, bat_color10)
  3026.     @bat_bitmaps[3].set_pixel(6, 3, bat_color2)
  3027.     @bat_bitmaps[3].set_pixel(1, 4, bat_color5)
  3028.     @bat_bitmaps[3].set_pixel(2, 4, bat_color2)
  3029.     @bat_bitmaps[3].fill_rect(5, 4, 1, 2, bat_color7)
  3030.     @bat_bitmaps[3].set_pixel(6, 4, bat_color9)
  3031.     @bat_bitmaps[3].set_pixel(7, 4, bat_color2)
  3032.     @bat_bitmaps[3].set_pixel(3, 5, bat_color5)
  3033.     @bat_bitmaps[3].set_pixel(4, 5, bat_color12)
  3034.     @bat_bitmaps[3].set_pixel(6, 5, bat_color10)
  3035.     @bat_bitmaps[3].set_pixel(7, 5, bat_color9)
  3036.     @bat_bitmaps[3].set_pixel(8, 5, bat_color2)
  3037.     @bat_bitmaps[3].set_pixel(8, 6, bat_color7)
  3038.  
  3039.     # Bat up 1
  3040.     @bat_bitmaps[4] = Bitmap.new(11, 9)
  3041.     @bat_bitmaps[4].set_pixel(0, 0, bat_color9)
  3042.     @bat_bitmaps[4].set_pixel(1, 0, bat_color3)
  3043.     @bat_bitmaps[4].set_pixel(8, 0, bat_color2)
  3044.     @bat_bitmaps[4].set_pixel(9, 0, bat_color10)
  3045.     @bat_bitmaps[4].set_pixel(10, 0, bat_color4)
  3046.     @bat_bitmaps[4].set_pixel(0, 1, bat_color4)
  3047.     @bat_bitmaps[4].fill_rect(1, 1, 1, 2, bat_color9)
  3048.     @bat_bitmaps[4].set_pixel(2, 1, bat_color2)
  3049.     @bat_bitmaps[4].set_pixel(3, 1, bat_color9)
  3050.     @bat_bitmaps[4].set_pixel(7, 1, bat_color2)
  3051.     @bat_bitmaps[4].fill_rect(8, 1, 2, 1, bat_color9)
  3052.     @bat_bitmaps[4].fill_rect(2, 2, 1, 2, bat_color9)
  3053.     @bat_bitmaps[4].fill_rect(4, 2, 1, 2, bat_color10)
  3054.     @bat_bitmaps[4].fill_rect(5, 2, 1, 6, bat_color9)
  3055.     @bat_bitmaps[4].set_pixel(6, 2, bat_color10)
  3056.     @bat_bitmaps[4].set_pixel(7, 2, bat_color7)
  3057.     @bat_bitmaps[4].set_pixel(8, 2, bat_color9)
  3058.     @bat_bitmaps[4].set_pixel(9, 2, bat_color2)
  3059.     @bat_bitmaps[4].set_pixel(1, 3, bat_color2)
  3060.     @bat_bitmaps[4].set_pixel(3, 3, bat_color7)
  3061.     @bat_bitmaps[4].fill_rect(6, 3, 1, 2, bat_color9)
  3062.     @bat_bitmaps[4].set_pixel(7, 3, bat_color12)
  3063.     @bat_bitmaps[4].set_pixel(8, 3, bat_color2)
  3064.     @bat_bitmaps[4].set_pixel(9, 3, bat_color12)
  3065.     @bat_bitmaps[4].set_pixel(1, 4, bat_color12)
  3066.     @bat_bitmaps[4].fill_rect(2, 4, 1, 2, bat_color2)
  3067.     @bat_bitmaps[4].set_pixel(3, 4, bat_color12)
  3068.     @bat_bitmaps[4].fill_rect(4, 4, 1, 3, bat_color9)
  3069.     @bat_bitmaps[4].fill_rect(7, 4, 2, 1, bat_color9)
  3070.     @bat_bitmaps[4].set_pixel(9, 4, bat_color16)
  3071.     @bat_bitmaps[4].set_pixel(3, 5, bat_color2)
  3072.     @bat_bitmaps[4].fill_rect(6, 5, 2, 1, bat_color2)
  3073.     @bat_bitmaps[4].set_pixel(8, 5, bat_color16)
  3074.     @bat_bitmaps[4].set_pixel(2, 6, bat_color16)
  3075.     @bat_bitmaps[4].fill_rect(3, 6, 1, 2, bat_color12)
  3076.     @bat_bitmaps[4].fill_rect(6, 6, 1, 2, bat_color9)
  3077.     @bat_bitmaps[4].set_pixel(7, 6, bat_color12)
  3078.     @bat_bitmaps[4].set_pixel(4, 7, bat_color2)
  3079.     @bat_bitmaps[4].set_pixel(7, 7, bat_color7)
  3080.     @bat_bitmaps[4].set_pixel(3, 8, bat_color7)
  3081.     @bat_bitmaps[4].set_pixel(4, 8, bat_color16)
  3082.     @bat_bitmaps[4].fill_rect(5, 8, 2, 1, bat_color12)
  3083.  
  3084.     # Bat up 2
  3085.     @bat_bitmaps[5] = Bitmap.new(12, 9)
  3086.     @bat_bitmaps[5].fill_rect(5, 0, 1, 5, bat_color9)
  3087.     @bat_bitmaps[5].set_pixel(6, 0, bat_color12)
  3088.     @bat_bitmaps[5].set_pixel(7, 0, bat_color10)
  3089.     @bat_bitmaps[5].set_pixel(6, 1, bat_color10)
  3090.     @bat_bitmaps[5].fill_rect(7, 1, 1, 5, bat_color9)
  3091.     @bat_bitmaps[5].set_pixel(4, 2, bat_color7)
  3092.     @bat_bitmaps[5].fill_rect(6, 2, 1, 4, bat_color9)
  3093.     @bat_bitmaps[5].set_pixel(4, 3, bat_color12)
  3094.     @bat_bitmaps[5].fill_rect(8, 3, 2, 1, bat_color12)
  3095.     @bat_bitmaps[5].set_pixel(2, 4, bat_color2)
  3096.     @bat_bitmaps[5].fill_rect(3, 4, 2, 1, bat_color9)
  3097.     @bat_bitmaps[5].set_pixel(8, 4, bat_color9)
  3098.     @bat_bitmaps[5].set_pixel(9, 4, bat_color2)
  3099.     @bat_bitmaps[5].set_pixel(10, 4, bat_color12)
  3100.     @bat_bitmaps[5].set_pixel(1, 5, bat_color12)
  3101.     @bat_bitmaps[5].fill_rect(2, 5, 1, 2, bat_color9)
  3102.     @bat_bitmaps[5].fill_rect(3, 5, 1, 2, bat_color2)
  3103.     @bat_bitmaps[5].set_pixel(4, 5, bat_color9)
  3104.     @bat_bitmaps[5].set_pixel(5, 5, bat_color2)
  3105.     @bat_bitmaps[5].set_pixel(8, 5, bat_color2)
  3106.     @bat_bitmaps[5].fill_rect(9, 5, 1, 2, bat_color9)
  3107.     @bat_bitmaps[5].set_pixel(10, 5, bat_color2)
  3108.     @bat_bitmaps[5].fill_rect(1, 6, 1, 2, bat_color2)
  3109.     @bat_bitmaps[5].set_pixel(4, 6, bat_color7)
  3110.     @bat_bitmaps[5].set_pixel(5, 6, bat_color16)
  3111.     @bat_bitmaps[5].set_pixel(6, 6, bat_color2)
  3112.     @bat_bitmaps[5].fill_rect(7, 6, 2, 1, bat_color12)
  3113.     @bat_bitmaps[5].set_pixel(10, 6, bat_color9)
  3114.     @bat_bitmaps[5].set_pixel(11, 6, bat_color7)
  3115.     @bat_bitmaps[5].fill_rect(0, 7, 1, 2, bat_color7)
  3116.     @bat_bitmaps[5].set_pixel(10, 7, bat_color7)
  3117.     @bat_bitmaps[5].set_pixel(11, 7, bat_color2)
  3118.  
  3119.     # Bat up 3
  3120.     @bat_bitmaps[6] = Bitmap.new(9, 11)
  3121.     @bat_bitmaps[6].set_pixel(3, 0, bat_color12)
  3122.     @bat_bitmaps[6].set_pixel(5, 0, bat_color12)
  3123.     @bat_bitmaps[6].fill_rect(3, 1, 1, 2, bat_color10)
  3124.     @bat_bitmaps[6].fill_rect(4, 1, 1, 5, bat_color9)
  3125.     @bat_bitmaps[6].set_pixel(5, 1, bat_color10)
  3126.     @bat_bitmaps[6].set_pixel(2, 2, bat_color7)
  3127.     @bat_bitmaps[6].fill_rect(5, 2, 1, 3, bat_color9)
  3128.     @bat_bitmaps[6].set_pixel(2, 3, bat_color2)
  3129.     @bat_bitmaps[6].fill_rect(3, 3, 1, 3, bat_color9)
  3130.     @bat_bitmaps[6].set_pixel(6, 3, bat_color12)
  3131.     @bat_bitmaps[6].set_pixel(1, 4, bat_color12)
  3132.     @bat_bitmaps[6].fill_rect(2, 4, 1, 2, bat_color9)
  3133.     @bat_bitmaps[6].set_pixel(6, 4, bat_color2)
  3134.     @bat_bitmaps[6].set_pixel(1, 5, bat_color2)
  3135.     @bat_bitmaps[6].fill_rect(5, 5, 1, 2, bat_color2)
  3136.     @bat_bitmaps[6].set_pixel(6, 5, bat_color9)
  3137.     @bat_bitmaps[6].set_pixel(7, 5, bat_color2)
  3138.     @bat_bitmaps[6].set_pixel(0, 6, bat_color12)
  3139.     @bat_bitmaps[6].fill_rect(1, 6, 1, 2, bat_color9)
  3140.     @bat_bitmaps[6].fill_rect(2, 6, 1, 2, bat_color7)
  3141.     @bat_bitmaps[6].set_pixel(3, 6, bat_color12)
  3142.     @bat_bitmaps[6].set_pixel(4, 6, bat_color2)
  3143.     @bat_bitmaps[6].set_pixel(6, 6, bat_color2)
  3144.     @bat_bitmaps[6].fill_rect(7, 6, 1, 2, bat_color9)
  3145.     @bat_bitmaps[6].set_pixel(0, 7, bat_color2)
  3146.     @bat_bitmaps[6].set_pixel(3, 7, bat_color16)
  3147.     @bat_bitmaps[6].fill_rect(4, 7, 3, 1, bat_color12)
  3148.     @bat_bitmaps[6].set_pixel(8, 7, bat_color7)
  3149.     @bat_bitmaps[6].set_pixel(0, 8, bat_color9)
  3150.     @bat_bitmaps[6].set_pixel(7, 8, bat_color2)
  3151.     @bat_bitmaps[6].fill_rect(8, 8, 1, 3, bat_color12)
  3152.     @bat_bitmaps[6].set_pixel(0, 9, bat_color12)
  3153.     @bat_bitmaps[6].set_pixel(7, 9, bat_color7)
  3154.     @bat_bitmaps[6].set_pixel(0, 10, bat_color7)
  3155.  
  3156.     # Bat up 4
  3157.     @bat_bitmaps[7] = Bitmap.new(12, 8)
  3158.     @bat_bitmaps[7].fill_rect(5, 0, 1, 5, bat_color9)
  3159.     @bat_bitmaps[7].set_pixel(6, 0, bat_color12)
  3160.     @bat_bitmaps[7].set_pixel(7, 0, bat_color10)
  3161.     @bat_bitmaps[7].set_pixel(6, 1, bat_color10)
  3162.     @bat_bitmaps[7].fill_rect(7, 1, 1, 4, bat_color9)
  3163.     @bat_bitmaps[7].set_pixel(2, 2, bat_color12)
  3164.     @bat_bitmaps[7].set_pixel(4, 2, bat_color7)
  3165.     @bat_bitmaps[7].fill_rect(6, 2, 1, 4, bat_color9)
  3166.     @bat_bitmaps[7].fill_rect(9, 2, 1, 2, bat_color2)
  3167.     @bat_bitmaps[7].fill_rect(2, 3, 1, 2, bat_color9)
  3168.     @bat_bitmaps[7].set_pixel(3, 3, bat_color7)
  3169.     @bat_bitmaps[7].set_pixel(4, 3, bat_color12)
  3170.     @bat_bitmaps[7].set_pixel(8, 3, bat_color12)
  3171.     @bat_bitmaps[7].fill_rect(10, 3, 1, 3, bat_color2)
  3172.     @bat_bitmaps[7].set_pixel(1, 4, bat_color12)
  3173.     @bat_bitmaps[7].fill_rect(3, 4, 2, 1, bat_color9)
  3174.     @bat_bitmaps[7].fill_rect(8, 4, 2, 1, bat_color9)
  3175.     @bat_bitmaps[7].set_pixel(1, 5, bat_color9)
  3176.     @bat_bitmaps[7].fill_rect(2, 5, 3, 1, bat_color12)
  3177.     @bat_bitmaps[7].set_pixel(5, 5, bat_color2)
  3178.     @bat_bitmaps[7].fill_rect(7, 5, 2, 1, bat_color2)
  3179.     @bat_bitmaps[7].set_pixel(9, 5, bat_color12)
  3180.     @bat_bitmaps[7].set_pixel(11, 5, bat_color12)
  3181.     @bat_bitmaps[7].set_pixel(0, 6, bat_color12)
  3182.     @bat_bitmaps[7].set_pixel(1, 6, bat_color2)
  3183.     @bat_bitmaps[7].set_pixel(4, 6, bat_color7)
  3184.     @bat_bitmaps[7].set_pixel(5, 6, bat_color16)
  3185.     @bat_bitmaps[7].set_pixel(6, 6, bat_color2)
  3186.     @bat_bitmaps[7].set_pixel(7, 6, bat_color12)
  3187.     @bat_bitmaps[7].set_pixel(8, 6, bat_color7)
  3188.     @bat_bitmaps[7].set_pixel(10, 6, bat_color7)
  3189.     @bat_bitmaps[7].set_pixel(11, 6, bat_color2)
  3190.     @bat_bitmaps[7].set_pixel(0, 7, bat_color7)
  3191.  
  3192.     # Bat right 1
  3193.     @bat_bitmaps[8] = Bitmap.new(10, 8)
  3194.     @bat_bitmaps[8].set_pixel(0, 0, bat_color5)
  3195.     @bat_bitmaps[8].set_pixel(1, 0, bat_color4)
  3196.     @bat_bitmaps[8].set_pixel(2, 0, bat_color3)
  3197.     @bat_bitmaps[8].fill_rect(3, 0, 1, 4, bat_color2)
  3198.     @bat_bitmaps[8].fill_rect(6, 0, 3, 2, bat_color1)
  3199.     @bat_bitmaps[8].set_pixel(1, 1, bat_color6)
  3200.     @bat_bitmaps[8].set_pixel(2, 1, bat_color4)
  3201.     @bat_bitmaps[8].fill_rect(4, 1, 1, 3, bat_color2)
  3202.     @bat_bitmaps[8].set_pixel(5, 1, bat_color1)
  3203.     @bat_bitmaps[8].set_pixel(2, 2, bat_color6)
  3204.     @bat_bitmaps[8].set_pixel(5, 2, bat_color10)
  3205.     @bat_bitmaps[8].set_pixel(6, 2, bat_color5)
  3206.     @bat_bitmaps[8].set_pixel(7, 2, bat_color7)
  3207.     @bat_bitmaps[8].set_pixel(8, 2, bat_color12)
  3208.     @bat_bitmaps[8].set_pixel(2, 3, bat_color11)
  3209.     @bat_bitmaps[8].set_pixel(5, 3, bat_color1)
  3210.     @bat_bitmaps[8].set_pixel(6, 3, bat_color10)
  3211.     @bat_bitmaps[8].fill_rect(7, 3, 2, 1, bat_color9)
  3212.     @bat_bitmaps[8].set_pixel(9, 3, bat_color8)
  3213.     @bat_bitmaps[8].set_pixel(2, 4, bat_color2)
  3214.     @bat_bitmaps[8].set_pixel(3, 4, bat_color4)
  3215.     @bat_bitmaps[8].set_pixel(4, 4, bat_color5)
  3216.     @bat_bitmaps[8].set_pixel(5, 4, bat_color7)
  3217.     @bat_bitmaps[8].set_pixel(6, 4, bat_color9)
  3218.     @bat_bitmaps[8].set_pixel(7, 4, bat_color13)
  3219.     @bat_bitmaps[8].fill_rect(8, 4, 2, 1, bat_color12)
  3220.     @bat_bitmaps[8].set_pixel(2, 5, bat_color4)
  3221.     @bat_bitmaps[8].set_pixel(3, 5, bat_color11)
  3222.     @bat_bitmaps[8].set_pixel(4, 5, bat_color4)
  3223.     @bat_bitmaps[8].fill_rect(5, 5, 2, 1, bat_color12)
  3224.     @bat_bitmaps[8].fill_rect(7, 5, 1, 2, bat_color2)
  3225.     @bat_bitmaps[8].set_pixel(8, 5, bat_color7)
  3226.     @bat_bitmaps[8].set_pixel(9, 5, bat_color5)
  3227.     @bat_bitmaps[8].set_pixel(4, 6, bat_color7)
  3228.     @bat_bitmaps[8].fill_rect(5, 6, 1, 2, bat_color5)
  3229.     @bat_bitmaps[8].set_pixel(6, 6, bat_color9)
  3230.     @bat_bitmaps[8].set_pixel(8, 6, bat_color5)
  3231.     @bat_bitmaps[8].set_pixel(4, 7, bat_color5)
  3232.     @bat_bitmaps[8].set_pixel(6, 7, bat_color12)
  3233.     @bat_bitmaps[8].set_pixel(7, 7, bat_color5)
  3234.  
  3235.     # Bat right 2
  3236.     @bat_bitmaps[9] = Bitmap.new(9, 7)
  3237.     @bat_bitmaps[9].fill_rect(5, 0, 3, 1, bat_color5)
  3238.     @bat_bitmaps[9].set_pixel(4, 1, bat_color5)
  3239.     @bat_bitmaps[9].set_pixel(5, 1, bat_color9)
  3240.     @bat_bitmaps[9].fill_rect(6, 1, 2, 1, bat_color2)
  3241.     @bat_bitmaps[9].set_pixel(8, 1, bat_color13)
  3242.     @bat_bitmaps[9].set_pixel(4, 2, bat_color7)
  3243.     @bat_bitmaps[9].set_pixel(5, 2, bat_color12)
  3244.     @bat_bitmaps[9].set_pixel(6, 2, bat_color15)
  3245.     @bat_bitmaps[9].fill_rect(7, 2, 1, 2, bat_color12)
  3246.     @bat_bitmaps[9].set_pixel(8, 2, bat_color14)
  3247.     @bat_bitmaps[9].set_pixel(2, 3, bat_color2)
  3248.     @bat_bitmaps[9].set_pixel(3, 3, bat_color10)
  3249.     @bat_bitmaps[9].set_pixel(4, 3, bat_color5)
  3250.     @bat_bitmaps[9].fill_rect(5, 3, 1, 2, bat_color2)
  3251.     @bat_bitmaps[9].set_pixel(6, 3, bat_color9)
  3252.     @bat_bitmaps[9].set_pixel(8, 3, bat_color5)
  3253.     @bat_bitmaps[9].set_pixel(1, 4, bat_color2)
  3254.     @bat_bitmaps[9].set_pixel(2, 4, bat_color9)
  3255.     @bat_bitmaps[9].fill_rect(3, 4, 1, 2, bat_color7)
  3256.     @bat_bitmaps[9].set_pixel(4, 4, bat_color12)
  3257.     @bat_bitmaps[9].set_pixel(6, 4, bat_color2)
  3258.     @bat_bitmaps[9].set_pixel(0, 5, bat_color2)
  3259.     @bat_bitmaps[9].fill_rect(1, 5, 2, 1, bat_color10)
  3260.     @bat_bitmaps[9].set_pixel(4, 5, bat_color7)
  3261.     @bat_bitmaps[9].set_pixel(5, 5, bat_color5)
  3262.     @bat_bitmaps[9].set_pixel(0, 6, bat_color7)
  3263.  
  3264.     # Bat right 3
  3265.     @bat_bitmaps[10] = Bitmap.new(6, 11)
  3266.     @bat_bitmaps[10].set_pixel(4, 0, bat_color10)
  3267.     @bat_bitmaps[10].fill_rect(2, 1, 2, 1, bat_color10)
  3268.     @bat_bitmaps[10].set_pixel(4, 1, bat_color9)
  3269.     @bat_bitmaps[10].set_pixel(5, 1, bat_color13)
  3270.     @bat_bitmaps[10].set_pixel(1, 2, bat_color5)
  3271.     @bat_bitmaps[10].set_pixel(2, 2, bat_color9)
  3272.     @bat_bitmaps[10].fill_rect(3, 2, 1, 2, bat_color13)
  3273.     @bat_bitmaps[10].fill_rect(4, 2, 2, 1, bat_color12)
  3274.     @bat_bitmaps[10].set_pixel(1, 3, bat_color2)
  3275.     @bat_bitmaps[10].set_pixel(2, 3, bat_color5)
  3276.     @bat_bitmaps[10].set_pixel(4, 3, bat_color17)
  3277.     @bat_bitmaps[10].set_pixel(5, 3, bat_color7)
  3278.     @bat_bitmaps[10].set_pixel(0, 4, bat_color5)
  3279.     @bat_bitmaps[10].set_pixel(1, 4, bat_color9)
  3280.     @bat_bitmaps[10].set_pixel(2, 4, bat_color12)
  3281.     @bat_bitmaps[10].set_pixel(3, 4, bat_color9)
  3282.     @bat_bitmaps[10].set_pixel(4, 4, bat_color5)
  3283.     @bat_bitmaps[10].fill_rect(5, 4, 1, 4, bat_color1)
  3284.     @bat_bitmaps[10].fill_rect(0, 5, 1, 2, bat_color2)
  3285.     @bat_bitmaps[10].fill_rect(1, 5, 1, 2, bat_color10)
  3286.     @bat_bitmaps[10].set_pixel(2, 5, bat_color5)
  3287.     @bat_bitmaps[10].set_pixel(3, 5, bat_color12)
  3288.     @bat_bitmaps[10].fill_rect(4, 5, 1, 3, bat_color1)
  3289.     @bat_bitmaps[10].set_pixel(2, 6, bat_color12)
  3290.     @bat_bitmaps[10].fill_rect(0, 7, 2, 1, bat_color9)
  3291.     @bat_bitmaps[10].set_pixel(2, 7, bat_color10)
  3292.     @bat_bitmaps[10].set_pixel(3, 7, bat_color12)
  3293.     @bat_bitmaps[10].set_pixel(0, 8, bat_color12)
  3294.     @bat_bitmaps[10].set_pixel(1, 8, bat_color10)
  3295.     @bat_bitmaps[10].set_pixel(2, 8, bat_color12)
  3296.     @bat_bitmaps[10].set_pixel(0, 9, bat_color2)
  3297.     @bat_bitmaps[10].set_pixel(1, 9, bat_color12)
  3298.     @bat_bitmaps[10].set_pixel(0, 10, bat_color12)
  3299.  
  3300.     # Bat right 4
  3301.     @bat_bitmaps[11] = Bitmap.new(9, 7)
  3302.     @bat_bitmaps[11].fill_rect(5, 0, 3, 1, bat_color5)
  3303.     @bat_bitmaps[11].set_pixel(4, 1, bat_color5)
  3304.     @bat_bitmaps[11].set_pixel(5, 1, bat_color9)
  3305.     @bat_bitmaps[11].fill_rect(6, 1, 2, 1, bat_color2)
  3306.     @bat_bitmaps[11].set_pixel(8, 1, bat_color13)
  3307.     @bat_bitmaps[11].set_pixel(4, 2, bat_color7)
  3308.     @bat_bitmaps[11].set_pixel(5, 2, bat_color12)
  3309.     @bat_bitmaps[11].set_pixel(6, 2, bat_color15)
  3310.     @bat_bitmaps[11].fill_rect(7, 2, 1, 2, bat_color12)
  3311.     @bat_bitmaps[11].set_pixel(8, 2, bat_color14)
  3312.     @bat_bitmaps[11].set_pixel(2, 3, bat_color2)
  3313.     @bat_bitmaps[11].set_pixel(3, 3, bat_color10)
  3314.     @bat_bitmaps[11].set_pixel(4, 3, bat_color5)
  3315.     @bat_bitmaps[11].fill_rect(5, 3, 1, 2, bat_color2)
  3316.     @bat_bitmaps[11].set_pixel(6, 3, bat_color9)
  3317.     @bat_bitmaps[11].set_pixel(8, 3, bat_color5)
  3318.     @bat_bitmaps[11].set_pixel(1, 4, bat_color2)
  3319.     @bat_bitmaps[11].set_pixel(2, 4, bat_color9)
  3320.     @bat_bitmaps[11].fill_rect(3, 4, 1, 2, bat_color7)
  3321.     @bat_bitmaps[11].set_pixel(4, 4, bat_color12)
  3322.     @bat_bitmaps[11].set_pixel(6, 4, bat_color2)
  3323.     @bat_bitmaps[11].set_pixel(0, 5, bat_color2)
  3324.     @bat_bitmaps[11].fill_rect(1, 5, 2, 1, bat_color10)
  3325.     @bat_bitmaps[11].set_pixel(4, 5, bat_color7)
  3326.     @bat_bitmaps[11].set_pixel(5, 5, bat_color5)
  3327.     @bat_bitmaps[11].set_pixel(0, 6, bat_color7)
  3328.  
  3329.     # Bat down 1
  3330.     @bat_bitmaps[12] = Bitmap.new(11, 9)
  3331.     @bat_bitmaps[12].set_pixel(0, 0, bat_color12)
  3332.     @bat_bitmaps[12].set_pixel(1, 0, bat_color3)
  3333.     @bat_bitmaps[12].set_pixel(8, 0, bat_color9)
  3334.     @bat_bitmaps[12].set_pixel(9, 0, bat_color10)
  3335.     @bat_bitmaps[12].set_pixel(10, 0, bat_color4)
  3336.     @bat_bitmaps[12].fill_rect(0, 1, 2, 1, bat_color4)
  3337.     @bat_bitmaps[12].fill_rect(2, 1, 2, 1, bat_color9)
  3338.     @bat_bitmaps[12].set_pixel(7, 1, bat_color2)
  3339.     @bat_bitmaps[12].set_pixel(8, 1, bat_color12)
  3340.     @bat_bitmaps[12].set_pixel(9, 1, bat_color6)
  3341.     @bat_bitmaps[12].set_pixel(1, 2, bat_color5)
  3342.     @bat_bitmaps[12].set_pixel(2, 2, bat_color9)
  3343.     @bat_bitmaps[12].set_pixel(4, 2, bat_color2)
  3344.     @bat_bitmaps[12].set_pixel(5, 2, bat_color10)
  3345.     @bat_bitmaps[12].set_pixel(6, 2, bat_color5)
  3346.     @bat_bitmaps[12].set_pixel(7, 2, bat_color7)
  3347.     @bat_bitmaps[12].set_pixel(8, 2, bat_color5)
  3348.     @bat_bitmaps[12].set_pixel(9, 2, bat_color2)
  3349.     @bat_bitmaps[12].set_pixel(1, 3, bat_color11)
  3350.     @bat_bitmaps[12].fill_rect(2, 3, 2, 1, bat_color7)
  3351.     @bat_bitmaps[12].set_pixel(4, 3, bat_color13)
  3352.     @bat_bitmaps[12].set_pixel(5, 3, bat_color9)
  3353.     @bat_bitmaps[12].set_pixel(6, 3, bat_color13)
  3354.     @bat_bitmaps[12].set_pixel(7, 3, bat_color2)
  3355.     @bat_bitmaps[12].set_pixel(8, 3, bat_color6)
  3356.     @bat_bitmaps[12].set_pixel(9, 3, bat_color4)
  3357.     @bat_bitmaps[12].set_pixel(1, 4, bat_color2)
  3358.     @bat_bitmaps[12].set_pixel(2, 4, bat_color4)
  3359.     @bat_bitmaps[12].set_pixel(3, 4, bat_color12)
  3360.     @bat_bitmaps[12].set_pixel(4, 4, bat_color15)
  3361.     @bat_bitmaps[12].fill_rect(5, 4, 1, 2, bat_color12)
  3362.     @bat_bitmaps[12].set_pixel(6, 4, bat_color8)
  3363.     @bat_bitmaps[12].fill_rect(7, 4, 2, 1, bat_color5)
  3364.     @bat_bitmaps[12].set_pixel(9, 4, bat_color16)
  3365.     @bat_bitmaps[12].set_pixel(2, 5, bat_color6)
  3366.     @bat_bitmaps[12].fill_rect(3, 5, 1, 2, bat_color7)
  3367.     @bat_bitmaps[12].set_pixel(4, 5, bat_color2)
  3368.     @bat_bitmaps[12].fill_rect(6, 5, 1, 2, bat_color12)
  3369.     @bat_bitmaps[12].set_pixel(7, 5, bat_color4)
  3370.     @bat_bitmaps[12].set_pixel(8, 5, bat_color16)
  3371.     @bat_bitmaps[12].set_pixel(2, 6, bat_color16)
  3372.     @bat_bitmaps[12].set_pixel(4, 6, bat_color9)
  3373.     @bat_bitmaps[12].set_pixel(5, 6, bat_color2)
  3374.     @bat_bitmaps[12].fill_rect(7, 6, 1, 2, bat_color7)
  3375.     @bat_bitmaps[12].set_pixel(3, 7, bat_color12)
  3376.     @bat_bitmaps[12].set_pixel(4, 7, bat_color7)
  3377.     @bat_bitmaps[12].fill_rect(5, 7, 2, 1, bat_color5)
  3378.     @bat_bitmaps[12].set_pixel(5, 8, bat_color4)
  3379.  
  3380.     # Bat down 2
  3381.     @bat_bitmaps[13] = Bitmap.new(12, 7)
  3382.     @bat_bitmaps[13].set_pixel(5, 0, bat_color10)
  3383.     @bat_bitmaps[13].set_pixel(6, 0, bat_color12)
  3384.     @bat_bitmaps[13].set_pixel(7, 0, bat_color10)
  3385.     @bat_bitmaps[13].set_pixel(4, 1, bat_color7)
  3386.     @bat_bitmaps[13].set_pixel(5, 1, bat_color9)
  3387.     @bat_bitmaps[13].set_pixel(6, 1, bat_color10)
  3388.     @bat_bitmaps[13].set_pixel(7, 1, bat_color2)
  3389.     @bat_bitmaps[13].fill_rect(3, 2, 2, 1, bat_color12)
  3390.     @bat_bitmaps[13].set_pixel(5, 2, bat_color15)
  3391.     @bat_bitmaps[13].set_pixel(6, 2, bat_color12)
  3392.     @bat_bitmaps[13].set_pixel(7, 2, bat_color8)
  3393.     @bat_bitmaps[13].set_pixel(8, 2, bat_color12)
  3394.     @bat_bitmaps[13].set_pixel(2, 3, bat_color2)
  3395.     @bat_bitmaps[13].set_pixel(3, 3, bat_color9)
  3396.     @bat_bitmaps[13].set_pixel(4, 3, bat_color5)
  3397.     @bat_bitmaps[13].set_pixel(5, 3, bat_color7)
  3398.     @bat_bitmaps[13].set_pixel(6, 3, bat_color17)
  3399.     @bat_bitmaps[13].set_pixel(7, 3, bat_color12)
  3400.     @bat_bitmaps[13].fill_rect(8, 3, 2, 1, bat_color2)
  3401.     @bat_bitmaps[13].set_pixel(1, 4, bat_color9)
  3402.     @bat_bitmaps[13].fill_rect(2, 4, 2, 1, bat_color4)
  3403.     @bat_bitmaps[13].set_pixel(4, 4, bat_color7)
  3404.     @bat_bitmaps[13].fill_rect(5, 4, 2, 1, bat_color9)
  3405.     @bat_bitmaps[13].set_pixel(7, 4, bat_color2)
  3406.     @bat_bitmaps[13].set_pixel(8, 4, bat_color4)
  3407.     @bat_bitmaps[13].fill_rect(9, 4, 2, 1, bat_color7)
  3408.     @bat_bitmaps[13].set_pixel(11, 4, bat_color2)
  3409.     @bat_bitmaps[13].set_pixel(0, 5, bat_color12)
  3410.     @bat_bitmaps[13].set_pixel(2, 5, bat_color7)
  3411.     @bat_bitmaps[13].set_pixel(4, 5, bat_color12)
  3412.     @bat_bitmaps[13].set_pixel(5, 5, bat_color7)
  3413.     @bat_bitmaps[13].fill_rect(6, 5, 2, 1, bat_color5)
  3414.     @bat_bitmaps[13].fill_rect(8, 5, 2, 1, bat_color7)
  3415.     @bat_bitmaps[13].set_pixel(11, 5, bat_color5)
  3416.     @bat_bitmaps[13].set_pixel(5, 6, bat_color4)
  3417.     @bat_bitmaps[13].fill_rect(6, 6, 2, 1, bat_color7)
  3418.  
  3419.     # Bat down 3
  3420.     @bat_bitmaps[14] = Bitmap.new(9, 9)
  3421.     @bat_bitmaps[14].set_pixel(3, 0, bat_color10)
  3422.     @bat_bitmaps[14].set_pixel(4, 0, bat_color12)
  3423.     @bat_bitmaps[14].set_pixel(5, 0, bat_color10)
  3424.     @bat_bitmaps[14].set_pixel(3, 1, bat_color2)
  3425.     @bat_bitmaps[14].set_pixel(4, 1, bat_color9)
  3426.     @bat_bitmaps[14].set_pixel(5, 1, bat_color5)
  3427.     @bat_bitmaps[14].fill_rect(2, 2, 1, 2, bat_color12)
  3428.     @bat_bitmaps[14].set_pixel(3, 2, bat_color18)
  3429.     @bat_bitmaps[14].set_pixel(4, 2, bat_color13)
  3430.     @bat_bitmaps[14].set_pixel(5, 2, bat_color18)
  3431.     @bat_bitmaps[14].fill_rect(1, 3, 1, 2, bat_color2)
  3432.     @bat_bitmaps[14].set_pixel(3, 3, bat_color7)
  3433.     @bat_bitmaps[14].set_pixel(4, 3, bat_color17)
  3434.     @bat_bitmaps[14].set_pixel(5, 3, bat_color12)
  3435.     @bat_bitmaps[14].set_pixel(6, 3, bat_color2)
  3436.     @bat_bitmaps[14].set_pixel(2, 4, bat_color5)
  3437.     @bat_bitmaps[14].set_pixel(3, 4, bat_color9)
  3438.     @bat_bitmaps[14].fill_rect(4, 4, 2, 1, bat_color2)
  3439.     @bat_bitmaps[14].set_pixel(6, 4, bat_color9)
  3440.     @bat_bitmaps[14].set_pixel(7, 4, bat_color5)
  3441.     @bat_bitmaps[14].set_pixel(0, 5, bat_color2)
  3442.     @bat_bitmaps[14].fill_rect(1, 5, 1, 2, bat_color9)
  3443.     @bat_bitmaps[14].set_pixel(2, 5, bat_color7)
  3444.     @bat_bitmaps[14].set_pixel(3, 5, bat_color5)
  3445.     @bat_bitmaps[14].fill_rect(4, 5, 2, 1, bat_color12)
  3446.     @bat_bitmaps[14].set_pixel(6, 5, bat_color5)
  3447.     @bat_bitmaps[14].set_pixel(7, 5, bat_color2)
  3448.     @bat_bitmaps[14].set_pixel(8, 5, bat_color12)
  3449.     @bat_bitmaps[14].set_pixel(0, 6, bat_color12)
  3450.     @bat_bitmaps[14].set_pixel(2, 6, bat_color12)
  3451.     @bat_bitmaps[14].set_pixel(3, 6, bat_color4)
  3452.     @bat_bitmaps[14].fill_rect(4, 6, 2, 1, bat_color7)
  3453.     @bat_bitmaps[14].set_pixel(6, 6, bat_color9)
  3454.     @bat_bitmaps[14].set_pixel(7, 6, bat_color12)
  3455.     @bat_bitmaps[14].set_pixel(8, 6, bat_color5)
  3456.     @bat_bitmaps[14].set_pixel(0, 7, bat_color2)
  3457.     @bat_bitmaps[14].set_pixel(1, 7, bat_color5)
  3458.     @bat_bitmaps[14].set_pixel(7, 7, bat_color2)
  3459.     @bat_bitmaps[14].set_pixel(8, 7, bat_color12)
  3460.     @bat_bitmaps[14].set_pixel(0, 8, bat_color5)
  3461.     @bat_bitmaps[14].set_pixel(8, 8, bat_color9)
  3462.  
  3463.     # Bat down 4
  3464.     @bat_bitmaps[15] = Bitmap.new(12, 7)
  3465.     @bat_bitmaps[15].set_pixel(5, 0, bat_color12)
  3466.     @bat_bitmaps[15].set_pixel(7, 0, bat_color12)
  3467.     @bat_bitmaps[15].set_pixel(5, 1, bat_color2)
  3468.     @bat_bitmaps[15].set_pixel(6, 1, bat_color9)
  3469.     @bat_bitmaps[15].set_pixel(7, 1, bat_color5)
  3470.     @bat_bitmaps[15].set_pixel(2, 2, bat_color9)
  3471.     @bat_bitmaps[15].set_pixel(4, 2, bat_color7)
  3472.     @bat_bitmaps[15].set_pixel(5, 2, bat_color18)
  3473.     @bat_bitmaps[15].set_pixel(6, 2, bat_color13)
  3474.     @bat_bitmaps[15].set_pixel(7, 2, bat_color18)
  3475.     @bat_bitmaps[15].fill_rect(9, 2, 2, 1, bat_color12)
  3476.     @bat_bitmaps[15].fill_rect(1, 3, 3, 1, bat_color12)
  3477.     @bat_bitmaps[15].set_pixel(4, 3, bat_color2)
  3478.     @bat_bitmaps[15].set_pixel(5, 3, bat_color5)
  3479.     @bat_bitmaps[15].set_pixel(6, 3, bat_color7)
  3480.     @bat_bitmaps[15].set_pixel(7, 3, bat_color5)
  3481.     @bat_bitmaps[15].set_pixel(8, 3, bat_color12)
  3482.     @bat_bitmaps[15].fill_rect(9, 3, 2, 1, bat_color2)
  3483.     @bat_bitmaps[15].fill_rect(0, 4, 3, 1, bat_color12)
  3484.     @bat_bitmaps[15].set_pixel(3, 4, bat_color4)
  3485.     @bat_bitmaps[15].set_pixel(4, 4, bat_color7)
  3486.     @bat_bitmaps[15].set_pixel(5, 4, bat_color9)
  3487.     @bat_bitmaps[15].fill_rect(6, 4, 2, 1, bat_color2)
  3488.     @bat_bitmaps[15].fill_rect(8, 4, 3, 1, bat_color4)
  3489.     @bat_bitmaps[15].set_pixel(11, 4, bat_color9)
  3490.     @bat_bitmaps[15].set_pixel(0, 5, bat_color2)
  3491.     @bat_bitmaps[15].set_pixel(1, 5, bat_color7)
  3492.     @bat_bitmaps[15].set_pixel(3, 5, bat_color7)
  3493.     @bat_bitmaps[15].fill_rect(4, 5, 2, 1, bat_color5)
  3494.     @bat_bitmaps[15].fill_rect(6, 5, 2, 1, bat_color12)
  3495.     @bat_bitmaps[15].set_pixel(8, 5, bat_color7)
  3496.     @bat_bitmaps[15].set_pixel(11, 5, bat_color4)
  3497.     @bat_bitmaps[15].set_pixel(0, 6, bat_color7)
  3498.     @bat_bitmaps[15].set_pixel(4, 6, bat_color7)
  3499.     @bat_bitmaps[15].set_pixel(5, 6, bat_color4)
  3500.     @bat_bitmaps[15].set_pixel(6, 6, bat_color5)
  3501.     @bat_bitmaps[15].set_pixel(7, 6, bat_color7)
  3502. #-------------------------------------------------------------------------------
  3503.     # Bee bitmaps
  3504.  
  3505.     # Bee left 1
  3506.     @bee_bitmaps = []
  3507.     @bee_bitmaps[0] = Bitmap.new(6, 7)
  3508.     @bee_bitmaps[0].fill_rect(2, 0, 1, 2, Color.new(128, 100, 138))
  3509.     @bee_bitmaps[0].fill_rect(4, 0, 1, 2, Color.new(201, 201, 201))
  3510.     @bee_bitmaps[0].set_pixel(5, 0, Color.new(100, 100, 100))
  3511.     @bee_bitmaps[0].set_pixel(0, 1, Color.new(57, 57, 57))
  3512.     @bee_bitmaps[0].set_pixel(3, 1, Color.new(136, 136, 136))
  3513.     @bee_bitmaps[0].set_pixel(0, 2, Color.new(124, 81, 63))
  3514.     @bee_bitmaps[0].set_pixel(1, 2, Color.new(83, 46, 41))
  3515.     @bee_bitmaps[0].fill_rect(2, 2, 1, 2, Color.new(151, 83, 25))
  3516.     @bee_bitmaps[0].set_pixel(3, 2, Color.new(100, 100, 100))
  3517.     @bee_bitmaps[0].set_pixel(5, 2, Color.new(170, 170, 170))
  3518.     @bee_bitmaps[0].set_pixel(0, 3, Color.new(83, 46, 41))
  3519.     @bee_bitmaps[0].set_pixel(1, 3, Color.new(151, 83, 25))
  3520.     @bee_bitmaps[0].set_pixel(3, 3, Color.new(83, 46, 41))
  3521.     @bee_bitmaps[0].fill_rect(4, 3, 1, 2, Color.new(124, 81, 63))
  3522.     @bee_bitmaps[0].set_pixel(1, 4, Color.new(83, 46, 41))
  3523.     @bee_bitmaps[0].set_pixel(2, 4, Color.new(30, 30, 30))
  3524.     @bee_bitmaps[0].set_pixel(3, 4, Color.new(193, 119, 50))
  3525.     @bee_bitmaps[0].fill_rect(3, 5, 2, 1, Color.new(30, 30, 30))
  3526.     @bee_bitmaps[0].set_pixel(4, 6, Color.new(100, 72, 20))
  3527.  
  3528.     # Bee left 2
  3529.     @bee_bitmaps[1] = Bitmap.new(6, 6)
  3530.     @bee_bitmaps[1].set_pixel(1, 0, Color.new(128, 100, 138))
  3531.     @bee_bitmaps[1].fill_rect(0, 1, 2, 1, Color.new(57, 57, 57))
  3532.     @bee_bitmaps[1].set_pixel(3, 1, Color.new(201, 201, 201))
  3533.     @bee_bitmaps[1].set_pixel(5, 1, Color.new(255, 255, 255))
  3534.     @bee_bitmaps[1].fill_rect(0, 2, 3, 1, Color.new(83, 46, 41))
  3535.     @bee_bitmaps[1].set_pixel(3, 2, Color.new(151, 83, 25))
  3536.     @bee_bitmaps[1].set_pixel(1, 3, Color.new(83, 46, 41))
  3537.     @bee_bitmaps[1].set_pixel(2, 3, Color.new(211, 118, 36))
  3538.     @bee_bitmaps[1].set_pixel(3, 3, Color.new(193, 119, 50))
  3539.     @bee_bitmaps[1].set_pixel(4, 3, Color.new(255, 255, 255))
  3540.     @bee_bitmaps[1].set_pixel(1, 4, Color.new(124, 81, 63))
  3541.     @bee_bitmaps[1].fill_rect(2, 4, 2, 1, Color.new(83, 46, 41))
  3542.     @bee_bitmaps[1].set_pixel(4, 4, Color.new(124, 81, 63))
  3543.     @bee_bitmaps[1].set_pixel(4, 5, Color.new(100, 72, 20))
  3544.  
  3545.     # Bee left 3
  3546.     @bee_bitmaps[2] = Bitmap.new(5, 7)
  3547.     @bee_bitmaps[2].fill_rect(2, 0, 1, 2, Color.new(128, 100, 138))
  3548.     @bee_bitmaps[2].set_pixel(3, 0, Color.new(255, 255, 255))
  3549.     @bee_bitmaps[2].set_pixel(3, 1, Color.new(170, 170, 170))
  3550.     @bee_bitmaps[2].set_pixel(1, 2, Color.new(57, 57, 57))
  3551.     @bee_bitmaps[2].set_pixel(2, 2, Color.new(211, 118, 36))
  3552.     @bee_bitmaps[2].set_pixel(0, 3, Color.new(255, 216, 89))
  3553.     @bee_bitmaps[2].fill_rect(1, 3, 1, 2, Color.new(151, 83, 25))
  3554.     @bee_bitmaps[2].set_pixel(2, 3, Color.new(83, 46, 41))
  3555.     @bee_bitmaps[2].set_pixel(3, 3, Color.new(151, 83, 25))
  3556.     @bee_bitmaps[2].set_pixel(2, 4, Color.new(151, 83, 25))
  3557.     @bee_bitmaps[2].set_pixel(3, 4, Color.new(193, 119, 50))
  3558.     @bee_bitmaps[2].set_pixel(4, 4, Color.new(201, 201, 201))
  3559.     @bee_bitmaps[2].set_pixel(2, 5, Color.new(83, 46, 41))
  3560.     @bee_bitmaps[2].set_pixel(3, 5, Color.new(124, 81, 63))
  3561.     @bee_bitmaps[2].set_pixel(4, 5, Color.new(193, 119, 50))
  3562.     @bee_bitmaps[2].set_pixel(4, 6, Color.new(219, 204, 120))
  3563.  
  3564.     # Bee left 4
  3565.     @bee_bitmaps[3] = Bitmap.new(6, 6)
  3566.     @bee_bitmaps[3].set_pixel(1, 0, Color.new(128, 100, 138))
  3567.     @bee_bitmaps[3].fill_rect(0, 1, 2, 1, Color.new(57, 57, 57))
  3568.     @bee_bitmaps[3].set_pixel(3, 1, Color.new(201, 201, 201))
  3569.     @bee_bitmaps[3].set_pixel(5, 1, Color.new(255, 255, 255))
  3570.     @bee_bitmaps[3].fill_rect(0, 2, 3, 1, Color.new(83, 46, 41))
  3571.     @bee_bitmaps[3].set_pixel(3, 2, Color.new(151, 83, 25))
  3572.     @bee_bitmaps[3].set_pixel(1, 3, Color.new(83, 46, 41))
  3573.     @bee_bitmaps[3].set_pixel(2, 3, Color.new(211, 118, 36))
  3574.     @bee_bitmaps[3].set_pixel(3, 3, Color.new(193, 119, 50))
  3575.     @bee_bitmaps[3].set_pixel(4, 3, Color.new(255, 255, 255))
  3576.     @bee_bitmaps[3].set_pixel(1, 4, Color.new(124, 81, 63))
  3577.     @bee_bitmaps[3].fill_rect(2, 4, 2, 1, Color.new(83, 46, 41))
  3578.     @bee_bitmaps[3].set_pixel(4, 4, Color.new(124, 81, 63))
  3579.     @bee_bitmaps[3].set_pixel(4, 5, Color.new(100, 72, 20))
  3580.  
  3581.     # Bee up 1
  3582.     @bee_bitmaps[4] = Bitmap.new(7, 6)
  3583.     @bee_bitmaps[4].set_pixel(2, 0, Color.new(57, 57, 57))
  3584.     @bee_bitmaps[4].set_pixel(4, 0, Color.new(57, 57, 57))
  3585.     @bee_bitmaps[4].fill_rect(0, 1, 2, 1, Color.new(201, 201, 201))
  3586.     @bee_bitmaps[4].set_pixel(2, 1, Color.new(71, 71, 71))
  3587.     @bee_bitmaps[4].fill_rect(3, 1, 1, 2, Color.new(252, 133, 37))
  3588.     @bee_bitmaps[4].set_pixel(4, 1, Color.new(71, 71, 71))
  3589.     @bee_bitmaps[4].fill_rect(5, 1, 2, 1, Color.new(201, 201, 201))
  3590.     @bee_bitmaps[4].set_pixel(2, 2, Color.new(170, 170, 170))
  3591.     @bee_bitmaps[4].set_pixel(4, 2, Color.new(170, 170, 170))
  3592.     @bee_bitmaps[4].set_pixel(0, 3, Color.new(136, 136, 136))
  3593.     @bee_bitmaps[4].set_pixel(1, 3, Color.new(240, 240, 240))
  3594.     @bee_bitmaps[4].set_pixel(2, 3