查看: 1332|回复: 0

[已经过期] 求助,如何让这个天气系统显示在地图和远景图之间?

[复制链接]
梦石
0
星屑
1093
在线时间
881 小时
注册时间
2012-6-28
回帖
972
发表于 2016-3-22 10:16:25 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 没是的人 于 2016-3-22 10:19 编辑

QQ截图20160322101318.png

比如这个样子,我想让这里面的某个效果显示在地图和远景图之间的层
或者设计一个开关,开关打开是正常的,开关关闭天气在远景图和地图之间

下面是脚本

  1. #screen.change_weather(13,7,0)
  2. #-------------------------------------------------------------------------------
  3. #  MAWS - Modified Advanced Weather Script for RPG Maker VX
  4. #  Version: 1.1.
  5. #  Based on Advanced Weather Script VX by Ccoa
  6. #  Modifications created by Agckuu Coceg
  7. #-------------------------------------------------------------------------------
  8. # Thanks DerWulfman to his help with VX version of script.
  9. #-------------------------------------------------------------------------------
  10. #  Weather Types:
  11. #    1 - 雨 (Ccoa)
  12. #    2 - 风暴 (Ccoa)
  13. #    3 - 雪 (Ccoa)
  14. #    4 - 冰雹 (Ccoa)
  15. #    5 - 雷阵雨 (Ccoa)
  16. #    6 - 下降棕色叶子 (Ccoa)
  17. #    7 - 吹棕色叶子 (Ccoa)
  18. #    8 - 袅袅棕色叶子 (Ccoa)
  19. #    9 - 下降绿色叶子 (Ccoa)
  20. #   10 - 樱花(樱)花瓣 (Ccoa)
  21. #   11 - 玫瑰花瓣 (Ccoa)
  22. #   12 - 羽毛 (Ccoa)
  23. #   13 - 血雨 (Ccoa)
  24. #   14 - 火花 (Ccoa)
  25. #   15 - 用户自定义
  26. #   16 - 吹雪 (Ccoa)
  27. #   17 - 流星雨 (Ccoa)
  28. #   18 - 落灰 (Ccoa)
  29. #   19 - 气泡 (Ccoa)
  30. #   20 - 气泡 2 (Ccoa)
  31. #   21 - 火花上升 (Ccoa)
  32. #-------------------------------------------------------------------------------
  33. # Version 1.0 addons
  34. #-------------------------------------------------------------------------------
  35. #   Leaves effects:
  36. #   22 - 吹绿叶 (Agckuu Coceg)
  37. #   23 - 袅袅的绿叶 (Agckuu Coceg)
  38. #   24 - 下降的黄叶 (Agckuu Coceg)
  39. #   25 - 吹黄叶 (Agckuu Coceg)
  40. #   26 - 袅袅的黄叶 (Agckuu Coceg)
  41. #   Rain effects:
  42. #   27 - 石油雨 (Agckuu Coceg)
  43. #   28 - 金雨 (Agckuu Coceg)
  44. #   Special effects:
  45. #   29 - 火焰流星雨 (Agckuu Coceg)
  46. #-------------------------------------------------------------------------------
  47. # Version 1.1 addons
  48. #-------------------------------------------------------------------------------
  49. #   Starburst effects addons:
  50. #   30 - 彩色星暴 v.2 (replaced Color Starburst)(Agckuu Coceg)
  51. #   31 - 升级版彩色星暴 v.2 (replaced Uprising color Starburst)
  52. #   (Agckuu Coceg)
  53. #   32 - 彩色星暴雨 v.2 (replaced Color Starburst rain)(Agckuu Coceg)
  54. #   33 - 单色暴 (Agckuu Coceg)
  55. #   34 - 升级版单色暴 (Agckuu Coceg)
  56. #   35 - 单色暴雨 (Agckuu Coceg)
  57. #   Rain effects:
  58. #   36 - 金雨雷电和闪光 (Agckuu Coceg)
  59. #   37 - 金色风暴 (Agckuu Coceg)
  60. #   38 - 石油风暴 (Agckuu Coceg)
  61. #   39 - 酸雨 (Agckuu Coceg)
  62. #   40 - 酸雨闪电和闪光 (Agckuu Coceg)
  63. #   41 - 酸雨风暴 (Agckuu Coceg)
  64. #   42 - 棕褐色雨 (Agckuu Coceg)
  65. #   43 - 棕褐色雨闪电和闪光 (Agckuu Coceg)
  66. #   44 - 棕褐色雨风暴 (Agckuu Coceg)
  67. #   45 - 现实风暴 (Agckuu Coceg)
  68. #   46 - 血雨赤红的闪电和雷声 (Agckuu Coceg)
  69. #   47 - 血雨风暴 (Agckuu Coceg)
  70. #   48 - 血暴雪 (Agckuu Coceg)
  71. #   New leaves effects:
  72. #   49 - 下降红枫叶 (Agckuu Coceg)
  73. #   50 - 吹红枫叶 (Agckuu Coceg)
  74. #   51 - 袅袅的红枫叶 (Agckuu Coceg)
  75. #   Special effects:
  76. #   52 - 水弹 (Agckuu Coceg)
  77. #   53 - 冰弹 (Agckuu Coceg)
  78. #   54 - 照明弹 (Agckuu Coceg)
  79. #-------------------------------------------------------------------------------
  80. #  Weather Power:
  81. #    An integer from 0-40.  0 = no weather, 40 = 400 sprites
  82. #-------------------------------------------------------------------------------
  83. #  Usage:
  84. #  Create a call script with the following: screen.weather(type, power, hue)
  85. #-------------------------------------------------------------------------------
  86. #  Usage of user-defined weather. Look at the following globals:
  87. $WEATHER_UPDATE = false   # the $WEATHER_IMAGES array has changed, please update
  88. $WEATHER_IMAGES = ["blood"]      # the array of picture names to use
  89. $WEATHER_X = 1           # the number of pixels the image should move horizontally (positive = right, negative = left)
  90. $WEATHER_Y = 2            # the number of pizels the image should move vertically (positive = down, negative = up)
  91. $WEATHER_FADE = 0         # how much the image should fade each update (0 = no fade, 255 = fade instantly)
  92. $WEATHER_ANIMATED = true # whether or not the image should cycle through all the images

  93. # Take these out if you are using screen resolution script of Ccoa.
  94.   HEIGHT = 416
  95.   WIDTH = 544

  96. #==============================================================================
  97. # ** Spriteset_Weather
  98. #------------------------------------------------------------------------------

  99. class Spriteset_Weather
  100.   #--------------------------------------------------------------------------
  101.   # * Public Instance Variables
  102.   #--------------------------------------------------------------------------
  103.   attr_reader :type
  104.   attr_reader :power
  105.   attr_reader :ox
  106.   attr_reader :oy
  107.   #--------------------------------------------------------------------------
  108.   # * Object Initialization
  109.   #--------------------------------------------------------------------------
  110.   def initialize(viewport = nil)
  111.     @type = 0
  112.     @power = 0
  113.     @ox = 0
  114.     @oy = 0

  115.     @count = 0
  116.     @current_pose = []
  117.     @info = []
  118.     @countarray = []

  119.     make_bitmaps

  120.     @sprites = []

  121.     for i in 1..500
  122.       sprite = Sprite.new(viewport)
  123.       sprite.visible = false
  124.       sprite.opacity = 0
  125.       @sprites.push(sprite)
  126.       @current_pose.push(0)
  127.       @info.push(rand(50))
  128.       @countarray.push(rand(15))
  129.     end

  130.   end
  131.   #--------------------------------------------------------------------------
  132.   # * Dispose
  133.   #--------------------------------------------------------------------------
  134.   def dispose
  135.     for sprite in @sprites
  136.       sprite.dispose
  137.     end
  138.     @rain_bitmap.dispose
  139.     @storm_bitmap.dispose
  140.     @snow_bitmap.dispose
  141.     @hail_bitmap.dispose
  142.     @petal_bitmap.dispose
  143.     @blood_rain_bitmap.dispose
  144.     @oil_rain_bitmap.dispose
  145.     @golden_rain_bitmap.dispose
  146.     @golden_storm_bitmap.dispose
  147.     @acid_rain_bitmap.dispose
  148.     @acid_storm_bitmap.dispose
  149.     @sepia_rain_bitmap.dispose
  150.     @sepia_storm_bitmap.dispose
  151.     @blood_storm_bitmap.dispose
  152.     @bloodblizz_bitmap.dispose
  153.     @meteor_bitmap.dispose
  154.     @flame_meteor_bitmap.dispose
  155.     @waterbomb_bitmap.dispose
  156.     @icybomb_bitmap.dispose
  157.     @flarebomb_bitmap.dispose
  158.     for image in @autumn_leaf_bitmaps
  159.       image.dispose
  160.     end
  161.     for image in @green_leaf_bitmaps
  162.       image.dispose
  163.     end
  164.     for image in @yellow_leaf_bitmaps
  165.       image.dispose
  166.     end
  167.     for image in @redmaple_leaf_bitmaps
  168.       image.dispose
  169.     end
  170.     for image in @rose_bitmaps
  171.       image.dispose
  172.     end
  173.     for image in @feather_bitmaps
  174.       image.dispose
  175.     end
  176.     for image in @sparkle_bitmaps
  177.       image.dispose
  178.     end
  179.     for image in @starburst_bitmaps
  180.       image.dispose
  181.     end
  182.     for image in @monostarburst_bitmaps
  183.       image.dispose
  184.     end
  185.     for image in @user_bitmaps
  186.       image.dispose
  187.     end
  188.     $WEATHER_UPDATE = true
  189.   end
  190.   #--------------------------------------------------------------------------
  191.   # * Set weather type
  192.   #     type : new weather type
  193.   #--------------------------------------------------------------------------
  194.   def type=(type)
  195.     return if @type == type
  196.     @type = type
  197.     case @type
  198.     when 1 # rain
  199.       bitmap = @rain_bitmap
  200.     when 2 # storm
  201.       bitmap = @storm_bitmap
  202.     when 3 # snow
  203.       bitmap = @snow_bitmap
  204.    when 4 # hail
  205.       bitmap = @hail_bitmap
  206.     when 5 # rain w/ thunder and lightning
  207.       bitmap = @rain_bitmap
  208.       @thunder = true
  209.     when 6 # falling autumn leaves
  210.       bitmap = @autumn_leaf_bitmaps[0]
  211.     when 7 # blowing autumn leaves
  212.       bitmap = @autumn_leaf_bitmaps[0]
  213.     when 8 # swirling autumn leaves
  214.       bitmap = @autumn_leaf_bitmaps[0]
  215.     when 9 # falling green leaves
  216.       bitmap = @green_leaf_bitmaps[0]
  217.     when 10 # sakura petals
  218.       bitmap = @petal_bitmap
  219.     when 11 # rose petals
  220.       bitmap = @rose_bitmaps[0]
  221.     when 12 # feathers
  222.       bitmap = @feather_bitmaps[0]
  223.     when 13 # blood rain
  224.       bitmap = @blood_rain_bitmap
  225.     when 14 # sparkles
  226.       bitmap = @sparkle_bitmaps[0]
  227.     when 15 # user-defined
  228.         bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  229.     when 16 # blowing snow
  230.       bitmap = @snow_bitmap
  231.     when 17 # meteors
  232.       bitmap = @meteor_bitmap
  233.     when 18 # falling ash
  234.       bitmap = @ash_bitmaps[rand(@ash_bitmaps.size)]
  235.     when 19 # bubbles
  236.       bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  237.     when 21 # sparkles up
  238.       bitmap = @sparkle_bitmaps[0]
  239.     when 22 # blowing green leaves
  240.       bitmap = @green_leaf_bitmaps[0]
  241.     when 23 # swirling green leaves
  242.       bitmap = @green_leaf_bitmaps[0]
  243.     when 24 # falling yellow leaves
  244.       bitmap = @yellow_leaf_bitmaps[0]
  245.     when 25 # blowing yellow leaves
  246.       bitmap = @yellow_leaf_bitmaps[0]
  247.     when 26 # swirling yellow leaves
  248.       bitmap = @yellow_leaf_bitmaps[0]
  249.     when 27 # oil rain
  250.        bitmap = @oil_rain_bitmap
  251.     when 28 # golden rain
  252.        bitmap = @golden_rain_bitmap
  253.     when 29 # flame meteors
  254.        bitmap = @flame_meteor_bitmap
  255.     when 30 # starburst
  256.       bitmap = @starburst_bitmaps[0]
  257.     when 31 # uprising starburst
  258.       bitmap = @starburst_bitmaps[0]
  259.     when 32 # starburst rain
  260.       bitmap = @starburst_bitmaps[0]
  261.     when 33 # mono-starburst
  262.       bitmap = @monostarburst_bitmaps[0]
  263.     when 34 # uprising mono-starburst
  264.       bitmap = @monostarburst_bitmaps[0]
  265.     when 35 # mono-starburst rain
  266.       bitmap = @monostarburst_bitmaps[0]
  267.     when 36 # Golden rain w\ thunder and ligthning
  268.       bitmap = @golden_rain_bitmap
  269.       @golden_thunder = true
  270.     when 37 # Golden storm
  271.       bitmap = @golden_storm_bitmap
  272.     when 38 # Oil storm
  273.       bitmap = @oil_storm_bitmap
  274.     when 39 # # Acid rain
  275.       bitmap = @acid_rain_bitmap
  276.     when 40 # Acid rain w\thunder and lightning
  277.       bitmap = @acid_rain_bitmap
  278.       @acid_thunder = true
  279.     when 41 # Acid storm
  280.       bitmap = @acid_storm_bitmap
  281.     when 42 # Sepia rain
  282.       bitmap = @sepia_rain_bitmap
  283.     when 43 # Sepia rain w\ thunder and lightning
  284.       bitmap = @sepia_rain_bitmap
  285.       @sepia_thunder = true
  286.     when 44 # Sepia storm
  287.       bitmap = @sepia_storm_bitmap
  288.     when 45 # Realistic storm
  289.       bitmap = @storm_bitmap
  290.       @real_storm = true
  291.     when 46 # Blood rain w\ thunder and lightning
  292.       bitmap = @blood_rain_bitmap
  293.       @crimson_thunder = true
  294.     when 47 # Blood storm
  295.       bitmap = @blood_storm_bitmap
  296.     when 48 # Blood blizzard
  297.       bitmap = @bloodblizz_bitmap
  298.     when 49 # Falling red maple leaves
  299.       bitmap = @redmaple_leaf_bitmaps[0]
  300.     when 50 # Blowing red maple leaves
  301.       bitmap = @redmaple_leaf_bitmaps[0]
  302.     when 51 # Swirling red maple leaves
  303.       bitmap = @redmaple_leaf_bitmaps[0]
  304.     when 52
  305.       bitmap = @waterbomb_bitmaps
  306.     when 53
  307.       bitmap = @icybomb_bitmaps
  308.     when 54
  309.       bitmap = @flarebomb_bitmaps
  310.     else
  311.       bitmap = nil
  312.     end

  313.     if @type != 5
  314.       @thunder = false
  315.     end

  316.     if @type != 36
  317.       @golden_thunder = false
  318.     end

  319.     if @type != 40
  320.       @acid_thunder = false
  321.     end

  322.     if @type != 43
  323.       @sepia_thunder = false
  324.     end

  325.     if @type != 45
  326.       @real_storm = false
  327.     end

  328.     if @type != 46
  329.       @crimson_thunder = false
  330.     end

  331.     for i in [email]0...@sprites.size[/email]
  332.       sprite = @sprites[i]
  333.       sprite.visible = (i <= @power)
  334.       if @type == 19
  335.         sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  336.       elsif @type == 20
  337.         sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  338.       elsif @type == 3
  339.         r = rand(@snow_bitmaps.size)
  340.         @info[i] = r
  341.         sprite.bitmap = @snow_bitmaps[r]
  342.       else
  343.         sprite.bitmap = bitmap
  344.       end
  345.     end
  346.   end
  347.   #--------------------------------------------------------------------------
  348.   # * Set starting point X coordinate
  349.   #     ox : starting point X coordinate
  350.   #--------------------------------------------------------------------------
  351.   def ox=(ox)
  352.     return if @ox == ox;
  353.     @ox = ox
  354.     for sprite in @sprites
  355.       sprite.ox = @ox
  356.     end
  357.   end
  358.   #--------------------------------------------------------------------------
  359.   # * Set starting point Y coordinate
  360.   #     oy : starting point Y coordinate
  361.   #--------------------------------------------------------------------------
  362.   def oy=(oy)
  363.     return if @oy == oy;
  364.     @oy = oy
  365.     for sprite in @sprites
  366.       sprite.oy = @oy
  367.     end
  368.   end
  369.   #--------------------------------------------------------------------------
  370.   # * Set maximum number of sprites
  371.   #     max : maximum number of sprites
  372.   #--------------------------------------------------------------------------
  373.   def power=(power)
  374.     @power= power
  375.     for i in 1..40
  376.       sprite = @sprites[i]
  377.       sprite.visible = (i <= @power) if sprite != nil
  378.       if @type == 19
  379.           sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  380.         elsif @type == 20
  381.           sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  382.         elsif @type == 3
  383.           r = rand(@snow_bitmaps.size)
  384.           @info[i] = r
  385.           sprite.bitmap = @snow_bitmaps[r]
  386.         end
  387.     end
  388.   end
  389. #--------------------------------------------------------------------------
  390. # * Frame Update
  391. #--------------------------------------------------------------------------
  392.   def update
  393.     return if @type == 0
  394.     for i in 1..@power
  395.       sprite = @sprites[i]
  396.       if @type == 1 or @type == 5 or @type == 13 or @type == 27 or @type == 28 or @type == 36 or @type == 39 or @type == 40 or @type == 42 or @type == 43 or @type == 46 #rain
  397.         if sprite.opacity <= 150
  398.           if @current_pose[i] == 0
  399.             sprite.y += @rain_bitmap.height
  400.             sprite.x -= @rain_bitmap.width
  401.             if @type == 1 or @type == 5
  402.               sprite.bitmap = @rain_splash
  403.             else
  404.               sprite.bitmap = @blood_rain_splash
  405.             end
  406.             if @type == 27
  407.               sprite.bitmap = @oil_rain_splash
  408.             end
  409.             if @type == 28
  410.               sprite.bitmap = @golden_rain_splash
  411.             end
  412.             if @type == 36
  413.               sprite.bitmap = @golden_rain_splash
  414.             end
  415.             if @type == 39
  416.               sprite.bitmap = @acid_rain_splash
  417.             end
  418.             if @type == 40
  419.               sprite.bitmap = @acid_rain_splash
  420.             end
  421.             if @type == 42
  422.               sprite.bitmap = @sepia_rain_splash
  423.             end
  424.             if @type == 43
  425.               sprite.bitmap = @sepia_rain_splash
  426.             end
  427.             if @type == 46
  428.               sprite.bitmap = @blood_rain_splash
  429.             end
  430.             @current_pose[i] = 1
  431.           end
  432.         else
  433.           if @current_pose[i] == 1
  434.             if @type == 1 or @type == 5
  435.               sprite.bitmap = @rain_bitmap
  436.             else
  437.               sprite.bitmap = @blood_rain_bitmap
  438.             end
  439.             if @type == 27
  440.               sprite.bitmap = @oil_rain_bitmap
  441.             end
  442.             if @type == 28
  443.               sprite.bitmap = @golden_rain_bitmap
  444.             end
  445.             if @type == 36
  446.               sprite.bitmap = @golden_rain_bitmap
  447.             end
  448.             if @type == 39
  449.               sprite.bitmap = @acid_rain_bitmap
  450.             end
  451.             if @type == 40
  452.               sprite.bitmap = @acid_rain_bitmap
  453.             end
  454.             if @type == 42
  455.               sprite.bitmap = @sepia_rain_bitmap
  456.             end
  457.             if @type == 43
  458.               sprite.bitmap = @sepia_rain_bitmap
  459.             end
  460.             if @type == 46
  461.               sprite.bitmap = @blood_rain_bitmap
  462.             end
  463.             @current_pose[i] = 0
  464.           end
  465.           sprite.x -= 2
  466.           sprite.y += 16
  467.           if @thunder and (rand(8000 - @power) == 0)
  468.             $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  469.             Audio.se_play("Audio/SE/Thunder1")
  470.           end
  471.         if @golden_thunder and (rand(8000 - @power) == 0)
  472.             $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  473.             Audio.se_play("Audio/SE/Thunder1")
  474.           end
  475.        if @acid_thunder and (rand(5000 - @power) == 0)
  476.             $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  477.             Audio.se_play("Audio/SE/Thunder1")
  478.           end
  479.        if @sepia_thunder and (rand(8000 - @power) == 0)
  480.             $game_map.screen.start_flash(Color.new(169, 152, 142, 255), 5)
  481.             Audio.se_play("Audio/SE/Thunder1")
  482.           end
  483.        if @sepia_thunder and (rand(8000 - @power) == 0)
  484.             $game_map.screen.start_flash(Color.new(169, 152, 142, 255), 5)
  485.             Audio.se_play("Audio/SE/Thunder1")
  486.           end
  487.        if @crimson_thunder and (rand(8000 - @power) == 0)
  488.           $game_map.screen.start_flash(Color.new(141, 9, 9, 255), 5)
  489.           Audio.se_play("Audio/SE/Thunder1")
  490.           end
  491.         end
  492.         sprite.opacity -= 8
  493.       end
  494.       if @type == 2 or @type == 37 or @type == 38 or @type == 41 or @type == 44 or @type == 45 or @type == 47 # storm
  495.         sprite.x -= 8
  496.         sprite.y += 16
  497.         sprite.opacity -= 12
  498.       end
  499.         if @real_storm and (rand(5000 - @power) == 0)
  500.         $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  501.         $game_map.screen.start_shake(9, 4, 5)
  502.         Audio.se_play("Audio/SE/Thunder9")
  503.       end
  504.       if @type == 3 # snow
  505.         case @info[i]
  506.         when 0 # smallest flake, fall the slowest
  507.           sprite.y += 1
  508.         when 1
  509.           sprite.y += 3
  510.         when 2
  511.           sprite.y += 5
  512.         when 3
  513.           sprite.y += 7
  514.         end
  515.         sprite.opacity -= 3
  516.       end
  517.       if @type == 4 # hail
  518.         sprite.x -= 1
  519.         sprite.y += 18
  520.         sprite.opacity -= 15
  521.       end
  522.       if @type == 6 # falling autumn leaves
  523.         @count = rand(20)
  524.         if @count == 0
  525.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  526.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  527.         end
  528.         sprite.x -= 1
  529.         sprite.y += 1
  530.       end
  531.       if @type == 7 # blowing autumn leaves
  532.         @count = rand(20)
  533.         if @count == 0
  534.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  535.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  536.         end
  537.         sprite.x -= 10
  538.         sprite.y += (rand(4) - 2)
  539.       end
  540.       if @type == 8 # swirling autumn leaves
  541.         @count = rand(20)
  542.         if @count == 0
  543.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  544.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  545.         end
  546.         if @info[i] != 0
  547.           if @info[i] >= 1 and @info[i] <= 10
  548.             sprite.x -= 3
  549.             sprite.y -= 1
  550.           elsif @info[i] >= 11 and @info[i] <= 16
  551.             sprite.x -= 1
  552.             sprite.y -= 2
  553.           elsif @info[i] >= 17 and @info[i] <= 20
  554.             sprite.y -= 3
  555.           elsif @info[i] >= 21 and @info[i] <= 30
  556.             sprite.y -= 2
  557.             sprite.x += 1
  558.           elsif @info[i] >= 31 and @info[i] <= 36
  559.             sprite.y -= 1
  560.             sprite.x += 3
  561.           elsif @info[i] >= 37 and @info[i] <= 40
  562.             sprite.x += 5
  563.           elsif @info[i] >= 41 and @info[i] <= 46
  564.             sprite.y += 1
  565.             sprite.x += 3
  566.           elsif @info[i] >= 47 and @info[i] <= 58
  567.             sprite.y += 2
  568.             sprite.x += 1
  569.           elsif @info[i] >= 59 and @info[i] <= 64
  570.             sprite.y += 3
  571.           elsif @info[i] >= 65 and @info[i] <= 70
  572.             sprite.x -= 1
  573.             sprite.y += 2
  574.           elsif @info[i] >= 71 and @info[i] <= 81
  575.             sprite.x -= 3
  576.             sprite.y += 1
  577.           elsif @info[i] >= 82 and @info[i] <= 87
  578.             sprite.x -= 5
  579.           end
  580.           @info[i] = (@info[i] + 1) % 88
  581.         else
  582.           if rand(200) == 0
  583.             @info[i] = 1
  584.           end
  585.           sprite.x -= 5
  586.           sprite.y += 1
  587.         end
  588.       end
  589.         if @type == 49 # falling red maple leaves
  590.         @count = rand(20)
  591.         if @count == 0
  592.           sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  593.           @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  594.         end
  595.         sprite.x -= 1
  596.         sprite.y += 1
  597.       end
  598.       if @type == 50 # blowing red maple leaves
  599.         @count = rand(20)
  600.         if @count == 0
  601.           sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  602.           @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  603.         end
  604.         sprite.x -= 10
  605.         sprite.y += (rand(4) - 2)
  606.       end
  607.       if @type == 51 # swirling red maple leaves
  608.         @count = rand(20)
  609.         if @count == 0
  610.           sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  611.           @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  612.         end
  613.         if @info[i] != 0
  614.           if @info[i] >= 1 and @info[i] <= 10
  615.             sprite.x -= 3
  616.             sprite.y -= 1
  617.           elsif @info[i] >= 11 and @info[i] <= 16
  618.             sprite.x -= 1
  619.             sprite.y -= 2
  620.           elsif @info[i] >= 17 and @info[i] <= 20
  621.             sprite.y -= 3
  622.           elsif @info[i] >= 21 and @info[i] <= 30
  623.             sprite.y -= 2
  624.             sprite.x += 1
  625.           elsif @info[i] >= 31 and @info[i] <= 36
  626.             sprite.y -= 1
  627.             sprite.x += 3
  628.           elsif @info[i] >= 37 and @info[i] <= 40
  629.             sprite.x += 5
  630.           elsif @info[i] >= 41 and @info[i] <= 46
  631.             sprite.y += 1
  632.             sprite.x += 3
  633.           elsif @info[i] >= 47 and @info[i] <= 58
  634.             sprite.y += 2
  635.             sprite.x += 1
  636.           elsif @info[i] >= 59 and @info[i] <= 64
  637.             sprite.y += 3
  638.           elsif @info[i] >= 65 and @info[i] <= 70
  639.             sprite.x -= 1
  640.             sprite.y += 2
  641.           elsif @info[i] >= 71 and @info[i] <= 81
  642.             sprite.x -= 3
  643.             sprite.y += 1
  644.           elsif @info[i] >= 82 and @info[i] <= 87
  645.             sprite.x -= 5
  646.           end
  647.           @info[i] = (@info[i] + 1) % 88
  648.         else
  649.           if rand(200) == 0
  650.             @info[i] = 1
  651.           end
  652.           sprite.x -= 5
  653.           sprite.y += 1
  654.         end
  655.       end
  656.       if @type == 9 # falling green leaves
  657.         if @countarray[i] == 0
  658.           @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  659.           sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  660.           @countarray[i] = rand(15)
  661.         end
  662.         @countarray[i] = (@countarray[i] + 1) % 15
  663.         sprite.y += 1
  664.       end
  665.       if @type == 10 # sakura petals
  666.         if @info[i] < 25
  667.           sprite.x -= 1
  668.         else
  669.           sprite.x += 1
  670.         end
  671.         @info[i] = (@info[i] + 1) % 50
  672.         sprite.y += 1
  673.       end
  674.       if @type == 11 # rose petals
  675.         @count = rand(20)
  676.         if @count == 0
  677.           sprite.bitmap = @rose_bitmaps[@current_pose[i]]
  678.           @current_pose[i] = (@current_pose[i] + 1) % @rose_bitmaps.size
  679.         end
  680.         if @info[i] % 2 == 0
  681.           if @info[i] < 10
  682.             sprite.x -= 1
  683.           elsif
  684.             sprite.x += 1
  685.           end
  686.         end
  687.         sprite.y += 1
  688.       end
  689.       if @type == 12 # feathers
  690.         if @countarray[i] == 0
  691.           @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  692.           sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  693.         end
  694.         @countarray[i] = (@countarray[i] + 1) % 15
  695.         if rand(100) == 0
  696.           sprite.x -= 1
  697.         end
  698.         if rand(100) == 0
  699.           sprite.y -= 1
  700.         end
  701.         if @info[i] < 50
  702.           if rand(2) == 0
  703.             sprite.x -= 1
  704.           else
  705.             sprite.y -= 1
  706.           end
  707.         else
  708.           if rand(2) == 0
  709.             sprite.x += 1
  710.           else
  711.             sprite.y += 1
  712.           end
  713.         end
  714.         @info[i] = (@info[i] + 1) % 100
  715.       end

  716.        if @type == 30 # starburst
  717.         if @countarray[i] == 0
  718.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  719.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  720.         end
  721.         @countarray[i] = (@countarray[i] + 1) % 15
  722.         sprite.y += 1
  723.         sprite.opacity -= 1
  724.       end
  725.       if @type == 31 # starburst up
  726.         if @countarray[i] == 0
  727.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  728.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  729.         end
  730.         @countarray[i] = (@countarray[i] + 1) % 15
  731.         sprite.y -= 1
  732.         sprite.opacity -= 1
  733.       end
  734.       if @type == 32 # starburst up
  735.         if @countarray[i] == 0
  736.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  737.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  738.         end
  739.         @countarray[i] = (@countarray[i] + 1) % 15
  740.         sprite.x -= 2
  741.         sprite.y += 8
  742.         sprite.opacity -= 1
  743.       end     

  744.       if @type == 33 # mono-starburst
  745.         if @countarray[i] == 0
  746.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  747.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  748.         end
  749.         @countarray[i] = (@countarray[i] + 1) % 15
  750.         sprite.y += 1
  751.         sprite.opacity -= 1
  752.       end
  753.       if @type == 34 # mono-starburst up
  754.         if @countarray[i] == 0
  755.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  756.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  757.         end
  758.         @countarray[i] = (@countarray[i] + 1) % 15
  759.         sprite.y -= 1
  760.         sprite.opacity -= 1
  761.       end
  762.       if @type == 35 # mono-starburst rain
  763.         if @countarray[i] == 0
  764.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  765.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  766.         end
  767.         @countarray[i] = (@countarray[i] + 1) % 15
  768.         sprite.x -= 2
  769.         sprite.y += 8
  770.         sprite.opacity -= 1
  771.       end           
  772.         if @type == 29 # meteors
  773.         if @countarray[i] > 0
  774.           if rand(20) == 0
  775.             sprite.bitmap = @flame_impact_bitmap
  776.             @countarray[i] = -5
  777.           else
  778.             sprite.x -= 6
  779.             sprite.y += 10
  780.           end
  781.         else
  782.           @countarray[i] += 1
  783.           if @countarray[i] == 0
  784.             sprite.bitmap = @flame_meteor_bitmap
  785.             sprite.opacity = 0
  786.             @count_array = 1
  787.           end
  788.         end
  789.       end
  790.       if @type == 18 # ash
  791.         sprite.y += 2
  792.         case @countarray[i] % 3
  793.         when 0
  794.           sprite.x -= 1
  795.         when 1
  796.           sprite.x += 1
  797.         end
  798.       end      

  799.       if @type == 14 # sparkles
  800.         if @countarray[i] == 0
  801.           @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  802.           sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  803.         end
  804.         @countarray[i] = (@countarray[i] + 1) % 15
  805.         sprite.y += 1
  806.         sprite.opacity -= 1
  807.       end
  808.       if @type == 15 # user-defined
  809.         if $WEATHER_UPDATE
  810.           update_user_defined
  811.           $WEATHER_UPDATE = false
  812.         end
  813.         if $WEATHER_ANIMATED and @countarray[i] == 0
  814.           @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  815.           sprite.bitmap = @user_bitmaps[@current_pose[i]]
  816.         end
  817.         sprite.x += $WEATHER_X
  818.         sprite.y += $WEATHER_Y
  819.         sprite.opacity -= $WEATHER_FADE
  820.       end
  821.       if @type == 16 # blowing snow
  822.         sprite.x -= 10
  823.         sprite.y += 6
  824.         sprite.opacity -= 4
  825.       end
  826.       if @type == 48 # blood blizzard
  827.         sprite.x -= 10
  828.         sprite.y += 6
  829.         sprite.opacity -= 4
  830.       end
  831.       if @type == 52 # water bombs
  832.         if @countarray[i] > 0
  833.           if rand(20) == 0
  834.             sprite.bitmap = @waterbomb_impact_bitmap
  835.             @countarray[i] = -5
  836.           else
  837.             sprite.x -= 3
  838.             sprite.y += 5
  839.           end
  840.         else
  841.           @countarray[i] += 1
  842.           if @countarray[i] == 0
  843.             sprite.bitmap = @waterbomb_bitmap
  844.             sprite.opacity = 0
  845.             @count_array = 1
  846.           end
  847.         end
  848.       end
  849.         if @type == 53 # icy bombs
  850.         if @countarray[i] > 0
  851.           if rand(20) == 0
  852.             sprite.bitmap = @icybomb_impact_bitmap
  853.             @countarray[i] = -5
  854.           else
  855.             sprite.x -= 3
  856.             sprite.y += 5
  857.           end
  858.         else
  859.           @countarray[i] += 1
  860.           if @countarray[i] == 0
  861.             sprite.bitmap = @icybomb_bitmap
  862.             sprite.opacity = 0
  863.             @count_array = 1
  864.           end
  865.         end
  866.       end
  867.       if @type == 54 # flare bombs
  868.         if @countarray[i] > 0
  869.           if rand(20) == 0
  870.             sprite.bitmap = @flarebomb_impact_bitmap
  871.             @countarray[i] = -5
  872.           else
  873.             sprite.x -= 3
  874.             sprite.y += 5
  875.           end
  876.         else
  877.           @countarray[i] += 1
  878.           if @countarray[i] == 0
  879.             sprite.bitmap = @flarebomb_bitmap
  880.             sprite.opacity = 0
  881.             @count_array = 1
  882.           end
  883.         end
  884.       end
  885.       if @type == 17 # meteors
  886.         if @countarray[i] > 0
  887.           if rand(20) == 0
  888.             sprite.bitmap = @impact_bitmap
  889.             @countarray[i] = -5
  890.           else
  891.             sprite.x -= 6
  892.             sprite.y += 10
  893.           end
  894.         else
  895.           @countarray[i] += 1
  896.           if @countarray[i] == 0
  897.             sprite.bitmap = @meteor_bitmap
  898.             sprite.opacity = 0
  899.             @count_array = 1
  900.           end
  901.         end
  902.       end
  903.       if @type == 18 # ash
  904.         sprite.y += 2
  905.         case @countarray[i] % 3
  906.         when 0
  907.           sprite.x -= 1
  908.         when 1
  909.           sprite.x += 1
  910.         end
  911.       end
  912.       if @type == 19 or @type == 20 # bubbles
  913.         switch = rand(75) + rand(75) + 1
  914.         if @info[i] < switch / 2
  915.           sprite.x -= 1
  916.         else
  917.           sprite.x += 1
  918.         end
  919.         @info[i] = (@info[i] + 1) % switch
  920.         sprite.y -= 1
  921.         if switch % 2 == 0
  922.           sprite.opacity -= 1
  923.         end
  924.       end
  925.       if @type == 21 # sparkles up
  926.         if @countarray[i] == 0
  927.           @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  928.           sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  929.         end
  930.         @countarray[i] = (@countarray[i] + 1) % 15
  931.         sprite.y -= 1
  932.         sprite.opacity -= 1
  933.       end
  934.          if @type == 24 # falling yellow leaves
  935.         @count = rand(20)
  936.         if @count == 0
  937.           sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  938.           @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  939.         end
  940.         sprite.x -= 1
  941.         sprite.y += 1
  942.       end
  943.        if @type == 22 # blowing green leaves
  944.         @count = rand(20)
  945.         if @count == 0
  946.           sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  947.           @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  948.         end
  949.         sprite.x -= 10
  950.         sprite.y += (rand(4) - 2)
  951.       end      
  952.       if @type == 23 # swirling green leaves
  953.         @count = rand(20)
  954.         if @count == 0
  955.           sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  956.           @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  957.         end
  958.         if @info[i] != 0
  959.           if @info[i] >= 1 and @info[i] <= 10
  960.             sprite.x -= 3
  961.             sprite.y -= 1
  962.           elsif @info[i] >= 11 and @info[i] <= 16
  963.             sprite.x -= 1
  964.             sprite.y -= 2
  965.           elsif @info[i] >= 17 and @info[i] <= 20
  966.             sprite.y -= 3
  967.           elsif @info[i] >= 21 and @info[i] <= 30
  968.             sprite.y -= 2
  969.             sprite.x += 1
  970.           elsif @info[i] >= 31 and @info[i] <= 36
  971.             sprite.y -= 1
  972.             sprite.x += 3
  973.           elsif @info[i] >= 37 and @info[i] <= 40
  974.             sprite.x += 5
  975.           elsif @info[i] >= 41 and @info[i] <= 46
  976.             sprite.y += 1
  977.             sprite.x += 3
  978.           elsif @info[i] >= 47 and @info[i] <= 58
  979.             sprite.y += 2
  980.             sprite.x += 1
  981.           elsif @info[i] >= 59 and @info[i] <= 64
  982.             sprite.y += 3
  983.           elsif @info[i] >= 65 and @info[i] <= 70
  984.             sprite.x -= 1
  985.             sprite.y += 2
  986.           elsif @info[i] >= 71 and @info[i] <= 81
  987.             sprite.x -= 3
  988.             sprite.y += 1
  989.           elsif @info[i] >= 82 and @info[i] <= 87
  990.             sprite.x -= 5
  991.           end
  992.           @info[i] = (@info[i] + 1) % 88
  993.         else
  994.           if rand(200) == 0
  995.             @info[i] = 1
  996.           end
  997.           sprite.x -= 5
  998.           sprite.y += 1
  999.         end
  1000.       end
  1001.         if @type == 24 # falling yellow leaves
  1002.         @count = rand(20)
  1003.         if @count == 0
  1004.           sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1005.           @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1006.         end
  1007.         sprite.x -= 1
  1008.         sprite.y += 1
  1009.       end      
  1010.      if @type == 25 # blowing yellow leaves
  1011.         @count = rand(20)
  1012.         if @count == 0
  1013.           sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1014.           @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1015.         end
  1016.         sprite.x -= 10
  1017.         sprite.y += (rand(4) - 2)
  1018.       end
  1019.        if @type == 26 # swirling yellow leaves
  1020.         @count = rand(20)
  1021.         if @count == 0
  1022.           sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1023.           @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1024.         end
  1025.         if @info[i] != 0
  1026.           if @info[i] >= 1 and @info[i] <= 10
  1027.             sprite.x -= 3
  1028.             sprite.y -= 1
  1029.           elsif @info[i] >= 11 and @info[i] <= 16
  1030.             sprite.x -= 1
  1031.             sprite.y -= 2
  1032.           elsif @info[i] >= 17 and @info[i] <= 20
  1033.             sprite.y -= 3
  1034.           elsif @info[i] >= 21 and @info[i] <= 30
  1035.             sprite.y -= 2
  1036.             sprite.x += 1
  1037.           elsif @info[i] >= 31 and @info[i] <= 36
  1038.             sprite.y -= 1
  1039.             sprite.x += 3
  1040.           elsif @info[i] >= 37 and @info[i] <= 40
  1041.             sprite.x += 5
  1042.           elsif @info[i] >= 41 and @info[i] <= 46
  1043.             sprite.y += 1
  1044.             sprite.x += 3
  1045.           elsif @info[i] >= 47 and @info[i] <= 58
  1046.             sprite.y += 2
  1047.             sprite.x += 1
  1048.           elsif @info[i] >= 59 and @info[i] <= 64
  1049.             sprite.y += 3
  1050.           elsif @info[i] >= 65 and @info[i] <= 70
  1051.             sprite.x -= 1
  1052.             sprite.y += 2
  1053.           elsif @info[i] >= 71 and @info[i] <= 81
  1054.             sprite.x -= 3
  1055.             sprite.y += 1
  1056.           elsif @info[i] >= 82 and @info[i] <= 87
  1057.             sprite.x -= 5
  1058.           end
  1059.           @info[i] = (@info[i] + 1) % 88
  1060.         else
  1061.           if rand(200) == 0
  1062.             @info[i] = 1
  1063.           end
  1064.           sprite.x -= 5
  1065.           sprite.y += 1
  1066.         end
  1067.       end

  1068.       x = sprite.x - @ox
  1069.       y = sprite.y - @oy
  1070.       if sprite.opacity < 64 or x < -50 or x > 750 or y < -300 or y > 500
  1071.         sprite.x = rand(800) - 50 + @ox
  1072.         sprite.y = rand(800) - 200 + @oy
  1073.         sprite.opacity = 255
  1074.       end
  1075.     end
  1076.   end
  1077. #-------------------------------------------------------------------------------  
  1078.   def make_bitmaps
  1079.     color1 = Color.new(255, 255, 255, 255)
  1080.     color2 = Color.new(255, 255, 255, 128)
  1081.     @rain_bitmap = Bitmap.new(7, 56)
  1082.     for i in 0..6
  1083.       @rain_bitmap.fill_rect(6-i, i*8, 1, 8, color1)
  1084.     end
  1085.     @rain_splash = Bitmap.new(8, 5)
  1086.     @rain_splash.fill_rect(1, 0, 6, 1, color2)
  1087.     @rain_splash.fill_rect(1, 4, 6, 1, color2)
  1088.     @rain_splash.fill_rect(0, 1, 1, 3, color2)
  1089.     @rain_splash.fill_rect(7, 1, 1, 3, color2)
  1090.     @rain_splash.set_pixel(1, 0, color1)
  1091.     @rain_splash.set_pixel(0, 1, color1)
  1092. #-------------------------------------------------------------------------------   
  1093.     @storm_bitmap = Bitmap.new(34, 64)
  1094.     for i in 0..31
  1095.       @storm_bitmap.fill_rect(33-i, i*2, 1, 2, color2)
  1096.       @storm_bitmap.fill_rect(32-i, i*2, 1, 2, color1)
  1097.       @storm_bitmap.fill_rect(31-i, i*2, 1, 2, color2)
  1098.     end
  1099. #-------------------------------------------------------------------------------   
  1100.     @snow_bitmap = Bitmap.new(6, 6)
  1101.     @snow_bitmap.fill_rect(0, 1, 6, 4, color2)
  1102.     @snow_bitmap.fill_rect(1, 0, 4, 6, color2)
  1103.     @snow_bitmap.fill_rect(1, 2, 4, 2, color1)
  1104.     @snow_bitmap.fill_rect(2, 1, 2, 4, color1)
  1105.     @sprites = []   
  1106.     @snow_bitmaps = []

  1107.     color3 = Color.new(255, 255, 255, 204)
  1108.     @snow_bitmaps[0] = Bitmap.new(3, 3)
  1109.     @snow_bitmaps[0].fill_rect(0, 0, 3, 3, color2)
  1110.     @snow_bitmaps[0].fill_rect(0, 1, 3, 1, color3)
  1111.     @snow_bitmaps[0].fill_rect(1, 0, 1, 3, color3)
  1112.     @snow_bitmaps[0].set_pixel(1, 1, color1)

  1113.     @snow_bitmaps[1] = Bitmap.new(4, 4)
  1114.     @snow_bitmaps[1].fill_rect(0, 1, 4, 2, color2)
  1115.     @snow_bitmaps[1].fill_rect(1, 0, 2, 4, color2)
  1116.     @snow_bitmaps[1].fill_rect(1, 1, 2, 2, color1)

  1117.     @snow_bitmaps[2] = Bitmap.new(5, 5)
  1118.     @snow_bitmaps[1].fill_rect(0, 1, 5, 3, color3)
  1119.     @snow_bitmaps[1].fill_rect(1, 0, 3, 5, color3)
  1120.     @snow_bitmaps[1].fill_rect(1, 1, 3, 3, color2)
  1121.     @snow_bitmaps[1].fill_rect(2, 1, 3, 1, color1)
  1122.     @snow_bitmaps[1].fill_rect(1, 2, 1, 3, color1)

  1123.     @snow_bitmaps[3] = Bitmap.new(7, 7)
  1124.     @snow_bitmaps[1].fill_rect(1, 1, 5, 5, color3)
  1125.     @snow_bitmaps[1].fill_rect(2, 0, 7, 3, color3)
  1126.     @snow_bitmaps[1].fill_rect(0, 2, 3, 7, color3)
  1127.     @snow_bitmaps[1].fill_rect(2, 1, 5, 3, color2)
  1128.     @snow_bitmaps[1].fill_rect(1, 2, 3, 5, color2)
  1129.     @snow_bitmaps[1].fill_rect(2, 2, 3, 3, color1)
  1130.     @snow_bitmaps[1].fill_rect(3, 1, 5, 1, color1)
  1131.     @snow_bitmaps[1].fill_rect(1, 3, 1, 5, color1)
  1132. #-------------------------------------------------------------------------------   
  1133.     #hail

  1134.     blueGrey  = Color.new(215, 227, 227, 150)
  1135.     grey      = Color.new(214, 217, 217, 150)
  1136.     lightGrey = Color.new(233, 233, 233, 250)
  1137.     lightBlue = Color.new(222, 239, 243, 250)

  1138.     @hail_bitmap = Bitmap.new(4, 4)
  1139.     @hail_bitmap.fill_rect(1, 0, 2, 1, blueGrey)
  1140.     @hail_bitmap.fill_rect(0, 1, 1, 2, blueGrey)
  1141.     @hail_bitmap.fill_rect(3, 1, 1, 2, grey)
  1142.     @hail_bitmap.fill_rect(1, 3, 2, 1, grey)
  1143.     @hail_bitmap.fill_rect(1, 1, 2, 2, lightGrey)
  1144.     @hail_bitmap.set_pixel(1, 1, lightBlue)

  1145. #-------------------------------------------------------------------------------   
  1146.     #sakura petals

  1147.     color3 = Color.new(255, 167, 192, 255) # light pink
  1148.     color4 = Color.new(213, 106, 136, 255) # dark pink
  1149.     @petal_bitmap = Bitmap.new(4, 4) #This creates a new bitmap that is 4 x 4 pixels
  1150.     @petal_bitmap.fill_rect(0, 3, 1, 1, color3) # this makes a 1x1 pixel "rectangle" at the 0, 3 pixel of the image (upper left corner is 0, 0)
  1151.     @petal_bitmap.fill_rect(1, 2, 1, 1, color3)
  1152.     @petal_bitmap.fill_rect(2, 1, 1, 1, color3)
  1153.     @petal_bitmap.fill_rect(3, 0, 1, 1, color3)
  1154.     @petal_bitmap.fill_rect(1, 3, 1, 1, color4)
  1155.     @petal_bitmap.fill_rect(2, 2, 1, 1, color4)
  1156.     @petal_bitmap.fill_rect(3, 1, 1, 1, color4)

  1157. #-------------------------------------------------------------------------------   
  1158.     #autumn brown leaves

  1159.     brightOrange = Color.new(248, 88, 0, 255)  
  1160.     orangeBrown  = Color.new(144, 80, 56, 255)
  1161.     burntRed     = Color.new(152, 0, 0, 255)
  1162.     paleOrange   = Color.new(232, 160, 128, 255)
  1163.     darkBrown    = Color.new(72, 40, 0, 255)

  1164.     @autumn_leaf_bitmaps = []

  1165.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1166.     # draw the first of the leaf1 bitmaps
  1167.     @autumn_leaf_bitmaps[0].set_pixel(5, 1, orangeBrown)
  1168.     @autumn_leaf_bitmaps[0].set_pixel(6, 1, brightOrange)
  1169.     @autumn_leaf_bitmaps[0].set_pixel(7, 1, paleOrange)
  1170.     @autumn_leaf_bitmaps[0].set_pixel(3, 2, orangeBrown)
  1171.     @autumn_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightOrange)
  1172.     @autumn_leaf_bitmaps[0].set_pixel(6, 2, paleOrange)
  1173.     @autumn_leaf_bitmaps[0].set_pixel(2, 3, orangeBrown)
  1174.     @autumn_leaf_bitmaps[0].set_pixel(3, 3, brightOrange)
  1175.     @autumn_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, paleOrange)
  1176.     @autumn_leaf_bitmaps[0].set_pixel(1, 4, orangeBrown)
  1177.     @autumn_leaf_bitmaps[0].set_pixel(2, 4, brightOrange)
  1178.     @autumn_leaf_bitmaps[0].set_pixel(3, 4, paleOrange)
  1179.     @autumn_leaf_bitmaps[0].set_pixel(1, 5, brightOrange)
  1180.     @autumn_leaf_bitmaps[0].set_pixel(2, 5, paleOrange)
  1181.     @autumn_leaf_bitmaps[0].set_pixel(0, 6, orangeBrown)
  1182.     @autumn_leaf_bitmaps[0].set_pixel(1, 6, paleOrange)
  1183.     @autumn_leaf_bitmaps[0].set_pixel(0, 7, paleOrange)

  1184.     # draw the 2nd of the leaf1 bitmaps
  1185.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1186.     @autumn_leaf_bitmaps[1].set_pixel(3, 0, brightOrange)
  1187.     @autumn_leaf_bitmaps[1].set_pixel(7, 0, brightOrange)
  1188.     @autumn_leaf_bitmaps[1].set_pixel(3, 1, orangeBrown)
  1189.     @autumn_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  1190.     @autumn_leaf_bitmaps[1].set_pixel(6, 1, brightOrange)
  1191.     @autumn_leaf_bitmaps[1].set_pixel(0, 2, paleOrange)
  1192.     @autumn_leaf_bitmaps[1].set_pixel(1, 2, brightOrange)
  1193.     @autumn_leaf_bitmaps[1].set_pixel(2, 2, orangeBrown)
  1194.     @autumn_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  1195.     @autumn_leaf_bitmaps[1].set_pixel(4, 2, orangeBrown)
  1196.     @autumn_leaf_bitmaps[1].set_pixel(5, 2, brightOrange)
  1197.     @autumn_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, orangeBrown)
  1198.     @autumn_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightOrange)
  1199.     @autumn_leaf_bitmaps[1].set_pixel(6, 3, orangeBrown)
  1200.     @autumn_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  1201.     @autumn_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightOrange)
  1202.     @autumn_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  1203.     @autumn_leaf_bitmaps[1].set_pixel(7, 4, darkBrown)
  1204.     @autumn_leaf_bitmaps[1].set_pixel(1, 5, orangeBrown)
  1205.     @autumn_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightOrange)
  1206.     @autumn_leaf_bitmaps[1].set_pixel(4, 5, orangeBrown)
  1207.     @autumn_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  1208.     @autumn_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightOrange)
  1209.     @autumn_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  1210.     @autumn_leaf_bitmaps[1].set_pixel(0, 7, brightOrange)
  1211.     @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkBrown)

  1212.     # draw the 3rd of the leaf1 bitmaps
  1213.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1214.     @autumn_leaf_bitmaps[2].set_pixel(7, 1, paleOrange)
  1215.     @autumn_leaf_bitmaps[2].set_pixel(6, 2, paleOrange)
  1216.     @autumn_leaf_bitmaps[2].set_pixel(7, 2, orangeBrown)
  1217.     @autumn_leaf_bitmaps[2].set_pixel(5, 3, paleOrange)
  1218.     @autumn_leaf_bitmaps[2].set_pixel(6, 3, brightOrange)
  1219.     @autumn_leaf_bitmaps[2].set_pixel(4, 4, paleOrange)
  1220.     @autumn_leaf_bitmaps[2].set_pixel(5, 4, brightOrange)
  1221.     @autumn_leaf_bitmaps[2].set_pixel(6, 4, orangeBrown)
  1222.     @autumn_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, paleOrange)
  1223.     @autumn_leaf_bitmaps[2].set_pixel(4, 5, brightOrange)
  1224.     @autumn_leaf_bitmaps[2].set_pixel(5, 5, orangeBrown)
  1225.     @autumn_leaf_bitmaps[2].set_pixel(1, 6, paleOrange)
  1226.     @autumn_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightOrange)
  1227.     @autumn_leaf_bitmaps[2].set_pixel(4, 6, orangeBrown)
  1228.     @autumn_leaf_bitmaps[2].set_pixel(0, 7, paleOrange)
  1229.     @autumn_leaf_bitmaps[2].set_pixel(1, 7, brightOrange)
  1230.     @autumn_leaf_bitmaps[2].set_pixel(2, 7, orangeBrown)

  1231.     # draw the 4th of the leaf1 bitmaps
  1232.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1233.     @autumn_leaf_bitmaps[3].set_pixel(3, 0, brightOrange)
  1234.     @autumn_leaf_bitmaps[3].set_pixel(7, 0, brightOrange)
  1235.     @autumn_leaf_bitmaps[3].set_pixel(3, 1, orangeBrown)
  1236.     @autumn_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  1237.     @autumn_leaf_bitmaps[3].set_pixel(6, 1, brightOrange)
  1238.     @autumn_leaf_bitmaps[3].set_pixel(0, 2, paleOrange)
  1239.     @autumn_leaf_bitmaps[3].set_pixel(1, 2, brightOrange)
  1240.     @autumn_leaf_bitmaps[3].set_pixel(2, 2, orangeBrown)
  1241.     @autumn_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  1242.     @autumn_leaf_bitmaps[3].set_pixel(4, 2, orangeBrown)
  1243.     @autumn_leaf_bitmaps[3].set_pixel(5, 2, brightOrange)
  1244.     @autumn_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, orangeBrown)
  1245.     @autumn_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightOrange)
  1246.     @autumn_leaf_bitmaps[3].set_pixel(6, 3, orangeBrown)
  1247.     @autumn_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  1248.     @autumn_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightOrange)
  1249.     @autumn_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  1250.     @autumn_leaf_bitmaps[3].set_pixel(7, 4, darkBrown)
  1251.     @autumn_leaf_bitmaps[3].set_pixel(1, 5, orangeBrown)
  1252.     @autumn_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightOrange)
  1253.     @autumn_leaf_bitmaps[3].set_pixel(4, 5, orangeBrown)
  1254.     @autumn_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  1255.     @autumn_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightOrange)
  1256.     @autumn_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  1257.     @autumn_leaf_bitmaps[3].set_pixel(0, 7, brightOrange)
  1258.     @autumn_leaf_bitmaps[3].set_pixel(5, 7, darkBrown)

  1259. #-------------------------------------------------------------------------------

  1260.     # Red maple leaves

  1261.     @redmaple_leaf_bitmaps = []
  1262.     brightRed = Color.new(255, 0, 0, 255)
  1263.     midRed    = Color.new(179, 17, 17, 255)
  1264.     darkRed   = Color.new(141, 9, 9, 255)

  1265.     @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1266.     # draw the first of the red maple leaves bitmaps
  1267.     @redmaple_leaf_bitmaps[0].set_pixel(5, 1, darkRed)
  1268.     @redmaple_leaf_bitmaps[0].set_pixel(6, 1, brightRed)
  1269.     @redmaple_leaf_bitmaps[0].set_pixel(7, 1, midRed)
  1270.     @redmaple_leaf_bitmaps[0].set_pixel(3, 2, darkRed)
  1271.     @redmaple_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightRed)
  1272.     @redmaple_leaf_bitmaps[0].set_pixel(6, 2, midRed)
  1273.     @redmaple_leaf_bitmaps[0].set_pixel(2, 3, darkRed)
  1274.     @redmaple_leaf_bitmaps[0].set_pixel(3, 3, brightRed)
  1275.     @redmaple_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, midRed)
  1276.     @redmaple_leaf_bitmaps[0].set_pixel(1, 4, brightRed)
  1277.     @redmaple_leaf_bitmaps[0].set_pixel(2, 4, brightRed)
  1278.     @redmaple_leaf_bitmaps[0].set_pixel(3, 4, midRed)
  1279.     @redmaple_leaf_bitmaps[0].set_pixel(1, 5, brightRed)
  1280.     @redmaple_leaf_bitmaps[0].set_pixel(2, 5, midRed)
  1281.     @redmaple_leaf_bitmaps[0].set_pixel(0, 6, darkRed)
  1282.     @redmaple_leaf_bitmaps[0].set_pixel(1, 6, midRed)
  1283.     @redmaple_leaf_bitmaps[0].set_pixel(0, 7, midRed)

  1284.     # draw the 2nd of the red maple leaves bitmaps
  1285.     @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1286.     @redmaple_leaf_bitmaps[1].set_pixel(3, 0, brightRed)
  1287.     @redmaple_leaf_bitmaps[1].set_pixel(7, 0, brightRed)
  1288.     @redmaple_leaf_bitmaps[1].set_pixel(3, 1, darkRed)
  1289.     @redmaple_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  1290.     @redmaple_leaf_bitmaps[1].set_pixel(6, 1, brightRed)
  1291.     @redmaple_leaf_bitmaps[1].set_pixel(0, 2, midRed)
  1292.     @redmaple_leaf_bitmaps[1].set_pixel(1, 2, brightRed)
  1293.     @redmaple_leaf_bitmaps[1].set_pixel(2, 2, darkRed)
  1294.     @redmaple_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  1295.     @redmaple_leaf_bitmaps[1].set_pixel(4, 2, darkRed)
  1296.     @redmaple_leaf_bitmaps[1].set_pixel(5, 2, brightRed)
  1297.     @redmaple_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, darkRed)
  1298.     @redmaple_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightRed)
  1299.     @redmaple_leaf_bitmaps[1].set_pixel(6, 3, darkRed)
  1300.     @redmaple_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  1301.     @redmaple_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightRed)
  1302.     @redmaple_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  1303.     @redmaple_leaf_bitmaps[1].set_pixel(7, 4, darkRed)
  1304.     @redmaple_leaf_bitmaps[1].set_pixel(1, 5, darkRed)
  1305.     @redmaple_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightRed)
  1306.     @redmaple_leaf_bitmaps[1].set_pixel(4, 5, darkRed)
  1307.     @redmaple_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  1308.     @redmaple_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightRed)
  1309.     @redmaple_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  1310.     @redmaple_leaf_bitmaps[1].set_pixel(0, 7, brightRed)
  1311.     @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkRed)

  1312.     # draw the 3rd of the red maple leaves bitmaps
  1313.     @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1314.     @redmaple_leaf_bitmaps[2].set_pixel(7, 1, midRed)
  1315.     @redmaple_leaf_bitmaps[2].set_pixel(6, 2, midRed)
  1316.     @redmaple_leaf_bitmaps[2].set_pixel(7, 2, darkRed)
  1317.     @redmaple_leaf_bitmaps[2].set_pixel(5, 3, midRed)
  1318.     @redmaple_leaf_bitmaps[2].set_pixel(6, 3, brightRed)
  1319.     @redmaple_leaf_bitmaps[2].set_pixel(4, 4, midRed)
  1320.     @redmaple_leaf_bitmaps[2].set_pixel(5, 4, brightRed)
  1321.     @redmaple_leaf_bitmaps[2].set_pixel(6, 4, darkRed)
  1322.     @redmaple_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, midRed)
  1323.     @redmaple_leaf_bitmaps[2].set_pixel(4, 5, brightRed)
  1324.     @redmaple_leaf_bitmaps[2].set_pixel(5, 5, darkRed)
  1325.     @redmaple_leaf_bitmaps[2].set_pixel(1, 6, midRed)
  1326.     @redmaple_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightRed)
  1327.     @redmaple_leaf_bitmaps[2].set_pixel(4, 6, darkRed)
  1328.     @redmaple_leaf_bitmaps[2].set_pixel(0, 7, midRed)
  1329.     @redmaple_leaf_bitmaps[2].set_pixel(1, 7, brightRed)
  1330.     @redmaple_leaf_bitmaps[2].set_pixel(2, 7, darkRed)

  1331.     # draw the 4th of the red maple leaves bitmaps
  1332.     @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1333.     @redmaple_leaf_bitmaps[3].set_pixel(3, 0, brightRed)
  1334.     @redmaple_leaf_bitmaps[3].set_pixel(7, 0, brightRed)
  1335.     @redmaple_leaf_bitmaps[3].set_pixel(3, 1, darkRed)
  1336.     @redmaple_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  1337.     @redmaple_leaf_bitmaps[3].set_pixel(6, 1, brightRed)
  1338.     @redmaple_leaf_bitmaps[3].set_pixel(0, 2, midRed)
  1339.     @redmaple_leaf_bitmaps[3].set_pixel(1, 2, brightRed)
  1340.     @redmaple_leaf_bitmaps[3].set_pixel(2, 2, darkRed)
  1341.     @redmaple_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  1342.     @redmaple_leaf_bitmaps[3].set_pixel(4, 2, darkRed)
  1343.     @redmaple_leaf_bitmaps[3].set_pixel(5, 2, brightRed)
  1344.     @redmaple_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, darkRed)
  1345.     @redmaple_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightRed)
  1346.     @redmaple_leaf_bitmaps[3].set_pixel(6, 3, darkRed)
  1347.     @redmaple_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  1348.     @redmaple_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightRed)
  1349.     @redmaple_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  1350.     @redmaple_leaf_bitmaps[3].set_pixel(7, 4, darkRed)
  1351.     @redmaple_leaf_bitmaps[3].set_pixel(1, 5, darkRed)
  1352.     @redmaple_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightRed)
  1353.     @redmaple_leaf_bitmaps[3].set_pixel(4, 5, darkRed)
  1354.     @redmaple_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  1355.     @redmaple_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightRed)
  1356.     @redmaple_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  1357.     @redmaple_leaf_bitmaps[3].set_pixel(0, 7, brightRed)
  1358.     @redmaple_leaf_bitmaps[3].set_pixel(5, 7, darkRed)
  1359. #-------------------------------------------------------------------------------   
  1360.     #Green leaves

  1361.     @green_leaf_bitmaps = []
  1362.     darkGreen  = Color.new(62, 76, 31, 255)
  1363.     midGreen   = Color.new(76, 91, 43, 255)
  1364.     khaki      = Color.new(105, 114, 66, 255)
  1365.     lightGreen = Color.new(128, 136, 88, 255)
  1366.     mint       = Color.new(146, 154, 106, 255)

  1367.     # 1st leaf bitmap
  1368.     @green_leaf_bitmaps[0] = Bitmap.new(8, 8)
  1369.     @green_leaf_bitmaps[0].set_pixel(1, 0, darkGreen)
  1370.     @green_leaf_bitmaps[0].set_pixel(1, 1, midGreen)
  1371.     @green_leaf_bitmaps[0].set_pixel(2, 1, darkGreen)
  1372.     @green_leaf_bitmaps[0].set_pixel(2, 2, khaki)
  1373.     @green_leaf_bitmaps[0].set_pixel(3, 2, darkGreen)
  1374.     @green_leaf_bitmaps[0].set_pixel(4, 2, khaki)
  1375.     @green_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midGreen)
  1376.     @green_leaf_bitmaps[0].set_pixel(5, 3, khaki)
  1377.     @green_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midGreen)
  1378.     @green_leaf_bitmaps[0].set_pixel(4, 4, darkGreen)
  1379.     @green_leaf_bitmaps[0].set_pixel(5, 4, lightGreen)
  1380.     @green_leaf_bitmaps[0].set_pixel(6, 4, khaki)
  1381.     @green_leaf_bitmaps[0].set_pixel(3, 5, midGreen)
  1382.     @green_leaf_bitmaps[0].set_pixel(4, 5, darkGreen)
  1383.     @green_leaf_bitmaps[0].set_pixel(5, 5, khaki)
  1384.     @green_leaf_bitmaps[0].set_pixel(6, 5, lightGreen)
  1385.     @green_leaf_bitmaps[0].set_pixel(4, 6, midGreen)
  1386.     @green_leaf_bitmaps[0].set_pixel(5, 6, darkGreen)
  1387.     @green_leaf_bitmaps[0].set_pixel(6, 6, lightGreen)
  1388.     @green_leaf_bitmaps[0].set_pixel(6, 7, khaki)

  1389.     # 2nd leaf bitmap
  1390.     @green_leaf_bitmaps[1] = Bitmap.new(8, 8)
  1391.     @green_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midGreen)
  1392.     @green_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, khaki)
  1393.     @green_leaf_bitmaps[1].set_pixel(4, 2, lightGreen)
  1394.     @green_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkGreen)
  1395.     @green_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightGreen)
  1396.     @green_leaf_bitmaps[1].set_pixel(2, 4, midGreen)
  1397.     @green_leaf_bitmaps[1].set_pixel(3, 4, darkGreen)
  1398.     @green_leaf_bitmaps[1].set_pixel(4, 4, khaki)
  1399.     @green_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightGreen)
  1400.     @green_leaf_bitmaps[1].set_pixel(3, 5, midGreen)
  1401.     @green_leaf_bitmaps[1].set_pixel(4, 5, darkGreen)
  1402.     @green_leaf_bitmaps[1].set_pixel(5, 5, khaki)
  1403.     @green_leaf_bitmaps[1].set_pixel(6, 5, lightGreen)
  1404.     @green_leaf_bitmaps[1].set_pixel(5, 6, darkGreen)
  1405.     @green_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, khaki)

  1406.     # 3rd leaf bitmap
  1407.     @green_leaf_bitmaps[2] = Bitmap.new(8, 8)
  1408.     @green_leaf_bitmaps[2].set_pixel(1, 1, darkGreen)
  1409.     @green_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midGreen)
  1410.     @green_leaf_bitmaps[2].set_pixel(2, 3, midGreen)
  1411.     @green_leaf_bitmaps[2].set_pixel(3, 3, darkGreen)
  1412.     @green_leaf_bitmaps[2].set_pixel(4, 3, midGreen)
  1413.     @green_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midGreen)
  1414.     @green_leaf_bitmaps[2].set_pixel(4, 4, darkGreen)
  1415.     @green_leaf_bitmaps[2].set_pixel(5, 4, lightGreen)
  1416.     @green_leaf_bitmaps[2].set_pixel(3, 5, midGreen)
  1417.     @green_leaf_bitmaps[2].set_pixel(4, 5, darkGreen)
  1418.     @green_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, khaki)
  1419.     @green_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midGreen)
  1420.     @green_leaf_bitmaps[2].set_pixel(6, 6, lightGreen)
  1421.     @green_leaf_bitmaps[2].set_pixel(6, 7, khaki)

  1422.     # 4th leaf bitmap
  1423.     @green_leaf_bitmaps[3] = Bitmap.new(8, 8)
  1424.     @green_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkGreen)
  1425.     @green_leaf_bitmaps[3].set_pixel(1, 4, midGreen)
  1426.     @green_leaf_bitmaps[3].set_pixel(2, 4, khaki)
  1427.     @green_leaf_bitmaps[3].set_pixel(3, 4, lightGreen)
  1428.     @green_leaf_bitmaps[3].set_pixel(4, 4, darkGreen)
  1429.     @green_leaf_bitmaps[3].set_pixel(7, 4, midGreen)
  1430.     @green_leaf_bitmaps[3].set_pixel(1, 5, darkGreen)
  1431.     @green_leaf_bitmaps[3].set_pixel(2, 5, midGreen)
  1432.     @green_leaf_bitmaps[3].set_pixel(3, 5, lightGreen)
  1433.     @green_leaf_bitmaps[3].set_pixel(4, 5, mint)
  1434.     @green_leaf_bitmaps[3].set_pixel(5, 5, lightGreen)
  1435.     @green_leaf_bitmaps[3].set_pixel(6, 5, khaki)
  1436.     @green_leaf_bitmaps[3].set_pixel(7, 5, midGreen)
  1437.     @green_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midGreen)
  1438.     @green_leaf_bitmaps[3].set_pixel(4, 6, lightGreen)
  1439.     @green_leaf_bitmaps[3].set_pixel(5, 6, khaki)
  1440.     @green_leaf_bitmaps[3].set_pixel(6, 6, midGreen)

  1441.     # 5th leaf bitmap
  1442.     @green_leaf_bitmaps[4] = Bitmap.new(8, 8)
  1443.     @green_leaf_bitmaps[4].set_pixel(6, 2, midGreen)
  1444.     @green_leaf_bitmaps[4].set_pixel(7, 2, darkGreen)
  1445.     @green_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midGreen)
  1446.     @green_leaf_bitmaps[4].set_pixel(6, 3, khaki)
  1447.     @green_leaf_bitmaps[4].set_pixel(2, 4, darkGreen)
  1448.     @green_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, khaki)
  1449.     @green_leaf_bitmaps[4].set_pixel(5, 4, lightGreen)
  1450.     @green_leaf_bitmaps[4].set_pixel(6, 4, khaki)
  1451.     @green_leaf_bitmaps[4].set_pixel(1, 5, midGreen)
  1452.     @green_leaf_bitmaps[4].set_pixel(2, 5, khaki)
  1453.     @green_leaf_bitmaps[4].set_pixel(3, 5, lightGreen)
  1454.     @green_leaf_bitmaps[4].set_pixel(4, 5, mint)
  1455.     @green_leaf_bitmaps[4].set_pixel(5, 5, midGreen)
  1456.     @green_leaf_bitmaps[4].set_pixel(2, 6, darkGreen)
  1457.     @green_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midGreen)

  1458.     # 6th leaf bitmap
  1459.     @green_leaf_bitmaps[5] = Bitmap.new(8, 8)
  1460.     @green_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midGreen)
  1461.     @green_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midGreen)
  1462.     @green_leaf_bitmaps[5].set_pixel(6, 3, khaki)
  1463.     @green_leaf_bitmaps[5].set_pixel(3, 4, midGreen)
  1464.     @green_leaf_bitmaps[5].set_pixel(4, 4, khaki)
  1465.     @green_leaf_bitmaps[5].set_pixel(5, 4, lightGreen)
  1466.     @green_leaf_bitmaps[5].set_pixel(6, 4, mint)
  1467.     @green_leaf_bitmaps[5].set_pixel(1, 5, midGreen)
  1468.     @green_leaf_bitmaps[5].set_pixel(2, 5, khaki)
  1469.     @green_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, mint)
  1470.     @green_leaf_bitmaps[5].set_pixel(5, 5, lightGreen)
  1471.     @green_leaf_bitmaps[5].set_pixel(2, 6, midGreen)
  1472.     @green_leaf_bitmaps[5].set_pixel(3, 6, khaki)
  1473.     @green_leaf_bitmaps[5].set_pixel(4, 6, lightGreen)

  1474.     # 7th leaf bitmap
  1475.     @green_leaf_bitmaps[6] = Bitmap.new(8, 8)
  1476.     @green_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midGreen)
  1477.     @green_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midGreen)
  1478.     @green_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkGreen)
  1479.     @green_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midGreen)
  1480.     @green_leaf_bitmaps[6].set_pixel(5, 3, khaki)
  1481.     @green_leaf_bitmaps[6].set_pixel(2, 4, midGreen)
  1482.     @green_leaf_bitmaps[6].set_pixel(3, 4, khaki)
  1483.     @green_leaf_bitmaps[6].set_pixel(4, 4, lightGreen)
  1484.     @green_leaf_bitmaps[6].set_pixel(5, 4, midGreen)
  1485.     @green_leaf_bitmaps[6].set_pixel(1, 5, midGreen)
  1486.     @green_leaf_bitmaps[6].set_pixel(2, 5, khaki)
  1487.     @green_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midGreen)
  1488.     @green_leaf_bitmaps[6].set_pixel(1, 6, darkGreen)
  1489.     @green_leaf_bitmaps[6].set_pixel(2, 6, midGreen)

  1490.     # 8th leaf bitmap
  1491.     @green_leaf_bitmaps[7] = Bitmap.new(8, 8)
  1492.     @green_leaf_bitmaps[7].set_pixel(6, 1, midGreen)
  1493.     @green_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midGreen)
  1494.     @green_leaf_bitmaps[7].set_pixel(3, 3, darkGreen)
  1495.     @green_leaf_bitmaps[7].set_pixel(2, 4, darkGreen)
  1496.     @green_leaf_bitmaps[7].set_pixel(3, 4, midGreen)
  1497.     @green_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, khaki)
  1498.     @green_leaf_bitmaps[7].set_pixel(1, 5, darkGreen)
  1499.     @green_leaf_bitmaps[7].set_pixel(2, 5, midGreen)
  1500.     @green_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightGreen)
  1501.     @green_leaf_bitmaps[7].set_pixel(2, 6, midGreen)
  1502.     @green_leaf_bitmaps[7].set_pixel(3, 6, lightGreen)

  1503.     # 9th leaf bitmap
  1504.     @green_leaf_bitmaps[8] = Bitmap.new(8, 8)
  1505.     @green_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midGreen)
  1506.     @green_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midGreen)
  1507.     @green_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkGreen)
  1508.     @green_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midGreen)
  1509.     @green_leaf_bitmaps[8].set_pixel(5, 3, khaki)
  1510.     @green_leaf_bitmaps[8].set_pixel(2, 4, midGreen)
  1511.     @green_leaf_bitmaps[8].set_pixel(3, 4, khaki)
  1512.     @green_leaf_bitmaps[8].set_pixel(4, 4, lightGreen)
  1513.     @green_leaf_bitmaps[8].set_pixel(5, 4, midGreen)
  1514.     @green_leaf_bitmaps[8].set_pixel(1, 5, midGreen)
  1515.     @green_leaf_bitmaps[8].set_pixel(2, 5, khaki)
  1516.     @green_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midGreen)
  1517.     @green_leaf_bitmaps[8].set_pixel(1, 6, darkGreen)
  1518.     @green_leaf_bitmaps[8].set_pixel(2, 6, midGreen)

  1519.     # 10th leaf bitmap
  1520.     @green_leaf_bitmaps[9] = Bitmap.new(8, 8)
  1521.     @green_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midGreen)
  1522.     @green_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midGreen)
  1523.     @green_leaf_bitmaps[9].set_pixel(6, 3, khaki)
  1524.     @green_leaf_bitmaps[9].set_pixel(3, 4, midGreen)
  1525.     @green_leaf_bitmaps[9].set_pixel(4, 4, khaki)
  1526.     @green_leaf_bitmaps[9].set_pixel(5, 4, lightGreen)
  1527.     @green_leaf_bitmaps[9].set_pixel(6, 4, mint)
  1528.     @green_leaf_bitmaps[9].set_pixel(1, 5, midGreen)
  1529.     @green_leaf_bitmaps[9].set_pixel(2, 5, khaki)
  1530.     @green_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, mint)
  1531.     @green_leaf_bitmaps[9].set_pixel(5, 5, lightGreen)
  1532.     @green_leaf_bitmaps[9].set_pixel(2, 6, midGreen)
  1533.     @green_leaf_bitmaps[9].set_pixel(3, 6, khaki)
  1534.     @green_leaf_bitmaps[9].set_pixel(4, 6, lightGreen)

  1535.     # 11th leaf bitmap
  1536.     @green_leaf_bitmaps[10] = Bitmap.new(8, 8)
  1537.     @green_leaf_bitmaps[10].set_pixel(6, 2, midGreen)
  1538.     @green_leaf_bitmaps[10].set_pixel(7, 2, darkGreen)
  1539.     @green_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midGreen)
  1540.     @green_leaf_bitmaps[10].set_pixel(6, 3, khaki)
  1541.     @green_leaf_bitmaps[10].set_pixel(2, 4, darkGreen)
  1542.     @green_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, khaki)
  1543.     @green_leaf_bitmaps[10].set_pixel(5, 4, lightGreen)
  1544.     @green_leaf_bitmaps[10].set_pixel(6, 4, khaki)
  1545.     @green_leaf_bitmaps[10].set_pixel(1, 5, midGreen)
  1546.     @green_leaf_bitmaps[10].set_pixel(2, 5, khaki)
  1547.     @green_leaf_bitmaps[10].set_pixel(3, 5, lightGreen)
  1548.     @green_leaf_bitmaps[10].set_pixel(4, 5, mint)
  1549.     @green_leaf_bitmaps[10].set_pixel(5, 5, midGreen)
  1550.     @green_leaf_bitmaps[10].set_pixel(2, 6, darkGreen)
  1551.     @green_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midGreen)

  1552.     # 12th leaf bitmap
  1553.     @green_leaf_bitmaps[11] = Bitmap.new(8, 8)
  1554.     @green_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkGreen)
  1555.     @green_leaf_bitmaps[11].set_pixel(1, 4, midGreen)
  1556.     @green_leaf_bitmaps[11].set_pixel(2, 4, khaki)
  1557.     @green_leaf_bitmaps[11].set_pixel(3, 4, lightGreen)
  1558.     @green_leaf_bitmaps[11].set_pixel(4, 4, darkGreen)
  1559.     @green_leaf_bitmaps[11].set_pixel(7, 4, midGreen)
  1560.     @green_leaf_bitmaps[11].set_pixel(1, 5, darkGreen)
  1561.     @green_leaf_bitmaps[11].set_pixel(2, 5, midGreen)
  1562.     @green_leaf_bitmaps[11].set_pixel(3, 5, lightGreen)
  1563.     @green_leaf_bitmaps[11].set_pixel(4, 5, mint)
  1564.     @green_leaf_bitmaps[11].set_pixel(5, 5, lightGreen)
  1565.     @green_leaf_bitmaps[11].set_pixel(6, 5, khaki)
  1566.     @green_leaf_bitmaps[11].set_pixel(7, 5, midGreen)
  1567.     @green_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midGreen)
  1568.     @green_leaf_bitmaps[11].set_pixel(4, 6, lightGreen)
  1569.     @green_leaf_bitmaps[11].set_pixel(5, 6, khaki)
  1570.     @green_leaf_bitmaps[11].set_pixel(6, 6, midGreen)

  1571.     # 13th leaf bitmap
  1572.     @green_leaf_bitmaps[12] = Bitmap.new(8, 8)
  1573.     @green_leaf_bitmaps[12].set_pixel(1, 1, darkGreen)
  1574.     @green_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midGreen)
  1575.     @green_leaf_bitmaps[12].set_pixel(2, 3, midGreen)
  1576.     @green_leaf_bitmaps[12].set_pixel(3, 3, darkGreen)
  1577.     @green_leaf_bitmaps[12].set_pixel(4, 3, midGreen)
  1578.     @green_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midGreen)
  1579.     @green_leaf_bitmaps[12].set_pixel(4, 4, darkGreen)
  1580.     @green_leaf_bitmaps[12].set_pixel(5, 4, lightGreen)
  1581.     @green_leaf_bitmaps[12].set_pixel(3, 5, midGreen)
  1582.     @green_leaf_bitmaps[12].set_pixel(4, 5, darkGreen)
  1583.     @green_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, khaki)
  1584.     @green_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midGreen)
  1585.     @green_leaf_bitmaps[12].set_pixel(6, 6, lightGreen)
  1586.     @green_leaf_bitmaps[12].set_pixel(6, 7, khaki)
  1587. #-------------------------------------------------------------------------------   
  1588.     #rose petals

  1589.     @rose_bitmaps = []

  1590.     # 1st rose petal bitmap
  1591.     @rose_bitmaps[0] = Bitmap.new(3, 3)
  1592.     @rose_bitmaps[0].fill_rect(1, 0, 2, 1, brightRed)
  1593.     @rose_bitmaps[0].fill_rect(0, 1, 1, 2, brightRed)
  1594.     @rose_bitmaps[0].fill_rect(1, 1, 2, 2, midRed)
  1595.     @rose_bitmaps[0].set_pixel(2, 2, darkRed)

  1596.     # 2nd rose petal bitmap
  1597.     @rose_bitmaps[1] = Bitmap.new(3, 3)
  1598.     @rose_bitmaps[1].set_pixel(0, 1, midRed)
  1599.     @rose_bitmaps[1].set_pixel(1, 1, brightRed)
  1600.     @rose_bitmaps[1].fill_rect(1, 2, 1, 2, midRed)
  1601. #-------------------------------------------------------------------------------   
  1602.     #Feathers

  1603.     @feather_bitmaps = []
  1604.     white = Color.new(255, 255, 255, 255)

  1605.     # 1st feather bitmap
  1606.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1607.     @feather_bitmaps[0].set_pixel(0, 2, white)
  1608.     @feather_bitmaps[0].set_pixel(1, 2, grey)
  1609.     @feather_bitmaps[0].set_pixel(2, 1, grey)

  1610.     # 2nd feather bitmap
  1611.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1612.     @feather_bitmaps[0].set_pixel(0, 0, white)
  1613.     @feather_bitmaps[0].set_pixel(0, 1, grey)
  1614.     @feather_bitmaps[0].set_pixel(1, 2, grey)

  1615.     # 3rd feather bitmap
  1616.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1617.     @feather_bitmaps[0].set_pixel(2, 0, white)
  1618.     @feather_bitmaps[0].set_pixel(1, 0, grey)
  1619.     @feather_bitmaps[0].set_pixel(0, 1, grey)

  1620.     # 4th feather bitmap
  1621.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1622.     @feather_bitmaps[0].set_pixel(2, 2, white)
  1623.     @feather_bitmaps[0].set_pixel(2, 1, grey)
  1624.     @feather_bitmaps[0].set_pixel(1, 0, grey)
  1625. #-------------------------------------------------------------------------------   
  1626.     #Blood rain

  1627.     @blood_rain_bitmap = Bitmap.new(7, 56)
  1628.     for i in 0..6
  1629.       @blood_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkRed)
  1630.     end
  1631.     @blood_rain_splash = Bitmap.new(8, 5)
  1632.     @blood_rain_splash.fill_rect(1, 0, 6, 1, darkRed)
  1633.     @blood_rain_splash.fill_rect(1, 4, 6, 1, darkRed)
  1634.     @blood_rain_splash.fill_rect(0, 1, 1, 3, darkRed)
  1635.     @blood_rain_splash.fill_rect(7, 1, 1, 3, darkRed)
  1636. #-------------------------------------------------------------------------------

  1637.     #Blood storm

  1638.     @blood_storm_bitmap = Bitmap.new(34, 64)
  1639.     for i in 0..31
  1640.       @blood_storm_bitmap.fill_rect(33-i, i*2, 1, 2, darkRed)
  1641.       @blood_storm_bitmap.fill_rect(32-i, i*2, 1, 2, darkRed)
  1642.       @blood_storm_bitmap.fill_rect(31-i, i*2, 1, 2, darkRed)
  1643.     end

  1644. #-------------------------------------------------------------------------------
  1645.     #Blood blizzard

  1646.     @bloodblizz_bitmap = Bitmap.new(6, 6)
  1647.     @bloodblizz_bitmap.fill_rect(0, 1, 6, 4, midRed)
  1648.     @bloodblizz_bitmap.fill_rect(1, 0, 4, 6, midRed)
  1649.     @bloodblizz_bitmap.fill_rect(1, 2, 4, 2, darkRed)
  1650.     @bloodblizz_bitmap.fill_rect(2, 1, 2, 4, darkRed)
  1651.     @sprites = []   
  1652.     @bloodblizz_bitmaps = []

  1653.     @bloodblizz_bitmaps[0] = Bitmap.new(3, 3)
  1654.     @bloodblizz_bitmaps[0].fill_rect(0, 0, 3, 3, midRed)
  1655.     @bloodblizz_bitmaps[0].fill_rect(0, 1, 3, 1, darkRed)
  1656.     @bloodblizz_bitmaps[0].fill_rect(1, 0, 1, 3, darkRed)
  1657.     @bloodblizz_bitmaps[0].set_pixel(1, 1, darkRed)

  1658.     @bloodblizz_bitmaps[1] = Bitmap.new(4, 4)
  1659.     @bloodblizz_bitmaps[1].fill_rect(0, 1, 4, 2, midRed)
  1660.     @bloodblizz_bitmaps[1].fill_rect(1, 0, 2, 4, midRed)
  1661.     @bloodblizz_bitmaps[1].fill_rect(1, 1, 2, 2, darkRed)

  1662.     @bloodblizz_bitmaps[2] = Bitmap.new(5, 5)
  1663.     @bloodblizz_bitmaps[1].fill_rect(0, 1, 5, 3, darkRed)
  1664.     @bloodblizz_bitmaps[1].fill_rect(1, 0, 3, 5, darkRed)
  1665.     @bloodblizz_bitmaps[1].fill_rect(1, 1, 3, 3, midRed)
  1666.     @bloodblizz_bitmaps[1].fill_rect(2, 1, 3, 1, darkRed)
  1667.     @bloodblizz_bitmaps[1].fill_rect(1, 2, 1, 3, darkRed)

  1668.     @bloodblizz_bitmaps[3] = Bitmap.new(7, 7)
  1669.     @bloodblizz_bitmaps[1].fill_rect(1, 1, 5, 5, darkRed)
  1670.     @bloodblizz_bitmaps[1].fill_rect(2, 0, 7, 3, darkRed)
  1671.     @bloodblizz_bitmaps[1].fill_rect(0, 2, 3, 7, darkRed)
  1672.     @bloodblizz_bitmaps[1].fill_rect(2, 1, 5, 3, midRed)
  1673.     @bloodblizz_bitmaps[1].fill_rect(1, 2, 3, 5, midRed)
  1674.     @bloodblizz_bitmaps[1].fill_rect(2, 2, 3, 3, darkRed)
  1675.     @bloodblizz_bitmaps[1].fill_rect(3, 1, 5, 1, darkRed)
  1676.     @bloodblizz_bitmaps[1].fill_rect(1, 3, 1, 5, darkRed)
  1677. #-------------------------------------------------------------------------------  

  1678.     # Oil rain

  1679.     darkgrey = Color.new(15, 15, 15, 255)
  1680.     black = Color.new(0, 0, 0, 255)

  1681.     @oil_rain_bitmap = Bitmap.new(7, 56)
  1682.     for i in 0..6
  1683.     @oil_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkgrey)
  1684.       end
  1685.     @oil_rain_splash = Bitmap.new(8, 5)
  1686.     @oil_rain_splash.fill_rect(1, 0, 6, 1, darkgrey)
  1687.     @oil_rain_splash.fill_rect(1, 4, 6, 1, darkgrey)
  1688.     @oil_rain_splash.fill_rect(0, 1, 1, 3, black)
  1689.     @oil_rain_splash.fill_rect(7, 1, 1, 3, black)
  1690. #-------------------------------------------------------------------------------

  1691.     # Oil storm

  1692.       @oil_storm_bitmap = Bitmap.new(34, 64)
  1693.     for i in 0..31
  1694.       @oil_storm_bitmap.fill_rect(33-i, i*2, 1, 2, darkgrey)
  1695.       @oil_storm_bitmap.fill_rect(32-i, i*2, 1, 2, darkgrey)
  1696.       @oil_storm_bitmap.fill_rect(31-i, i*2, 1, 2, darkgrey)
  1697.     end
  1698. #-------------------------------------------------------------------------------

  1699.     # Golden rain

  1700.     darkYellow  = Color.new(110, 104, 3, 255)
  1701.     midYellow   = Color.new(205, 194, 23, 255)
  1702.     darkYellowtwo  = Color.new(186, 176, 14, 255)
  1703.     lightYellow = Color.new(218, 207, 36, 255)
  1704.     lightYellowtwo = Color.new(227, 217, 56, 255)   

  1705.     @golden_rain_bitmap = Bitmap.new(7, 56)
  1706.     for i in 0..6
  1707.     @golden_rain_bitmap.fill_rect(6-i, i*8, 1, 8, lightYellow)
  1708.       end
  1709.     @golden_rain_splash = Bitmap.new(8, 5)
  1710.     @golden_rain_splash.fill_rect(1, 0, 6, 1, lightYellow)
  1711.     @golden_rain_splash.fill_rect(1, 4, 6, 1, lightYellow)
  1712.     @golden_rain_splash.fill_rect(0, 1, 1, 3, lightYellow)
  1713.     @golden_rain_splash.fill_rect(7, 1, 1, 3, lightYellow)
  1714. #-------------------------------------------------------------------------------

  1715.      # Golden storm

  1716.       @golden_storm_bitmap = Bitmap.new(34, 64)
  1717.     for i in 0..31
  1718.       @golden_storm_bitmap.fill_rect(33-i, i*2, 1, 2, lightYellow)
  1719.       @golden_storm_bitmap.fill_rect(32-i, i*2, 1, 2, lightYellow)
  1720.       @golden_storm_bitmap.fill_rect(31-i, i*2, 1, 2, lightYellow)
  1721.     end
  1722. #-------------------------------------------------------------------------------

  1723.     # Acid rain

  1724.     @acid_rain_bitmap = Bitmap.new(7, 56)
  1725.     for i in 0..6
  1726.     @acid_rain_bitmap.fill_rect(6-i, i*8, 1, 8, midGreen)
  1727.       end
  1728.     @acid_rain_splash = Bitmap.new(8, 5)
  1729.     @acid_rain_splash.fill_rect(1, 0, 6, 1, white)
  1730.     @acid_rain_splash.fill_rect(1, 4, 6, 1, white)
  1731.     @acid_rain_splash.fill_rect(0, 1, 1, 3, white)
  1732.     @acid_rain_splash.fill_rect(7, 1, 1, 3, white)
  1733. #-------------------------------------------------------------------------------

  1734.      # Acid storm

  1735.       @acid_storm_bitmap = Bitmap.new(34, 64)
  1736.     for i in 0..31
  1737.       @acid_storm_bitmap.fill_rect(33-i, i*2, 1, 2, khaki)
  1738.       @acid_storm_bitmap.fill_rect(32-i, i*2, 1, 2, khaki)
  1739.       @acid_storm_bitmap.fill_rect(31-i, i*2, 1, 2, midGreen)
  1740.     end
  1741. #-------------------------------------------------------------------------------

  1742.     # Sepia rain

  1743.     sepia_color = Color.new(167, 149, 139, 255)
  1744.     sepia_colortwo = Color.new(100, 75, 63, 255)

  1745.     @sepia_rain_bitmap = Bitmap.new(7, 56)
  1746.     for i in 0..6
  1747.     @sepia_rain_bitmap.fill_rect(6-i, i*8, 1, 8, sepia_colortwo)
  1748.       end
  1749.     @sepia_rain_splash = Bitmap.new(8, 5)
  1750.     @sepia_rain_splash.fill_rect(1, 0, 6, 1, sepia_colortwo)
  1751.     @sepia_rain_splash.fill_rect(1, 4, 6, 1, sepia_color)
  1752.     @sepia_rain_splash.fill_rect(0, 1, 1, 3, sepia_colortwo)
  1753.     @sepia_rain_splash.fill_rect(7, 1, 1, 3, sepia_color)
  1754. #-------------------------------------------------------------------------------

  1755.      # Sepia storm

  1756.       @sepia_storm_bitmap = Bitmap.new(34, 64)
  1757.     for i in 0..31
  1758.       @sepia_storm_bitmap.fill_rect(33-i, i*2, 1, 2, sepia_colortwo)
  1759.       @sepia_storm_bitmap.fill_rect(32-i, i*2, 1, 2, sepia_colortwo)
  1760.       @sepia_storm_bitmap.fill_rect(31-i, i*2, 1, 2, sepia_color)
  1761.     end
  1762. #-------------------------------------------------------------------------------

  1763.     # Yellow leaves

  1764.     @yellow_leaf_bitmaps = []

  1765.    # 1st leaf bitmap
  1766.     @yellow_leaf_bitmaps[0] = Bitmap.new(8, 8)
  1767.     @yellow_leaf_bitmaps[0].set_pixel(1, 0, darkYellow)
  1768.     @yellow_leaf_bitmaps[0].set_pixel(1, 1, midYellow)
  1769.     @yellow_leaf_bitmaps[0].set_pixel(2, 1, darkYellow)
  1770.     @yellow_leaf_bitmaps[0].set_pixel(2, 2, darkYellowtwo)
  1771.     @yellow_leaf_bitmaps[0].set_pixel(3, 2, darkYellow)
  1772.     @yellow_leaf_bitmaps[0].set_pixel(4, 2, darkYellowtwo)
  1773.     @yellow_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midYellow)
  1774.     @yellow_leaf_bitmaps[0].set_pixel(5, 3, darkYellowtwo)
  1775.     @yellow_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midYellow)
  1776.     @yellow_leaf_bitmaps[0].set_pixel(4, 4, darkYellow)
  1777.     @yellow_leaf_bitmaps[0].set_pixel(5, 4, lightYellow)
  1778.     @yellow_leaf_bitmaps[0].set_pixel(6, 4, darkYellowtwo)
  1779.     @yellow_leaf_bitmaps[0].set_pixel(3, 5, midYellow)
  1780.     @yellow_leaf_bitmaps[0].set_pixel(4, 5, darkYellow)
  1781.     @yellow_leaf_bitmaps[0].set_pixel(5, 5, darkYellowtwo)
  1782.     @yellow_leaf_bitmaps[0].set_pixel(6, 5, lightYellow)
  1783.     @yellow_leaf_bitmaps[0].set_pixel(4, 6, midYellow)
  1784.     @yellow_leaf_bitmaps[0].set_pixel(5, 6, darkYellow)
  1785.     @yellow_leaf_bitmaps[0].set_pixel(6, 6, lightYellow)
  1786.     @yellow_leaf_bitmaps[0].set_pixel(6, 7, darkYellowtwo)

  1787.     # 2nd leaf bitmap
  1788.     @yellow_leaf_bitmaps[1] = Bitmap.new(8, 8)
  1789.     @yellow_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midYellow)
  1790.     @yellow_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, darkYellowtwo)
  1791.     @yellow_leaf_bitmaps[1].set_pixel(4, 2, lightYellow)
  1792.     @yellow_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkYellow)
  1793.     @yellow_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightYellow)
  1794.     @yellow_leaf_bitmaps[1].set_pixel(2, 4, midYellow)
  1795.     @yellow_leaf_bitmaps[1].set_pixel(3, 4, darkYellow)
  1796.     @yellow_leaf_bitmaps[1].set_pixel(4, 4, darkYellowtwo)
  1797.     @yellow_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightYellow)
  1798.     @yellow_leaf_bitmaps[1].set_pixel(3, 5, midYellow)
  1799.     @yellow_leaf_bitmaps[1].set_pixel(4, 5, darkYellow)
  1800.     @yellow_leaf_bitmaps[1].set_pixel(5, 5, darkYellowtwo)
  1801.     @yellow_leaf_bitmaps[1].set_pixel(6, 5, lightYellow)
  1802.     @yellow_leaf_bitmaps[1].set_pixel(5, 6, darkYellow)
  1803.     @yellow_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, darkYellowtwo)

  1804.     # 3rd leaf bitmap
  1805.     @yellow_leaf_bitmaps[2] = Bitmap.new(8, 8)
  1806.     @yellow_leaf_bitmaps[2].set_pixel(1, 1, darkYellow)
  1807.     @yellow_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midYellow)
  1808.     @yellow_leaf_bitmaps[2].set_pixel(2, 3, midYellow)
  1809.     @yellow_leaf_bitmaps[2].set_pixel(3, 3, darkYellow)
  1810.     @yellow_leaf_bitmaps[2].set_pixel(4, 3, midYellow)
  1811.     @yellow_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midYellow)
  1812.     @yellow_leaf_bitmaps[2].set_pixel(4, 4, darkYellow)
  1813.     @yellow_leaf_bitmaps[2].set_pixel(5, 4, lightYellow)
  1814.     @yellow_leaf_bitmaps[2].set_pixel(3, 5, midYellow)
  1815.     @yellow_leaf_bitmaps[2].set_pixel(4, 5, darkYellow)
  1816.     @yellow_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, darkYellowtwo)
  1817.     @yellow_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midYellow)
  1818.     @yellow_leaf_bitmaps[2].set_pixel(6, 6, lightYellow)
  1819.     @yellow_leaf_bitmaps[2].set_pixel(6, 7, darkYellowtwo)

  1820.     # 4th leaf bitmap
  1821.     @yellow_leaf_bitmaps[3] = Bitmap.new(8, 8)
  1822.     @yellow_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkYellow)
  1823.     @yellow_leaf_bitmaps[3].set_pixel(1, 4, midYellow)
  1824.     @yellow_leaf_bitmaps[3].set_pixel(2, 4, darkYellowtwo)
  1825.     @yellow_leaf_bitmaps[3].set_pixel(3, 4, lightYellow)
  1826.     @yellow_leaf_bitmaps[3].set_pixel(4, 4, darkYellow)
  1827.     @yellow_leaf_bitmaps[3].set_pixel(7, 4, midYellow)
  1828.     @yellow_leaf_bitmaps[3].set_pixel(1, 5, darkYellow)
  1829.     @yellow_leaf_bitmaps[3].set_pixel(2, 5, midYellow)
  1830.     @yellow_leaf_bitmaps[3].set_pixel(3, 5, lightYellow)
  1831.     @yellow_leaf_bitmaps[3].set_pixel(4, 5, lightYellowtwo)
  1832.     @yellow_leaf_bitmaps[3].set_pixel(5, 5, lightYellow)
  1833.     @yellow_leaf_bitmaps[3].set_pixel(6, 5, darkYellowtwo)
  1834.     @yellow_leaf_bitmaps[3].set_pixel(7, 5, midYellow)
  1835.     @yellow_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midYellow)
  1836.     @yellow_leaf_bitmaps[3].set_pixel(4, 6, lightYellow)
  1837.     @yellow_leaf_bitmaps[3].set_pixel(5, 6, darkYellowtwo)
  1838.     @yellow_leaf_bitmaps[3].set_pixel(6, 6, midYellow)

  1839.     # 5th leaf bitmap
  1840.     @yellow_leaf_bitmaps[4] = Bitmap.new(8, 8)
  1841.     @yellow_leaf_bitmaps[4].set_pixel(6, 2, midYellow)
  1842.     @yellow_leaf_bitmaps[4].set_pixel(7, 2, darkYellow)
  1843.     @yellow_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midYellow)
  1844.     @yellow_leaf_bitmaps[4].set_pixel(6, 3, darkYellowtwo)
  1845.     @yellow_leaf_bitmaps[4].set_pixel(2, 4, darkYellow)
  1846.     @yellow_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, darkYellowtwo)
  1847.     @yellow_leaf_bitmaps[4].set_pixel(5, 4, lightYellow)
  1848.     @yellow_leaf_bitmaps[4].set_pixel(6, 4, darkYellowtwo)
  1849.     @yellow_leaf_bitmaps[4].set_pixel(1, 5, midYellow)
  1850.     @yellow_leaf_bitmaps[4].set_pixel(2, 5, darkYellowtwo)
  1851.     @yellow_leaf_bitmaps[4].set_pixel(3, 5, lightYellow)
  1852.     @yellow_leaf_bitmaps[4].set_pixel(4, 5, lightYellowtwo)
  1853.     @yellow_leaf_bitmaps[4].set_pixel(5, 5, midYellow)
  1854.     @yellow_leaf_bitmaps[4].set_pixel(2, 6, darkYellow)
  1855.     @yellow_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midYellow)

  1856.     # 6th leaf bitmap
  1857.     @yellow_leaf_bitmaps[5] = Bitmap.new(8, 8)
  1858.     @yellow_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midYellow)
  1859.     @yellow_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midYellow)
  1860.     @yellow_leaf_bitmaps[5].set_pixel(6, 3, darkYellowtwo)
  1861.     @yellow_leaf_bitmaps[5].set_pixel(3, 4, midYellow)
  1862.     @yellow_leaf_bitmaps[5].set_pixel(4, 4, darkYellowtwo)
  1863.     @yellow_leaf_bitmaps[5].set_pixel(5, 4, lightYellow)
  1864.     @yellow_leaf_bitmaps[5].set_pixel(6, 4, lightYellowtwo)
  1865.     @yellow_leaf_bitmaps[5].set_pixel(1, 5, midYellow)
  1866.     @yellow_leaf_bitmaps[5].set_pixel(2, 5, darkYellowtwo)
  1867.     @yellow_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, lightYellowtwo)
  1868.     @yellow_leaf_bitmaps[5].set_pixel(5, 5, lightYellow)
  1869.     @yellow_leaf_bitmaps[5].set_pixel(2, 6, midYellow)
  1870.     @yellow_leaf_bitmaps[5].set_pixel(3, 6, darkYellowtwo)
  1871.     @yellow_leaf_bitmaps[5].set_pixel(4, 6, lightYellow)

  1872.     # 7th leaf bitmap
  1873.     @yellow_leaf_bitmaps[6] = Bitmap.new(8, 8)
  1874.     @yellow_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midYellow)
  1875.     @yellow_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midYellow)
  1876.     @yellow_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkYellow)
  1877.     @yellow_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midYellow)
  1878.     @yellow_leaf_bitmaps[6].set_pixel(5, 3, darkYellowtwo)
  1879.     @yellow_leaf_bitmaps[6].set_pixel(2, 4, midYellow)
  1880.     @yellow_leaf_bitmaps[6].set_pixel(3, 4, darkYellowtwo)
  1881.     @yellow_leaf_bitmaps[6].set_pixel(4, 4, lightYellow)
  1882.     @yellow_leaf_bitmaps[6].set_pixel(5, 4, midYellow)
  1883.     @yellow_leaf_bitmaps[6].set_pixel(1, 5, midYellow)
  1884.     @yellow_leaf_bitmaps[6].set_pixel(2, 5, darkYellowtwo)
  1885.     @yellow_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midYellow)
  1886.     @yellow_leaf_bitmaps[6].set_pixel(1, 6, darkYellow)
  1887.     @yellow_leaf_bitmaps[6].set_pixel(2, 6, midYellow)

  1888.     # 8th leaf bitmap
  1889.     @yellow_leaf_bitmaps[7] = Bitmap.new(8, 8)
  1890.     @yellow_leaf_bitmaps[7].set_pixel(6, 1, midYellow)
  1891.     @yellow_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midYellow)
  1892.     @yellow_leaf_bitmaps[7].set_pixel(3, 3, darkYellow)
  1893.     @yellow_leaf_bitmaps[7].set_pixel(2, 4, darkYellow)
  1894.     @yellow_leaf_bitmaps[7].set_pixel(3, 4, midYellow)
  1895.     @yellow_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, darkYellowtwo)
  1896.     @yellow_leaf_bitmaps[7].set_pixel(1, 5, darkYellow)
  1897.     @yellow_leaf_bitmaps[7].set_pixel(2, 5, midYellow)
  1898.     @yellow_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightYellow)
  1899.     @yellow_leaf_bitmaps[7].set_pixel(2, 6, midYellow)
  1900.     @yellow_leaf_bitmaps[7].set_pixel(3, 6, lightYellow)

  1901.     # 9th leaf bitmap
  1902.     @yellow_leaf_bitmaps[8] = Bitmap.new(8, 8)
  1903.     @yellow_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midYellow)
  1904.     @yellow_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midYellow)
  1905.     @yellow_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkYellow)
  1906.     @yellow_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midYellow)
  1907.     @yellow_leaf_bitmaps[8].set_pixel(5, 3, darkYellowtwo)
  1908.     @yellow_leaf_bitmaps[8].set_pixel(2, 4, midYellow)
  1909.     @yellow_leaf_bitmaps[8].set_pixel(3, 4, darkYellowtwo)
  1910.     @yellow_leaf_bitmaps[8].set_pixel(4, 4, lightYellow)
  1911.     @yellow_leaf_bitmaps[8].set_pixel(5, 4, midYellow)
  1912.     @yellow_leaf_bitmaps[8].set_pixel(1, 5, midYellow)
  1913.     @yellow_leaf_bitmaps[8].set_pixel(2, 5, darkYellowtwo)
  1914.     @yellow_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midYellow)
  1915.     @yellow_leaf_bitmaps[8].set_pixel(1, 6, darkYellow)
  1916.     @yellow_leaf_bitmaps[8].set_pixel(2, 6, midYellow)

  1917.     # 10th leaf bitmap
  1918.     @yellow_leaf_bitmaps[9] = Bitmap.new(8, 8)
  1919.     @yellow_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midYellow)
  1920.     @yellow_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midYellow)
  1921.     @yellow_leaf_bitmaps[9].set_pixel(6, 3, darkYellowtwo)
  1922.     @yellow_leaf_bitmaps[9].set_pixel(3, 4, midYellow)
  1923.     @yellow_leaf_bitmaps[9].set_pixel(4, 4, darkYellowtwo)
  1924.     @yellow_leaf_bitmaps[9].set_pixel(5, 4, lightYellow)
  1925.     @yellow_leaf_bitmaps[9].set_pixel(6, 4, lightYellowtwo)
  1926.     @yellow_leaf_bitmaps[9].set_pixel(1, 5, midYellow)
  1927.     @yellow_leaf_bitmaps[9].set_pixel(2, 5, darkYellowtwo)
  1928.     @yellow_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, lightYellowtwo)
  1929.     @yellow_leaf_bitmaps[9].set_pixel(5, 5, lightYellow)
  1930.     @yellow_leaf_bitmaps[9].set_pixel(2, 6, midYellow)
  1931.     @yellow_leaf_bitmaps[9].set_pixel(3, 6, darkYellowtwo)
  1932.     @yellow_leaf_bitmaps[9].set_pixel(4, 6, lightYellow)

  1933.     # 11th leaf bitmap
  1934.     @yellow_leaf_bitmaps[10] = Bitmap.new(8, 8)
  1935.     @yellow_leaf_bitmaps[10].set_pixel(6, 2, midYellow)
  1936.     @yellow_leaf_bitmaps[10].set_pixel(7, 2, darkYellow)
  1937.     @yellow_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midYellow)
  1938.     @yellow_leaf_bitmaps[10].set_pixel(6, 3, darkYellowtwo)
  1939.     @yellow_leaf_bitmaps[10].set_pixel(2, 4, darkYellow)
  1940.     @yellow_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, darkYellowtwo)
  1941.     @yellow_leaf_bitmaps[10].set_pixel(5, 4, lightYellow)
  1942.     @yellow_leaf_bitmaps[10].set_pixel(6, 4, darkYellowtwo)
  1943.     @yellow_leaf_bitmaps[10].set_pixel(1, 5, midYellow)
  1944.     @yellow_leaf_bitmaps[10].set_pixel(2, 5, darkYellowtwo)
  1945.     @yellow_leaf_bitmaps[10].set_pixel(3, 5, lightYellow)
  1946.     @yellow_leaf_bitmaps[10].set_pixel(4, 5, lightYellowtwo)
  1947.     @yellow_leaf_bitmaps[10].set_pixel(5, 5, midYellow)
  1948.     @yellow_leaf_bitmaps[10].set_pixel(2, 6, darkYellow)
  1949.     @yellow_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midYellow)

  1950.     # 12th leaf bitmap
  1951.     @yellow_leaf_bitmaps[11] = Bitmap.new(8, 8)
  1952.     @yellow_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkYellow)
  1953.     @yellow_leaf_bitmaps[11].set_pixel(1, 4, midYellow)
  1954.     @yellow_leaf_bitmaps[11].set_pixel(2, 4, darkYellowtwo)
  1955.     @yellow_leaf_bitmaps[11].set_pixel(3, 4, lightYellow)
  1956.     @yellow_leaf_bitmaps[11].set_pixel(4, 4, darkYellow)
  1957.     @yellow_leaf_bitmaps[11].set_pixel(7, 4, midYellow)
  1958.     @yellow_leaf_bitmaps[11].set_pixel(1, 5, darkYellow)
  1959.     @yellow_leaf_bitmaps[11].set_pixel(2, 5, midYellow)
  1960.     @yellow_leaf_bitmaps[11].set_pixel(3, 5, lightYellow)
  1961.     @yellow_leaf_bitmaps[11].set_pixel(4, 5, lightYellowtwo)
  1962.     @yellow_leaf_bitmaps[11].set_pixel(5, 5, lightYellow)
  1963.     @yellow_leaf_bitmaps[11].set_pixel(6, 5, darkYellowtwo)
  1964.     @yellow_leaf_bitmaps[11].set_pixel(7, 5, midYellow)
  1965.     @yellow_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midYellow)
  1966.     @yellow_leaf_bitmaps[11].set_pixel(4, 6, lightYellow)
  1967.     @yellow_leaf_bitmaps[11].set_pixel(5, 6, darkYellowtwo)
  1968.     @yellow_leaf_bitmaps[11].set_pixel(6, 6, midYellow)

  1969.     # 13th leaf bitmap
  1970.     @yellow_leaf_bitmaps[12] = Bitmap.new(8, 8)
  1971.     @yellow_leaf_bitmaps[12].set_pixel(1, 1, darkYellow)
  1972.     @yellow_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midYellow)
  1973.     @yellow_leaf_bitmaps[12].set_pixel(2, 3, midYellow)
  1974.     @yellow_leaf_bitmaps[12].set_pixel(3, 3, darkYellow)
  1975.     @yellow_leaf_bitmaps[12].set_pixel(4, 3, midYellow)
  1976.     @yellow_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midYellow)
  1977.     @yellow_leaf_bitmaps[12].set_pixel(4, 4, darkYellow)
  1978.     @yellow_leaf_bitmaps[12].set_pixel(5, 4, lightYellow)
  1979.     @yellow_leaf_bitmaps[12].set_pixel(3, 5, midYellow)
  1980.     @yellow_leaf_bitmaps[12].set_pixel(4, 5, darkYellow)
  1981.     @yellow_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, darkYellowtwo)
  1982.     @yellow_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midYellow)
  1983.     @yellow_leaf_bitmaps[12].set_pixel(6, 6, lightYellow)
  1984.     @yellow_leaf_bitmaps[12].set_pixel(6, 7, darkYellowtwo)

  1985. #-------------------------------------------------------------------------------   
  1986.     @sparkle_bitmaps = []

  1987.     lightBlue = Color.new(181, 244, 255, 255)
  1988.     midBlue   = Color.new(126, 197, 235, 255)
  1989.     darkBlue  = Color.new(77, 136, 225, 255)

  1990.     # 1st sparkle bitmap
  1991.     @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  1992.     @sparkle_bitmaps[0].set_pixel(3, 3, darkBlue)

  1993.     # 2nd sparkle bitmap
  1994.     @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  1995.     @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, darkBlue)
  1996.     @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, darkBlue)
  1997.     @sparkle_bitmaps[1].set_pixel(3, 3, midBlue)

  1998.     # 3rd sparkle bitmap
  1999.     @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  2000.     @sparkle_bitmaps[2].set_pixel(1, 1, darkBlue)
  2001.     @sparkle_bitmaps[2].set_pixel(5, 1, darkBlue)
  2002.     @sparkle_bitmaps[2].set_pixel(2, 2, midBlue)
  2003.     @sparkle_bitmaps[2].set_pixel(4, 2, midBlue)
  2004.     @sparkle_bitmaps[2].set_pixel(3, 3, lightBlue)
  2005.     @sparkle_bitmaps[2].set_pixel(2, 4, midBlue)
  2006.     @sparkle_bitmaps[2].set_pixel(4, 4, midBlue)
  2007.     @sparkle_bitmaps[2].set_pixel(1, 5, darkBlue)
  2008.     @sparkle_bitmaps[2].set_pixel(5, 5, darkBlue)

  2009.     # 4th sparkle bitmap
  2010.     @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  2011.     @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, darkBlue)
  2012.     @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, darkBlue)
  2013.     @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, midBlue)
  2014.     @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, midBlue)
  2015.     @sparkle_bitmaps[3].set_pixel(3, 3, lightBlue)

  2016.     # 5th sparkle bitmap
  2017.     @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  2018.     @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, midBlue)
  2019.     @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, darkBlue)
  2020.     @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, darkBlue)
  2021.     @sparkle_bitmaps[4].set_pixel(3, 3, lightBlue)
  2022.     @sparkle_bitmaps[4].set_pixel(1, 1, darkBlue)
  2023.     @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  2024.     @sparkle_bitmaps[4].set_pixel(1, 5, darkBlue)
  2025.     @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)

  2026.     # 6th sparkle bitmap
  2027.     @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  2028.     @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, darkBlue)
  2029.     @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, darkBlue)
  2030.     @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, midBlue)
  2031.     @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, midBlue)
  2032.     @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, midBlue)
  2033.     @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, lightBlue)
  2034.     @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, lightBlue)
  2035.     @sparkle_bitmaps[5].set_pixel(3, 3, white)

  2036.     # 7th sparkle bitmap
  2037.     @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  2038.     @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, midBlue)
  2039.     @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, midBlue)
  2040.     @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, darkBlue)
  2041.     @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, darkBlue)
  2042.     @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, lightBlue)
  2043.     @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, midBlue)
  2044.     @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, midBlue)
  2045.     @sparkle_bitmaps[6].set_pixel(3, 3, white)
  2046. #-------------------------------------------------------------------------------   
  2047.     # Meteor bitmap

  2048.     @meteor_bitmap = Bitmap.new(14, 12)
  2049.     @meteor_bitmap.fill_rect(0, 8, 5, 4, paleOrange)
  2050.     @meteor_bitmap.fill_rect(1, 7, 6, 4, paleOrange)
  2051.     @meteor_bitmap.set_pixel(7, 8, paleOrange)
  2052.     @meteor_bitmap.fill_rect(1, 8, 2, 2, brightOrange)
  2053.     @meteor_bitmap.set_pixel(2, 7, brightOrange)
  2054.     @meteor_bitmap.fill_rect(3, 6, 2, 1, brightOrange)
  2055.     @meteor_bitmap.set_pixel(3, 8, brightOrange)
  2056.     @meteor_bitmap.set_pixel(3, 10, brightOrange)
  2057.     @meteor_bitmap.set_pixel(4, 9, brightOrange)
  2058.     @meteor_bitmap.fill_rect(5, 5, 1, 5, brightOrange)
  2059.     @meteor_bitmap.fill_rect(6, 4, 1, 5, brightOrange)
  2060.     @meteor_bitmap.fill_rect(7, 3, 1, 5, brightOrange)
  2061.     @meteor_bitmap.fill_rect(8, 6, 1, 2, brightOrange)
  2062.     @meteor_bitmap.set_pixel(9, 5, brightOrange)
  2063.     @meteor_bitmap.set_pixel(3, 8, midRed)
  2064.     @meteor_bitmap.fill_rect(4, 7, 1, 2, midRed)
  2065.     @meteor_bitmap.set_pixel(4, 5, midRed)
  2066.     @meteor_bitmap.set_pixel(5, 4, midRed)
  2067.     @meteor_bitmap.set_pixel(5, 6, midRed)
  2068.     @meteor_bitmap.set_pixel(6, 5, midRed)
  2069.     @meteor_bitmap.set_pixel(6, 7, midRed)
  2070.     @meteor_bitmap.fill_rect(7, 4, 1, 3, midRed)
  2071.     @meteor_bitmap.fill_rect(8, 3, 1, 3, midRed)
  2072.     @meteor_bitmap.fill_rect(9, 2, 1, 3, midRed)
  2073.     @meteor_bitmap.fill_rect(10, 1, 1, 3, midRed)
  2074.     @meteor_bitmap.fill_rect(11, 0, 1, 3, midRed)
  2075.     @meteor_bitmap.fill_rect(12, 0, 1, 2, midRed)
  2076.     @meteor_bitmap.set_pixel(13, 0, midRed)

  2077.     # Impact bitmap

  2078.     @impact_bitmap = Bitmap.new(22, 11)
  2079.     @impact_bitmap.fill_rect(0, 5, 1, 2, brightOrange)
  2080.     @impact_bitmap.set_pixel(1, 4, brightOrange)
  2081.     @impact_bitmap.set_pixel(1, 6, brightOrange)
  2082.     @impact_bitmap.set_pixel(2, 3, brightOrange)
  2083.     @impact_bitmap.set_pixel(2, 7, brightOrange)
  2084.     @impact_bitmap.set_pixel(3, 2, midRed)
  2085.     @impact_bitmap.set_pixel(3, 7, midRed)
  2086.     @impact_bitmap.set_pixel(4, 2, brightOrange)
  2087.     @impact_bitmap.set_pixel(4, 8, brightOrange)
  2088.     @impact_bitmap.set_pixel(5, 2, midRed)
  2089.     @impact_bitmap.fill_rect(5, 8, 3, 1, brightOrange)
  2090.     @impact_bitmap.set_pixel(6, 1, midRed)
  2091.     @impact_bitmap.fill_rect(7, 1, 8, 1, brightOrange)
  2092.     @impact_bitmap.fill_rect(7, 9, 8, 1, midRed)
  2093. #-------------------------------------------------------------------------------   
  2094.     # Flame meteor bitmap

  2095.     @flame_meteor_bitmap = Bitmap.new(14, 12)
  2096.     @flame_meteor_bitmap.fill_rect(0, 8, 5, 4, brightOrange)
  2097.     @flame_meteor_bitmap.fill_rect(1, 7, 6, 4, brightOrange)
  2098.     @flame_meteor_bitmap.set_pixel(7, 8, brightOrange)
  2099.     @flame_meteor_bitmap.fill_rect(1, 8, 2, 2, midYellow)
  2100.     @flame_meteor_bitmap.set_pixel(2, 7, midYellow)
  2101.     @flame_meteor_bitmap.fill_rect(3, 6, 2, 1, midYellow)
  2102.     @flame_meteor_bitmap.set_pixel(3, 8, midYellow)
  2103.     @flame_meteor_bitmap.set_pixel(3, 10, midYellow)
  2104.     @flame_meteor_bitmap.set_pixel(4, 9, midYellow)
  2105.     @flame_meteor_bitmap.fill_rect(5, 5, 1, 5, midYellow)
  2106.     @flame_meteor_bitmap.fill_rect(6, 4, 1, 5, midYellow)
  2107.     @flame_meteor_bitmap.fill_rect(7, 3, 1, 5, midYellow)
  2108.     @flame_meteor_bitmap.fill_rect(8, 6, 1, 2, midYellow)
  2109.     @flame_meteor_bitmap.set_pixel(9, 5, midYellow)
  2110.     @flame_meteor_bitmap.set_pixel(3, 8, lightYellow)
  2111.     @flame_meteor_bitmap.fill_rect(4, 7, 1, 2, lightYellowtwo)
  2112.     @flame_meteor_bitmap.set_pixel(4, 5, lightYellow)
  2113.     @flame_meteor_bitmap.set_pixel(5, 4, lightYellow)
  2114.     @flame_meteor_bitmap.set_pixel(5, 6, lightYellow)
  2115.     @flame_meteor_bitmap.set_pixel(6, 5, lightYellow)
  2116.     @flame_meteor_bitmap.set_pixel(6, 7, lightYellow)
  2117.     @flame_meteor_bitmap.fill_rect(7, 4, 1, 3, lightYellow)
  2118.     @flame_meteor_bitmap.fill_rect(8, 3, 1, 3, lightYellow)
  2119.     @flame_meteor_bitmap.fill_rect(9, 2, 1, 3, lightYellow)
  2120.     @flame_meteor_bitmap.fill_rect(10, 1, 1, 3, lightYellow)
  2121.     @flame_meteor_bitmap.fill_rect(11, 0, 1, 3, lightYellow)
  2122.     @flame_meteor_bitmap.fill_rect(12, 0, 1, 2, lightYellow)
  2123.     @flame_meteor_bitmap.set_pixel(13, 0, lightYellow)

  2124.     # Flame impact bitmap

  2125.     @flame_impact_bitmap = Bitmap.new(22, 11)
  2126.     @flame_impact_bitmap.fill_rect(0, 5, 1, 2, midYellow)
  2127.     @flame_impact_bitmap.set_pixel(1, 4, midYellow)
  2128.     @flame_impact_bitmap.set_pixel(1, 6, midYellow)
  2129.     @flame_impact_bitmap.set_pixel(2, 3, midYellow)
  2130.     @flame_impact_bitmap.set_pixel(2, 7, midYellow)
  2131.     @flame_impact_bitmap.set_pixel(3, 2, midYellow)
  2132.     @flame_impact_bitmap.set_pixel(3, 7, lightYellow)
  2133.     @flame_impact_bitmap.set_pixel(4, 2, brightOrange)
  2134.     @flame_impact_bitmap.set_pixel(4, 8, brightOrange)
  2135.     @flame_impact_bitmap.set_pixel(5, 2, lightYellow)
  2136.     @flame_impact_bitmap.fill_rect(5, 8, 3, 1, midYellow)
  2137.     @flame_impact_bitmap.set_pixel(6, 1, lightYellow)
  2138.     @flame_impact_bitmap.fill_rect(7, 1, 8, 1, midYellow)
  2139.     @flame_impact_bitmap.fill_rect(7, 9, 8, 1, lightYellow)
  2140. #-------------------------------------------------------------------------------   

  2141.     # Ash bitmaps

  2142.     @ash_bitmaps = []
  2143.     @ash_bitmaps[0] = Bitmap.new(3, 3)
  2144.     @ash_bitmaps[0].fill_rect(0, 1, 1, 3, lightGrey)
  2145.     @ash_bitmaps[0].fill_rect(1, 0, 3, 1, lightGrey)
  2146.     @ash_bitmaps[0].set_pixel(1, 1, white)
  2147.     @ash_bitmaps[1] = Bitmap.new(3, 3)
  2148.     @ash_bitmaps[1].fill_rect(0, 1, 1, 3, grey)
  2149.     @ash_bitmaps[1].fill_rect(1, 0, 3, 1, grey)
  2150.     @ash_bitmaps[1].set_pixel(1, 1, lightGrey)
  2151. #-------------------------------------------------------------------------------   

  2152.     # Bubble bitmaps

  2153.     @bubble_bitmaps = []
  2154.     darkBlue  = Color.new(77, 136, 225, 160)
  2155.     aqua = Color.new(197, 253, 254, 160)
  2156.     lavender = Color.new(225, 190, 244, 160)

  2157.     # first bubble bitmap
  2158.     @bubble_bitmaps[0] = Bitmap.new(24, 24)
  2159.     @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, darkBlue)
  2160.     @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, darkBlue)
  2161.     @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, darkBlue)
  2162.     @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, darkBlue)
  2163.     @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, darkBlue)
  2164.     @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, darkBlue)
  2165.     @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, darkBlue)
  2166.     @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, darkBlue)
  2167.     @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, aqua)
  2168.     @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, aqua)
  2169.     @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, aqua)
  2170.     @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, aqua)
  2171.     @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, aqua)
  2172.     @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, aqua)
  2173.     @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, lavender)
  2174.     @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, lavender)
  2175.     @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, lavender)
  2176.     @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, lavender)
  2177.     @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, lavender)
  2178.     @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, lavender)
  2179.     @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, lavender)
  2180.     @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, white)
  2181.     @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, white)
  2182.     @bubble_bitmaps[0].set_pixel(17, 6, white)

  2183.     # second bubble bitmap
  2184.     @bubble_bitmaps[1] = Bitmap.new(14, 15)
  2185.     @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, darkBlue)
  2186.     @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, darkBlue)
  2187.     @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, darkBlue)
  2188.     @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, darkBlue)
  2189.     @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, darkBlue)
  2190.     @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  2191.     @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, aqua)
  2192.     @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, aqua)
  2193.     @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, aqua)
  2194.     @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  2195.     @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, lavender)
  2196.     @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, lavender)
  2197.     @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, lavender)
  2198.     @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, white)
  2199.     @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, white)
  2200.     @bubble_bitmaps[1].set_pixel(7, 4, white)
  2201.     @bubble_bitmaps[1].set_pixel(8, 5, white)

  2202.     # Other option for bubbles
  2203.     @bubble2_bitmaps = Array.new
  2204.     darkSteelGray = Color.new(145, 150, 155, 160)
  2205.     midSteelGray = Color.new(180, 180, 185, 160)
  2206.     lightSteelGray = Color.new(225, 225, 235, 160)
  2207.     steelBlue = Color.new(145, 145, 165, 160)
  2208.     lightSteelBlue = Color.new(165, 170, 180, 160)
  2209.     transparentWhite = Color.new(255, 255, 255, 160)

  2210.     # first bubble 2 bitmap
  2211.     @bubble2_bitmaps[0] = Bitmap.new(6, 6)
  2212.     @bubble2_bitmaps[0].fill_rect(0, 0, 6, 6, darkSteelGray)
  2213.     @bubble2_bitmaps[0].fill_rect(0, 2, 6, 2, midSteelGray)
  2214.     @bubble2_bitmaps[0].fill_rect(2, 0, 2, 6, midSteelGray)
  2215.     @bubble2_bitmaps[0].fill_rect(2, 2, 2, 2, lightSteelGray)

  2216.     # second bubble 2 bitmap
  2217.     @bubble2_bitmaps[1] = Bitmap.new(8, 8)
  2218.     @bubble2_bitmaps[1].fill_rect(0, 2, 2, 4, steelBlue)
  2219.     @bubble2_bitmaps[1].fill_rect(2, 0, 4, 2, darkSteelGray)
  2220.     @bubble2_bitmaps[1].fill_rect(6, 2, 2, 2, darkSteelGray)
  2221.     @bubble2_bitmaps[1].fill_rect(2, 6, 2, 2, darkSteelGray)
  2222.     @bubble2_bitmaps[1].fill_rect(6, 4, 2, 2, midSteelGray)
  2223.     @bubble2_bitmaps[1].fill_rect(4, 6, 2, 2, midSteelGray)
  2224.     @bubble2_bitmaps[1].fill_rect(4, 4, 2, 2, lightSteelBlue)
  2225.     @bubble2_bitmaps[1].fill_rect(2, 4, 2, 2, lightSteelGray)
  2226.     @bubble2_bitmaps[1].fill_rect(4, 2, 2, 2, lightSteelGray)
  2227.     @bubble2_bitmaps[1].fill_rect(2, 2, 2, 2, transparentWhite)

  2228.     # third bubble 2 bitmap
  2229.     @bubble2_bitmaps[2] = Bitmap.new(8, 10)
  2230.     @bubble2_bitmaps[2].fill_rect(8, 2, 2, 4, steelBlue)
  2231.     @bubble2_bitmaps[2].fill_rect(2, 0, 8, 2, darkSteelGray)
  2232.     @bubble2_bitmaps[2].fill_rect(2, 6, 8, 2, darkSteelGray)
  2233.     @bubble2_bitmaps[2].fill_rect(4, 0, 2, 2, midSteelGray)
  2234.     @bubble2_bitmaps[2].fill_rect(4, 6, 2, 2, midSteelGray)
  2235.     @bubble2_bitmaps[2].fill_rect(0, 2, 2, 2, midSteelGray)
  2236.     @bubble2_bitmaps[2].fill_rect(0, 4, 2, 2, lightSteelBlue)
  2237.     @bubble2_bitmaps[2].fill_rect(2, 2, 6, 4, lightSteelGray)
  2238.     @bubble2_bitmaps[2].fill_rect(2, 2, 4, 2, transparentWhite)
  2239.     @bubble2_bitmaps[2].fill_rect(4, 4, 2, 2, transparentWhite)

  2240.     # fourth bubble 2 bitmap
  2241.     @bubble2_bitmaps[3] = Bitmap.new(14, 14)
  2242.     @bubble2_bitmaps[3].fill_rect(4, 0, 4, 2, steelBlue)
  2243.     @bubble2_bitmaps[3].fill_rect(0, 4, 2, 4, steelBlue)
  2244.     @bubble2_bitmaps[3].fill_rect(12, 4, 2, 4, steelBlue)
  2245.     @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  2246.     @bubble2_bitmaps[3].fill_rect(0, 6, 2, 2, darkSteelGray)
  2247.     @bubble2_bitmaps[3].fill_rect(12, 6, 2, 2, darkSteelGray)
  2248.     @bubble2_bitmaps[3].fill_rect(4, 12, 6, 2, darkSteelGray)
  2249.     @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  2250.     @bubble2_bitmaps[3].fill_rect(2, 2, 10, 10, midSteelGray)
  2251.     @bubble2_bitmaps[3].fill_rect(6, 12, 2, 2, midSteelGray)
  2252.     @bubble2_bitmaps[3].fill_rect(2, 4, 10, 6, lightSteelGray)
  2253.     @bubble2_bitmaps[3].fill_rect(4, 2, 2, 2, lightSteelGray)
  2254.     @bubble2_bitmaps[3].fill_rect(6, 10, 4, 2, lightSteelGray)
  2255.     @bubble2_bitmaps[3].fill_rect(6, 4, 2, 2, transparentWhite)
  2256.     @bubble2_bitmaps[3].fill_rect(4, 6, 2, 2, transparentWhite)
  2257. #-------------------------------------------------------------------------------

  2258.     # Water bombs bitmap

  2259.     @waterbomb_bitmap = Bitmap.new(8, 8)
  2260.     @waterbomb_bitmap.fill_rect(0, 2, 2, 4, aqua)
  2261.     @waterbomb_bitmap.fill_rect(2, 0, 4, 2, aqua)
  2262.     @waterbomb_bitmap.fill_rect(6, 2, 2, 2, aqua)
  2263.     @waterbomb_bitmap.fill_rect(2, 6, 2, 2, aqua)
  2264.     @waterbomb_bitmap.fill_rect(6, 4, 2, 2, aqua)
  2265.     @waterbomb_bitmap.fill_rect(4, 6, 2, 2, aqua)
  2266.     @waterbomb_bitmap.fill_rect(4, 4, 2, 2, aqua)
  2267.     @waterbomb_bitmap.fill_rect(2, 4, 2, 2, aqua)
  2268.     @waterbomb_bitmap.fill_rect(4, 2, 2, 2, aqua)
  2269.     @waterbomb_bitmap.fill_rect(2, 2, 2, 2, aqua)


  2270.     # Water bombs impact bitmap

  2271.     @waterbomb_impact_bitmap = Bitmap.new(8, 5)
  2272.     @waterbomb_impact_bitmap.fill_rect(1, 0, 6, 1, aqua)
  2273.     @waterbomb_impact_bitmap.fill_rect(1, 4, 6, 1, aqua)
  2274.     @waterbomb_impact_bitmap.fill_rect(0, 1, 1, 3, aqua)
  2275.     @waterbomb_impact_bitmap.fill_rect(7, 1, 1, 3, aqua)
  2276.     @waterbomb_impact_bitmap.set_pixel(1, 0, aqua)
  2277.     @waterbomb_impact_bitmap.set_pixel(0, 1, aqua)
  2278. #-------------------------------------------------------------------------------


  2279.     # Icy bombs bitmap

  2280.     @icybomb_bitmap = Bitmap.new(8, 8)
  2281.     @icybomb_bitmap.fill_rect(0, 2, 2, 4, lightBlue)
  2282.     @icybomb_bitmap.fill_rect(2, 0, 4, 2, lightBlue)
  2283.     @icybomb_bitmap.fill_rect(6, 2, 2, 2, lightBlue)
  2284.     @icybomb_bitmap.fill_rect(2, 6, 2, 2, lightBlue)
  2285.     @icybomb_bitmap.fill_rect(6, 4, 2, 2, lightBlue)
  2286.     @icybomb_bitmap.fill_rect(4, 6, 2, 2, lightBlue)
  2287.     @icybomb_bitmap.fill_rect(4, 4, 2, 2, lightBlue)
  2288.     @icybomb_bitmap.fill_rect(2, 4, 2, 2, lightBlue)
  2289.     @icybomb_bitmap.fill_rect(4, 2, 2, 2, lightBlue)
  2290.     @icybomb_bitmap.fill_rect(2, 2, 2, 2, lightBlue)


  2291.     # Icy bombs impact bitmap

  2292.     @icybomb_impact_bitmap = Bitmap.new(8, 5)
  2293.     @icybomb_impact_bitmap.fill_rect(1, 0, 6, 1, lightBlue)
  2294.     @icybomb_impact_bitmap.fill_rect(1, 4, 6, 1, lightBlue)
  2295.     @icybomb_impact_bitmap.fill_rect(0, 1, 1, 3, lightBlue)
  2296.     @icybomb_impact_bitmap.fill_rect(7, 1, 1, 3, lightBlue)
  2297.     @icybomb_impact_bitmap.set_pixel(1, 0, lightBlue)
  2298.     @icybomb_impact_bitmap.set_pixel(0, 1, lightBlue)
  2299. #-------------------------------------------------------------------------------


  2300.     # Flare bombs bitmap

  2301.     @flarebomb_bitmap = Bitmap.new(8, 8)
  2302.     @flarebomb_bitmap.fill_rect(0, 2, 2, 4, midYellow)
  2303.     @flarebomb_bitmap.fill_rect(2, 0, 4, 2, midYellow)
  2304.     @flarebomb_bitmap.fill_rect(6, 2, 2, 2, midYellow)
  2305.     @flarebomb_bitmap.fill_rect(2, 6, 2, 2, brightOrange)
  2306.     @flarebomb_bitmap.fill_rect(6, 4, 2, 2, brightOrange)
  2307.     @flarebomb_bitmap.fill_rect(4, 6, 2, 2, midYellow)
  2308.     @flarebomb_bitmap.fill_rect(4, 4, 2, 2, brightOrange)
  2309.     @flarebomb_bitmap.fill_rect(2, 4, 2, 2, midYellow)
  2310.     @flarebomb_bitmap.fill_rect(4, 2, 2, 2, midYellow)
  2311.     @flarebomb_bitmap.fill_rect(2, 2, 2, 2, midYellow)

  2312.     # Flare bomb impact bitmap

  2313.     @flarebomb_impact_bitmap = Bitmap.new(8, 5)
  2314.     @flarebomb_impact_bitmap.fill_rect(1, 0, 6, 1, brightOrange)
  2315.     @flarebomb_impact_bitmap.fill_rect(1, 4, 6, 1, brightOrange)
  2316.     @flarebomb_impact_bitmap.fill_rect(0, 1, 1, 3, midYellow)
  2317.     @flarebomb_impact_bitmap.fill_rect(7, 1, 1, 3, midYellow)
  2318.     @flarebomb_impact_bitmap.set_pixel(1, 0, midYellow)
  2319.     @flarebomb_impact_bitmap.set_pixel(0, 1, midYellow)
  2320. #-------------------------------------------------------------------------------

  2321.     # Starburst bitmaps

  2322.     @starburst_bitmaps = []

  2323.     starburst_yellow = Color.new(233, 210, 142, 255)
  2324.     starburst_yellowtwo = Color.new(219, 191, 95, 255)
  2325.     starburst_lightyellow = Color.new(242, 229, 190, 255)
  2326.     starburst_pink = Color.new(241, 185, 187, 255)
  2327.     starburst_red = Color.new(196, 55, 84, 255)
  2328.     starburst_redtwo = Color.new(178, 15, 56, 255)
  2329.     starburst_cyan = Color.new(189, 225, 242, 255)
  2330.     starburst_blue = Color.new(102, 181, 221, 255)
  2331.     starburst_bluetwo = Color.new(5, 88, 168, 255)
  2332.     starburst_lightgreen = Color.new(205, 246, 205, 255)
  2333.     starburst_green = Color.new(88, 221, 89, 255)
  2334.     starburst_greentwo = Color.new(44, 166, 0, 255)
  2335.     starburst_purple = Color.new(216, 197, 255, 255)
  2336.     starburst_violet = Color.new(155, 107, 255, 255)
  2337.     starburst_violettwo = Color.new(71, 0, 222, 255)
  2338.     starburst_lightorange = Color.new(255, 220, 177, 255)
  2339.     starburst_orange = Color.new(255, 180, 85, 255)
  2340.     starburst_orangetwo = Color.new(222, 124, 0, 255)

  2341.     # 1st starburst bitmap
  2342.     @starburst_bitmaps[0] = Bitmap.new(8, 8)
  2343.     @starburst_bitmaps[0].set_pixel(3, 3, starburst_lightyellow)

  2344.     # 2nd starburst bitmap
  2345.     @starburst_bitmaps[1] = Bitmap.new(8, 8)
  2346.     @starburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_yellow)
  2347.     @starburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_yellow)
  2348.     @starburst_bitmaps[1].set_pixel(3, 3, starburst_lightyellow)

  2349.     # 3rd starburst bitmap
  2350.     @starburst_bitmaps[2] = Bitmap.new(7, 7)
  2351.     @starburst_bitmaps[2].set_pixel(1, 1, starburst_yellow)
  2352.     @starburst_bitmaps[2].set_pixel(5, 1, starburst_yellow)
  2353.     @starburst_bitmaps[2].set_pixel(2, 2, starburst_yellowtwo)
  2354.     @starburst_bitmaps[2].set_pixel(4, 2, starburst_yellow)
  2355.     @starburst_bitmaps[2].set_pixel(3, 3, starburst_lightyellow)
  2356.     @starburst_bitmaps[2].set_pixel(2, 4, starburst_yellowtwo)
  2357.     @starburst_bitmaps[2].set_pixel(4, 4, starburst_yellowtwo)
  2358.     @starburst_bitmaps[2].set_pixel(1, 5, starburst_yellow)
  2359.     @starburst_bitmaps[2].set_pixel(5, 5, starburst_yellow)

  2360.     # 4th starburst bitmap
  2361.     @starburst_bitmaps[3] = Bitmap.new(7, 7)
  2362.     @starburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_yellow)
  2363.     @starburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_yellowtwo)
  2364.     @starburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_yellow)
  2365.     @starburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_yellowtwo)
  2366.     @starburst_bitmaps[3].set_pixel(3, 3, starburst_lightyellow)

  2367.     # 5th starburst bitmap
  2368.     @starburst_bitmaps[4] = Bitmap.new(7, 7)
  2369.     @starburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_yellow)
  2370.     @starburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_yellow)
  2371.     @starburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_yellowtwo)
  2372.     @starburst_bitmaps[4].set_pixel(3, 3, starburst_lightyellow)
  2373.     @starburst_bitmaps[4].set_pixel(1, 1, starburst_yellow)
  2374.     @starburst_bitmaps[4].set_pixel(5, 1, starburst_yellow)
  2375.     @starburst_bitmaps[4].set_pixel(1, 5, starburst_yellowtwo)
  2376.     @starburst_bitmaps[4].set_pixel(5, 1, starburst_yellowtwo)

  2377.     # 6th starburst bitmap
  2378.     @starburst_bitmaps[5] = Bitmap.new(8, 8)
  2379.     @starburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_yellow)
  2380.     @starburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_yellow)
  2381.     @starburst_bitmaps[5].set_pixel(3, 3, starburst_lightyellow)

  2382.     # 7th starburst bitmap
  2383.     @starburst_bitmaps[6] = Bitmap.new(8, 8)
  2384.     @starburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_green)
  2385.     @starburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_green)
  2386.     @starburst_bitmaps[6].set_pixel(3, 3, starburst_lightgreen)

  2387.     # 8th starburst bitmap
  2388.     @starburst_bitmaps[7] = Bitmap.new(7, 7)
  2389.     @starburst_bitmaps[7].set_pixel(1, 1, starburst_greentwo)
  2390.     @starburst_bitmaps[7].set_pixel(5, 1, starburst_greentwo)
  2391.     @starburst_bitmaps[7].set_pixel(2, 2, starburst_greentwo)
  2392.     @starburst_bitmaps[7].set_pixel(4, 2, starburst_greentwo)
  2393.     @starburst_bitmaps[7].set_pixel(3, 3, starburst_green)
  2394.     @starburst_bitmaps[7].set_pixel(2, 4, starburst_green)
  2395.     @starburst_bitmaps[7].set_pixel(4, 4, starburst_green)
  2396.     @starburst_bitmaps[7].set_pixel(1, 5, starburst_green)
  2397.     @starburst_bitmaps[7].set_pixel(5, 5, starburst_lightgreen)

  2398.     # 9th starburst bitmap
  2399.     @starburst_bitmaps[8] = Bitmap.new(7, 7)
  2400.     @starburst_bitmaps[8].fill_rect(3, 1, 1, 5, starburst_greentwo)
  2401.     @starburst_bitmaps[8].fill_rect(1, 3, 5, 1, starburst_greentwo)
  2402.     @starburst_bitmaps[8].fill_rect(3, 2, 1, 3, starburst_green)
  2403.     @starburst_bitmaps[8].fill_rect(2, 3, 3, 1, starburst_green)
  2404.     @starburst_bitmaps[8].set_pixel(3, 3, starburst_lightgreen)

  2405.     # 10th starburst bitmap
  2406.     @starburst_bitmaps[9] = Bitmap.new(7, 7)
  2407.     @starburst_bitmaps[9].fill_rect(2, 1, 3, 5, starburst_greentwo)
  2408.     @starburst_bitmaps[9].fill_rect(1, 2, 5, 3, starburst_greentwo)
  2409.     @starburst_bitmaps[9].fill_rect(2, 2, 3, 3, starburst_green)
  2410.     @starburst_bitmaps[9].fill_rect(3, 1, 1, 5, starburst_green)
  2411.     @starburst_bitmaps[9].fill_rect(1, 3, 5, 1, starburst_green)
  2412.     @starburst_bitmaps[9].fill_rect(3, 2, 1, 3, starburst_lightgreen)
  2413.     @starburst_bitmaps[9].fill_rect(2, 3, 3, 1, starburst_lightgreen)
  2414.     @starburst_bitmaps[9].set_pixel(3, 3, starburst_lightgreen)

  2415.     # 11en starburst bitmap
  2416.     @starburst_bitmaps[10] = Bitmap.new(7, 7)
  2417.     @starburst_bitmaps[10].fill_rect(2, 2, 3, 3, starburst_greentwo)
  2418.     @starburst_bitmaps[10].fill_rect(3, 2, 1, 3, starburst_greentwo)
  2419.     @starburst_bitmaps[10].fill_rect(2, 3, 3, 1, starburst_green)
  2420.     @starburst_bitmaps[10].set_pixel(3, 3, starburst_lightgreen)
  2421.     @starburst_bitmaps[10].set_pixel(1, 1, starburst_green)
  2422.     @starburst_bitmaps[10].set_pixel(5, 1, starburst_green)
  2423.     @starburst_bitmaps[10].set_pixel(1, 5, starburst_greentwo)
  2424.     @starburst_bitmaps[10].set_pixel(5, 1, starburst_greentwo)

  2425.     # 12en starburst bitmap
  2426.     @starburst_bitmaps[11] = Bitmap.new(8, 8)
  2427.     @starburst_bitmaps[11].fill_rect(3, 2, 1, 3, starburst_green)
  2428.     @starburst_bitmaps[11].fill_rect(2, 3, 3, 1, starburst_green)
  2429.     @starburst_bitmaps[11].set_pixel(3, 3, starburst_lightgreen)

  2430.     # 13en starburst bitmap
  2431.     @starburst_bitmaps[12] = Bitmap.new(8, 8)
  2432.     @starburst_bitmaps[12].fill_rect(3, 2, 1, 3, starburst_blue)
  2433.     @starburst_bitmaps[12].fill_rect(2, 3, 3, 1, starburst_blue)
  2434.     @starburst_bitmaps[12].set_pixel(3, 3, starburst_cyan)

  2435.     # 14en starburst bitmap
  2436.     @starburst_bitmaps[13] = Bitmap.new(7, 7)
  2437.     @starburst_bitmaps[13].set_pixel(1, 1, starburst_bluetwo)
  2438.     @starburst_bitmaps[13].set_pixel(5, 1, starburst_bluetwo)
  2439.     @starburst_bitmaps[13].set_pixel(2, 2, starburst_bluetwo)
  2440.     @starburst_bitmaps[13].set_pixel(4, 2, starburst_bluetwo)
  2441.     @starburst_bitmaps[13].set_pixel(3, 3, starburst_blue)
  2442.     @starburst_bitmaps[13].set_pixel(2, 4, starburst_blue)
  2443.     @starburst_bitmaps[13].set_pixel(4, 4, starburst_blue)
  2444.     @starburst_bitmaps[13].set_pixel(1, 5, starburst_blue)
  2445.     @starburst_bitmaps[13].set_pixel(5, 5, starburst_cyan)

  2446.     # 15en starburst bitmap
  2447.     @starburst_bitmaps[14] = Bitmap.new(7, 7)
  2448.     @starburst_bitmaps[14].fill_rect(3, 1, 1, 5, starburst_bluetwo)
  2449.     @starburst_bitmaps[14].fill_rect(1, 3, 5, 1, starburst_bluetwo)
  2450.     @starburst_bitmaps[14].fill_rect(3, 2, 1, 3, starburst_blue)
  2451.     @starburst_bitmaps[14].fill_rect(2, 3, 3, 1, starburst_blue)
  2452.     @starburst_bitmaps[14].set_pixel(3, 3, starburst_cyan)

  2453.     # 16en starburst bitmap
  2454.     @starburst_bitmaps[15] = Bitmap.new(7, 7)
  2455.     @starburst_bitmaps[15].fill_rect(2, 1, 3, 5, starburst_bluetwo)
  2456.     @starburst_bitmaps[15].fill_rect(1, 2, 5, 3, starburst_bluetwo)
  2457.     @starburst_bitmaps[15].fill_rect(2, 2, 3, 3, starburst_blue)
  2458.     @starburst_bitmaps[15].fill_rect(3, 1, 1, 5, starburst_blue)
  2459.     @starburst_bitmaps[15].fill_rect(1, 3, 5, 1, starburst_blue)
  2460.     @starburst_bitmaps[15].fill_rect(3, 2, 1, 3, starburst_cyan)
  2461.     @starburst_bitmaps[15].fill_rect(2, 3, 3, 1, starburst_cyan)
  2462.     @starburst_bitmaps[15].set_pixel(3, 3, starburst_cyan)

  2463.     # 17en starburst bitmap
  2464.     @starburst_bitmaps[16] = Bitmap.new(8, 8)
  2465.     @starburst_bitmaps[16].fill_rect(3, 2, 1, 3, starburst_blue)
  2466.     @starburst_bitmaps[16].fill_rect(2, 3, 3, 1, starburst_blue)
  2467.     @starburst_bitmaps[16].set_pixel(3, 3, starburst_cyan)

  2468.     # 18en starburst bitmap
  2469.     @starburst_bitmaps[17] = Bitmap.new(8, 8)
  2470.     @starburst_bitmaps[17].fill_rect(3, 2, 1, 3, starburst_violet)
  2471.     @starburst_bitmaps[17].fill_rect(2, 3, 3, 1, starburst_violet)
  2472.     @starburst_bitmaps[17].set_pixel(3, 3, starburst_purple)

  2473.     # 19en starburst bitmap
  2474.     @starburst_bitmaps[18] = Bitmap.new(7, 7)
  2475.     @starburst_bitmaps[18].set_pixel(1, 1, starburst_violettwo)
  2476.     @starburst_bitmaps[18].set_pixel(5, 1, starburst_violettwo)
  2477.     @starburst_bitmaps[18].set_pixel(2, 2, starburst_violettwo)
  2478.     @starburst_bitmaps[18].set_pixel(4, 2, starburst_violettwo)
  2479.     @starburst_bitmaps[18].set_pixel(3, 3, starburst_violet)
  2480.     @starburst_bitmaps[18].set_pixel(2, 4, starburst_violet)
  2481.     @starburst_bitmaps[18].set_pixel(4, 4, starburst_violet)
  2482.     @starburst_bitmaps[18].set_pixel(1, 5, starburst_violet)
  2483.     @starburst_bitmaps[18].set_pixel(5, 5, starburst_purple)

  2484.     # 20y starburst bitmap
  2485.     @starburst_bitmaps[19] = Bitmap.new(7, 7)
  2486.     @starburst_bitmaps[19].fill_rect(3, 1, 1, 5, starburst_violettwo)
  2487.     @starburst_bitmaps[19].fill_rect(1, 3, 5, 1, starburst_violettwo)
  2488.     @starburst_bitmaps[19].fill_rect(3, 2, 1, 3, starburst_violet)
  2489.     @starburst_bitmaps[19].fill_rect(2, 3, 3, 1, starburst_violet)
  2490.     @starburst_bitmaps[19].set_pixel(3, 3, starburst_violet)

  2491.     # 21st starburst bitmap
  2492.     @starburst_bitmaps[20] = Bitmap.new(7, 7)
  2493.     @starburst_bitmaps[20].fill_rect(2, 1, 3, 5, starburst_violettwo)
  2494.     @starburst_bitmaps[20].fill_rect(1, 2, 5, 3, starburst_violettwo)
  2495.     @starburst_bitmaps[20].fill_rect(2, 2, 3, 3, starburst_violet)
  2496.     @starburst_bitmaps[20].fill_rect(3, 1, 1, 5, starburst_violet)
  2497.     @starburst_bitmaps[20].fill_rect(1, 3, 5, 1, starburst_violet)
  2498.     @starburst_bitmaps[20].fill_rect(3, 2, 1, 3, starburst_purple)
  2499.     @starburst_bitmaps[20].fill_rect(2, 3, 3, 1, starburst_purple)
  2500.     @starburst_bitmaps[20].set_pixel(3, 3, starburst_purple)

  2501.     # 22nd starburst bitmap
  2502.     @starburst_bitmaps[21] = Bitmap.new(7, 7)
  2503.     @starburst_bitmaps[21].fill_rect(2, 1, 3, 5, starburst_violet)
  2504.     @starburst_bitmaps[21].fill_rect(1, 2, 5, 3, starburst_violet)
  2505.     @starburst_bitmaps[21].fill_rect(3, 0, 1, 7, starburst_violettwo)
  2506.     @starburst_bitmaps[21].fill_rect(0, 3, 7, 1, starburst_violettwo)
  2507.     @starburst_bitmaps[21].fill_rect(2, 2, 3, 3, starburst_purple)
  2508.     @starburst_bitmaps[21].fill_rect(3, 2, 1, 3, starburst_violet)
  2509.     @starburst_bitmaps[21].fill_rect(2, 3, 3, 1, starburst_violet)
  2510.     @starburst_bitmaps[21].set_pixel(3, 3, starburst_purple)

  2511.     # 23d starburst bitmap
  2512.     @starburst_bitmaps[22] = Bitmap.new(8, 8)
  2513.     @starburst_bitmaps[22].fill_rect(3, 2, 1, 3, starburst_violet)
  2514.     @starburst_bitmaps[22].fill_rect(2, 3, 3, 1, starburst_violet)
  2515.     @starburst_bitmaps[22].set_pixel(3, 3, starburst_purple)

  2516.     # 24th starburst bitmap
  2517.     @starburst_bitmaps[23] = Bitmap.new(8, 8)
  2518.     @starburst_bitmaps[23].fill_rect(3, 2, 1, 3, starburst_red)
  2519.     @starburst_bitmaps[23].fill_rect(2, 3, 3, 1, starburst_red)
  2520.     @starburst_bitmaps[23].set_pixel(3, 3, starburst_pink)

  2521.     # 25th starburst bitmap
  2522.     @starburst_bitmaps[24] = Bitmap.new(7, 7)
  2523.     @starburst_bitmaps[24].set_pixel(1, 1, starburst_redtwo)
  2524.     @starburst_bitmaps[24].set_pixel(5, 1, starburst_redtwo)
  2525.     @starburst_bitmaps[24].set_pixel(2, 2, starburst_redtwo)
  2526.     @starburst_bitmaps[24].set_pixel(4, 2, starburst_redtwo)
  2527.     @starburst_bitmaps[24].set_pixel(3, 3, starburst_red)
  2528.     @starburst_bitmaps[24].set_pixel(2, 4, starburst_red)
  2529.     @starburst_bitmaps[24].set_pixel(4, 4, starburst_red)
  2530.     @starburst_bitmaps[24].set_pixel(1, 5, starburst_red)
  2531.     @starburst_bitmaps[24].set_pixel(5, 5, starburst_pink)

  2532.     # 26th starburst bitmap
  2533.     @starburst_bitmaps[25] = Bitmap.new(7, 7)
  2534.     @starburst_bitmaps[25].fill_rect(3, 1, 1, 5, starburst_redtwo)
  2535.     @starburst_bitmaps[25].fill_rect(1, 3, 5, 1, starburst_redtwo)
  2536.     @starburst_bitmaps[25].fill_rect(3, 2, 1, 3, starburst_red)
  2537.     @starburst_bitmaps[25].fill_rect(2, 3, 3, 1, starburst_red)
  2538.     @starburst_bitmaps[25].set_pixel(3, 3, starburst_pink)

  2539.     # 27th starburst bitmap
  2540.     @starburst_bitmaps[26] = Bitmap.new(7, 7)
  2541.     @starburst_bitmaps[26].fill_rect(2, 1, 3, 5, starburst_redtwo)
  2542.     @starburst_bitmaps[26].fill_rect(1, 2, 5, 3, starburst_redtwo)
  2543.     @starburst_bitmaps[26].fill_rect(2, 2, 3, 3, starburst_red)
  2544.     @starburst_bitmaps[26].fill_rect(3, 1, 1, 5, starburst_red)
  2545.     @starburst_bitmaps[26].fill_rect(1, 3, 5, 1, starburst_red)
  2546.     @starburst_bitmaps[26].fill_rect(3, 2, 1, 3, starburst_pink)
  2547.     @starburst_bitmaps[26].fill_rect(2, 3, 3, 1, starburst_pink)
  2548.     @starburst_bitmaps[26].set_pixel(3, 3, starburst_pink)

  2549.     # 28th starburst bitmap
  2550.     @starburst_bitmaps[27] = Bitmap.new(7, 7)
  2551.     @starburst_bitmaps[27].fill_rect(2, 1, 3, 5, starburst_red)
  2552.     @starburst_bitmaps[27].fill_rect(1, 2, 5, 3, starburst_red)
  2553.     @starburst_bitmaps[27].fill_rect(3, 0, 1, 7, starburst_redtwo)
  2554.     @starburst_bitmaps[27].fill_rect(0, 3, 7, 1, starburst_redtwo)
  2555.     @starburst_bitmaps[27].fill_rect(2, 2, 3, 3, starburst_pink)
  2556.     @starburst_bitmaps[27].fill_rect(3, 2, 1, 3, starburst_red)
  2557.     @starburst_bitmaps[27].fill_rect(2, 3, 3, 1, starburst_red)
  2558.     @starburst_bitmaps[27].set_pixel(3, 3, starburst_pink)

  2559.     # 29th starburst bitmap
  2560.     @starburst_bitmaps[28] = Bitmap.new(8, 8)
  2561.     @starburst_bitmaps[28].fill_rect(3, 2, 1, 3, starburst_red)
  2562.     @starburst_bitmaps[28].fill_rect(2, 3, 3, 1, starburst_red)
  2563.     @starburst_bitmaps[28].set_pixel(3, 3, starburst_pink)

  2564.     # 30y starburst bitmap
  2565.     @starburst_bitmaps[29] = Bitmap.new(8, 8)
  2566.     @starburst_bitmaps[29].fill_rect(3, 2, 1, 3, starburst_orange)
  2567.     @starburst_bitmaps[29].fill_rect(2, 3, 3, 1, starburst_orange)
  2568.     @starburst_bitmaps[29].set_pixel(3, 3, starburst_lightorange)

  2569.     # 31st starburst bitmap
  2570.     @starburst_bitmaps[30] = Bitmap.new(7, 7)
  2571.     @starburst_bitmaps[30].set_pixel(1, 1, starburst_orangetwo)
  2572.     @starburst_bitmaps[30].set_pixel(5, 1, starburst_orangetwo)
  2573.     @starburst_bitmaps[30].set_pixel(2, 2, starburst_orangetwo)
  2574.     @starburst_bitmaps[30].set_pixel(4, 2, starburst_orangetwo)
  2575.     @starburst_bitmaps[30].set_pixel(3, 3, starburst_orange)
  2576.     @starburst_bitmaps[30].set_pixel(2, 4, starburst_orange)
  2577.     @starburst_bitmaps[30].set_pixel(4, 4, starburst_orange)
  2578.     @starburst_bitmaps[30].set_pixel(1, 5, starburst_orange)
  2579.     @starburst_bitmaps[30].set_pixel(5, 5, starburst_lightorange)

  2580.     # 32nd starburst bitmap
  2581.     @starburst_bitmaps[31] = Bitmap.new(7, 7)
  2582.     @starburst_bitmaps[31].fill_rect(3, 1, 1, 5, starburst_orangetwo)
  2583.     @starburst_bitmaps[31].fill_rect(1, 3, 5, 1, starburst_orangetwo)
  2584.     @starburst_bitmaps[31].fill_rect(3, 2, 1, 3, starburst_orange)
  2585.     @starburst_bitmaps[31].fill_rect(2, 3, 3, 1, starburst_orange)
  2586.     @starburst_bitmaps[31].set_pixel(3, 3, starburst_lightorange)

  2587.     # 33d starburst bitmap
  2588.     @starburst_bitmaps[32] = Bitmap.new(7, 7)
  2589.     @starburst_bitmaps[32].fill_rect(2, 1, 3, 5, starburst_orangetwo)
  2590.     @starburst_bitmaps[32].fill_rect(1, 2, 5, 3, starburst_orangetwo)
  2591.     @starburst_bitmaps[32].fill_rect(2, 2, 3, 3, starburst_orange)
  2592.     @starburst_bitmaps[32].fill_rect(3, 1, 1, 5, starburst_orange)
  2593.     @starburst_bitmaps[32].fill_rect(1, 3, 5, 1, starburst_orange)
  2594.     @starburst_bitmaps[32].fill_rect(3, 2, 1, 3, starburst_lightorange)
  2595.     @starburst_bitmaps[32].fill_rect(2, 3, 3, 1, starburst_lightorange)
  2596.     @starburst_bitmaps[32].set_pixel(3, 3, starburst_lightorange)

  2597.     # 34th starburst bitmap
  2598.     @starburst_bitmaps[33] = Bitmap.new(7, 7)
  2599.     @starburst_bitmaps[33].fill_rect(2, 1, 3, 5, starburst_orange)
  2600.     @starburst_bitmaps[33].fill_rect(1, 2, 5, 3, starburst_orange)
  2601.     @starburst_bitmaps[33].fill_rect(3, 0, 1, 7, starburst_orangetwo)
  2602.     @starburst_bitmaps[33].fill_rect(0, 3, 7, 1, starburst_orangetwo)
  2603.     @starburst_bitmaps[33].fill_rect(2, 2, 3, 3, starburst_lightorange)
  2604.     @starburst_bitmaps[33].fill_rect(3, 2, 1, 3, starburst_orange)
  2605.     @starburst_bitmaps[33].fill_rect(2, 3, 3, 1, starburst_orange)
  2606.     @starburst_bitmaps[33].set_pixel(3, 3, starburst_lightorange)

  2607.     # 35th starburst bitmap
  2608.     @starburst_bitmaps[34] = Bitmap.new(8, 8)
  2609.     @starburst_bitmaps[34].fill_rect(3, 2, 1, 3, starburst_orange)
  2610.     @starburst_bitmaps[34].fill_rect(2, 3, 3, 1, starburst_orange)
  2611.     @starburst_bitmaps[34].set_pixel(3, 3, starburst_lightorange)

  2612.     # 36th starburst bitmap
  2613.     @starburst_bitmaps[35] = Bitmap.new(8, 8)
  2614.     @starburst_bitmaps[35].set_pixel(3, 3, starburst_lightorange)   
  2615. #-------------------------------------------------------------------------------      
  2616.     @monostarburst_bitmaps = []

  2617.     # 1st starburst bitmap
  2618.     @monostarburst_bitmaps[0] = Bitmap.new(8, 8)
  2619.     @monostarburst_bitmaps[0].set_pixel(3, 3, starburst_lightyellow)

  2620.     # 2nd starburst bitmap
  2621.     @monostarburst_bitmaps[1] = Bitmap.new(8, 8)
  2622.     @monostarburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_yellow)
  2623.     @monostarburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_yellow)
  2624.     @monostarburst_bitmaps[1].set_pixel(3, 3, starburst_lightyellow)

  2625.     # 3d starburst bitmap
  2626.     @monostarburst_bitmaps[2] = Bitmap.new(7, 7)
  2627.     @monostarburst_bitmaps[2].set_pixel(1, 1, starburst_yellowtwo)
  2628.     @monostarburst_bitmaps[2].set_pixel(5, 1, starburst_yellowtwo)
  2629.     @monostarburst_bitmaps[2].set_pixel(2, 2, starburst_yellowtwo)
  2630.     @monostarburst_bitmaps[2].set_pixel(4, 2, starburst_yellowtwo)
  2631.     @monostarburst_bitmaps[2].set_pixel(3, 3, starburst_yellow)
  2632.     @monostarburst_bitmaps[2].set_pixel(2, 4, starburst_yellow)
  2633.     @monostarburst_bitmaps[2].set_pixel(4, 4, starburst_yellow)
  2634.     @monostarburst_bitmaps[2].set_pixel(1, 5, starburst_yellow)
  2635.     @monostarburst_bitmaps[2].set_pixel(5, 5, starburst_lightyellow)

  2636.     # 4th starburst bitmap
  2637.     @monostarburst_bitmaps[3] = Bitmap.new(7, 7)
  2638.     @monostarburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_yellowtwo)
  2639.     @monostarburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_yellowtwo)
  2640.     @monostarburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_yellow)
  2641.     @monostarburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_yellow)
  2642.     @monostarburst_bitmaps[3].set_pixel(3, 3, starburst_lightyellow)

  2643.     # 5th starburst bitmap
  2644.     @monostarburst_bitmaps[4] = Bitmap.new(7, 7)
  2645.     @monostarburst_bitmaps[4].fill_rect(2, 1, 3, 5, starburst_yellowtwo)
  2646.     @monostarburst_bitmaps[4].fill_rect(1, 2, 5, 3, starburst_yellowtwo)
  2647.     @monostarburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_yellow)
  2648.     @monostarburst_bitmaps[4].fill_rect(3, 1, 1, 5, starburst_yellow)
  2649.     @monostarburst_bitmaps[4].fill_rect(1, 3, 5, 1, starburst_yellow)
  2650.     @monostarburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_lightyellow)
  2651.     @monostarburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_lightyellow)
  2652.     @monostarburst_bitmaps[4].set_pixel(3, 3, starburst_lightyellow)

  2653.     # 6th starburst bitmap
  2654.     @monostarburst_bitmaps[5] = Bitmap.new(7, 7)
  2655.     @monostarburst_bitmaps[5].fill_rect(2, 1, 3, 5, starburst_yellow)
  2656.     @monostarburst_bitmaps[5].fill_rect(1, 2, 5, 3, starburst_yellow)
  2657.     @monostarburst_bitmaps[5].fill_rect(3, 0, 1, 7, starburst_yellowtwo)
  2658.     @monostarburst_bitmaps[5].fill_rect(0, 3, 7, 1, starburst_yellowtwo)
  2659.     @monostarburst_bitmaps[5].fill_rect(2, 2, 3, 3, starburst_lightyellow)
  2660.     @monostarburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_yellow)
  2661.     @monostarburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_yellow)
  2662.     @monostarburst_bitmaps[5].set_pixel(3, 3, starburst_lightyellow)

  2663.     # 7th starburst bitmap
  2664.     @monostarburst_bitmaps[6] = Bitmap.new(8, 8)
  2665.     @monostarburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_yellow)
  2666.     @monostarburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_yellow)
  2667.     @monostarburst_bitmaps[6].set_pixel(3, 3, starburst_lightyellow)

  2668.     # 8th starburst bitmap
  2669.     @monostarburst_bitmaps[7] = Bitmap.new(8, 8)
  2670.     @monostarburst_bitmaps[7].set_pixel(3, 3, starburst_lightyellow)
  2671. #-------------------------------------------------------------------------------   

  2672.     @user_bitmaps = []
  2673.     update_user_defined
  2674.   end

  2675.   def update_user_defined
  2676.     for image in @user_bitmaps
  2677.       image.dispose
  2678.     end

  2679.     #user-defined bitmaps
  2680.     for name in $WEATHER_IMAGES
  2681.       @user_bitmaps.push(Cache.picture(name))
  2682.     end
  2683.     for sprite in @sprites
  2684.       sprite.bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  2685.     end
  2686.   end
  2687. end

  2688. class Scene_Map
  2689.   def change_weather
  2690.     @spriteset.change_weather  
  2691.   end
  2692. end

  2693. class Spriteset_Map
  2694.   attr_accessor :change_weather
  2695. end
复制代码
不追求华丽的商业素材;不依赖与自己运用能力不符的外挂脚本;不搞华而不实的无用噱头。
                    修改,使用最朴实的素材,融入自己的智慧做最好的游戏!
                                    点这里!暂不设加入门槛
         
                               我觉得我的优点是,会认真的画每一张地图。
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部