查看: 4331|回复: 4

[已经解决] 天气脚本【如何使用】已解决

[复制链接]
梦石
0
星屑
55
在线时间
87 小时
注册时间
2013-7-11
回帖
75
发表于 2014-7-20 14:17:08 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 540486098 于 2014-7-22 13:07 编辑

几个月前找到了一个天气脚本,几个月后……突然忘了怎么用了,所以……脚本奉上!
  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 = []      # the array of picture names to use
  89. $WEATHER_X = 0           # the number of pixels the image should move horizontally (positive = right, negative = left)
  90. $WEATHER_Y = 0            # 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.     [url=home.php?mod=space&uid=28342]@power[/url] = 0
  113.     @ox = 0
  114.     @oy = 0
  115.    
  116.     @count = 0
  117.     @current_pose = []
  118.     @info = []
  119.     @countarray = []
  120.    
  121.     make_bitmaps
  122.    
  123.     @sprites = []
  124.    
  125.     for i in 1..500
  126.       sprite = Sprite.new(viewport)
  127.       sprite.visible = false
  128.       sprite.opacity = 0
  129.       @sprites.push(sprite)
  130.       @current_pose.push(0)
  131.       @info.push(rand(50))
  132.       @countarray.push(rand(15))
  133.     end
  134.    
  135.   end
  136.   #--------------------------------------------------------------------------
  137.   # * Dispose
  138.   #--------------------------------------------------------------------------
  139.   def dispose
  140.     for sprite in @sprites
  141.       sprite.dispose
  142.     end
  143.     @rain_bitmap.dispose
  144.     @storm_bitmap.dispose
  145.     @snow_bitmap.dispose
  146.     @hail_bitmap.dispose
  147.     @petal_bitmap.dispose
  148.     @blood_rain_bitmap.dispose
  149.     @oil_rain_bitmap.dispose
  150.     @golden_rain_bitmap.dispose
  151.     @golden_storm_bitmap.dispose
  152.     @acid_rain_bitmap.dispose
  153.     @acid_storm_bitmap.dispose
  154.     @sepia_rain_bitmap.dispose
  155.     @sepia_storm_bitmap.dispose
  156.     @blood_storm_bitmap.dispose
  157.     @bloodblizz_bitmap.dispose
  158.     @meteor_bitmap.dispose
  159.     @flame_meteor_bitmap.dispose
  160.     @waterbomb_bitmap.dispose
  161.     @icybomb_bitmap.dispose
  162.     @flarebomb_bitmap.dispose
  163.     for image in @autumn_leaf_bitmaps
  164.       image.dispose
  165.     end
  166.     for image in @green_leaf_bitmaps
  167.       image.dispose
  168.     end
  169.     for image in @yellow_leaf_bitmaps
  170.       image.dispose
  171.     end
  172.     for image in @redmaple_leaf_bitmaps
  173.       image.dispose
  174.     end
  175.     for image in @rose_bitmaps
  176.       image.dispose
  177.     end
  178.     for image in @feather_bitmaps
  179.       image.dispose
  180.     end
  181.     for image in @sparkle_bitmaps
  182.       image.dispose
  183.     end
  184.     for image in @starburst_bitmaps
  185.       image.dispose
  186.     end
  187.     for image in @monostarburst_bitmaps
  188.       image.dispose
  189.     end
  190.     for image in @user_bitmaps
  191.       image.dispose
  192.     end
  193.     $WEATHER_UPDATE = true
  194.   end
  195.   #--------------------------------------------------------------------------
  196.   # * Set weather type
  197.   #     type : new weather type
  198.   #--------------------------------------------------------------------------
  199.   def type=(type)
  200.     return if @type == type
  201.     @type = type
  202.     case @type
  203.     when 1 # rain
  204.       bitmap = @rain_bitmap
  205.     when 2 # storm
  206.       bitmap = @storm_bitmap
  207.     when 3 # snow
  208.       bitmap = @snow_bitmap
  209.    when 4 # hail
  210.       bitmap = @hail_bitmap
  211.     when 5 # rain w/ thunder and lightning
  212.       bitmap = @rain_bitmap
  213.       [url=home.php?mod=space&uid=34616]@thunder[/url] = true
  214.     when 6 # falling autumn leaves
  215.       bitmap = @autumn_leaf_bitmaps[0]
  216.     when 7 # blowing autumn leaves
  217.       bitmap = @autumn_leaf_bitmaps[0]
  218.     when 8 # swirling autumn leaves
  219.       bitmap = @autumn_leaf_bitmaps[0]
  220.     when 9 # falling green leaves
  221.       bitmap = @green_leaf_bitmaps[0]
  222.     when 10 # sakura petals
  223.       bitmap = @petal_bitmap
  224.     when 11 # rose petals
  225.       bitmap = @rose_bitmaps[0]
  226.     when 12 # feathers
  227.       bitmap = @feather_bitmaps[0]
  228.     when 13 # blood rain
  229.       bitmap = @blood_rain_bitmap
  230.     when 14 # sparkles
  231.       bitmap = @sparkle_bitmaps[0]
  232.     when 15 # user-defined
  233.         bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  234.     when 16 # blowing snow
  235.       bitmap = @snow_bitmap
  236.     when 17 # meteors
  237.       bitmap = @meteor_bitmap
  238.     when 18 # falling ash
  239.       bitmap = @ash_bitmaps[rand(@ash_bitmaps.size)]
  240.     when 19 # bubbles
  241.       bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  242.     when 21 # sparkles up
  243.       bitmap = @sparkle_bitmaps[0]
  244.     when 22 # blowing green leaves
  245.       bitmap = @green_leaf_bitmaps[0]
  246.     when 23 # swirling green leaves
  247.       bitmap = @green_leaf_bitmaps[0]
  248.     when 24 # falling yellow leaves
  249.       bitmap = @yellow_leaf_bitmaps[0]
  250.     when 25 # blowing yellow leaves
  251.       bitmap = @yellow_leaf_bitmaps[0]
  252.     when 26 # swirling yellow leaves
  253.       bitmap = @yellow_leaf_bitmaps[0]
  254.     when 27 # oil rain
  255.        bitmap = @oil_rain_bitmap
  256.     when 28 # golden rain
  257.        bitmap = @golden_rain_bitmap
  258.     when 29 # flame meteors
  259.        bitmap = @flame_meteor_bitmap
  260.     when 30 # starburst
  261.       bitmap = @starburst_bitmaps[0]
  262.     when 31 # uprising starburst
  263.       bitmap = @starburst_bitmaps[0]
  264.     when 32 # starburst rain
  265.       bitmap = @starburst_bitmaps[0]
  266.     when 33 # mono-starburst
  267.       bitmap = @monostarburst_bitmaps[0]
  268.     when 34 # uprising mono-starburst
  269.       bitmap = @monostarburst_bitmaps[0]
  270.     when 35 # mono-starburst rain
  271.       bitmap = @monostarburst_bitmaps[0]
  272.     when 36 # Golden rain w\ thunder and ligthning
  273.       bitmap = @golden_rain_bitmap
  274.       @golden_thunder = true
  275.     when 37 # Golden storm
  276.       bitmap = @golden_storm_bitmap
  277.     when 38 # Oil storm
  278.       bitmap = @oil_storm_bitmap
  279.     when 39 # # Acid rain
  280.       bitmap = @acid_rain_bitmap
  281.     when 40 # Acid rain w\thunder and lightning
  282.       bitmap = @acid_rain_bitmap
  283.       @acid_thunder = true
  284.     when 41 # Acid storm
  285.       bitmap = @acid_storm_bitmap
  286.     when 42 # Sepia rain
  287.       bitmap = @sepia_rain_bitmap
  288.     when 43 # Sepia rain w\ thunder and lightning
  289.       bitmap = @sepia_rain_bitmap
  290.       @sepia_thunder = true
  291.     when 44 # Sepia storm
  292.       bitmap = @sepia_storm_bitmap
  293.     when 45 # Realistic storm
  294.       bitmap = @storm_bitmap
  295.       @real_storm = true
  296.     when 46 # Blood rain w\ thunder and lightning
  297.       bitmap = @blood_rain_bitmap
  298.       @crimson_thunder = true
  299.     when 47 # Blood storm
  300.       bitmap = @blood_storm_bitmap
  301.     when 48 # Blood blizzard
  302.       bitmap = @bloodblizz_bitmap
  303.     when 49 # Falling red maple leaves
  304.       bitmap = @redmaple_leaf_bitmaps[0]
  305.     when 50 # Blowing red maple leaves
  306.       bitmap = @redmaple_leaf_bitmaps[0]
  307.     when 51 # Swirling red maple leaves
  308.       bitmap = @redmaple_leaf_bitmaps[0]
  309.     when 52
  310.       bitmap = @waterbomb_bitmaps
  311.     when 53
  312.       bitmap = @icybomb_bitmaps
  313.     when 54
  314.       bitmap = @flarebomb_bitmaps
  315.     else
  316.       bitmap = nil
  317.     end
  318.    
  319.     if @type != 5
  320.       [url=home.php?mod=space&uid=34616]@thunder[/url] = false
  321.     end
  322.    
  323.     if @type != 36
  324.       @golden_thunder = false
  325.     end
  326.    
  327.     if @type != 40
  328.       @acid_thunder = false
  329.     end
  330.    
  331.     if @type != 43
  332.       @sepia_thunder = false
  333.     end
  334.    
  335.     if @type != 45
  336.       @real_storm = false
  337.     end
  338.    
  339.     if @type != 46
  340.       @crimson_thunder = false
  341.     end
  342.    
  343.     for i in [email]0...@sprites.size[/email]
  344.       sprite = @sprites[i]
  345.       sprite.visible = (i <= @power)
  346.       if @type == 19
  347.         sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  348.       elsif @type == 20
  349.         sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  350.       elsif @type == 3
  351.         r = rand(@snow_bitmaps.size)
  352.         @info[i] = r
  353.         sprite.bitmap = @snow_bitmaps[r]
  354.       else
  355.         sprite.bitmap = bitmap
  356.       end
  357.     end
  358.   end
  359.   #--------------------------------------------------------------------------
  360.   # * Set starting point X coordinate
  361.   #     ox : starting point X coordinate
  362.   #--------------------------------------------------------------------------
  363.   def ox=(ox)
  364.     return if @ox == ox;
  365.     @ox = ox
  366.     for sprite in @sprites
  367.       sprite.ox = @ox
  368.     end
  369.   end
  370.   #--------------------------------------------------------------------------
  371.   # * Set starting point Y coordinate
  372.   #     oy : starting point Y coordinate
  373.   #--------------------------------------------------------------------------
  374.   def oy=(oy)
  375.     return if @oy == oy;
  376.     @oy = oy
  377.     for sprite in @sprites
  378.       sprite.oy = @oy
  379.     end
  380.   end
  381.   #--------------------------------------------------------------------------
  382.   # * Set maximum number of sprites
  383.   #     max : maximum number of sprites
  384.   #--------------------------------------------------------------------------
  385.   def power=(power)
  386.     [url=home.php?mod=space&uid=28342]@power[/url] = power
  387.     for i in 1..40
  388.       sprite = @sprites[i]
  389.       sprite.visible = (i <= @power) if sprite != nil
  390.       if @type == 19
  391.           sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  392.         elsif @type == 20
  393.           sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  394.         elsif @type == 3
  395.           r = rand(@snow_bitmaps.size)
  396.           @info[i] = r
  397.           sprite.bitmap = @snow_bitmaps[r]
  398.         end
  399.     end
  400.   end
  401. #--------------------------------------------------------------------------
  402. # * Frame Update
  403. #--------------------------------------------------------------------------
  404.   def update
  405.     return if @type == 0
  406.     for i in 1..@power
  407.       sprite = @sprites[i]
  408.       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
  409.         if sprite.opacity <= 150
  410.           if @current_pose[i] == 0
  411.             sprite.y += @rain_bitmap.height
  412.             sprite.x -= @rain_bitmap.width
  413.             if @type == 1 or @type == 5
  414.               sprite.bitmap = @rain_splash
  415.             else
  416.               sprite.bitmap = @blood_rain_splash
  417.             end
  418.             if @type == 27
  419.               sprite.bitmap = @oil_rain_splash
  420.             end
  421.             if @type == 28
  422.               sprite.bitmap = @golden_rain_splash
  423.             end
  424.             if @type == 36
  425.               sprite.bitmap = @golden_rain_splash
  426.             end
  427.             if @type == 39
  428.               sprite.bitmap = @acid_rain_splash
  429.             end
  430.             if @type == 40
  431.               sprite.bitmap = @acid_rain_splash
  432.             end
  433.             if @type == 42
  434.               sprite.bitmap = @sepia_rain_splash
  435.             end
  436.             if @type == 43
  437.               sprite.bitmap = @sepia_rain_splash
  438.             end
  439.             if @type == 46
  440.               sprite.bitmap = @blood_rain_splash
  441.             end
  442.             @current_pose[i] = 1
  443.           end
  444.         else
  445.           if @current_pose[i] == 1
  446.             if @type == 1 or @type == 5
  447.               sprite.bitmap = @rain_bitmap
  448.             else
  449.               sprite.bitmap = @blood_rain_bitmap
  450.             end
  451.             if @type == 27
  452.               sprite.bitmap = @oil_rain_bitmap
  453.             end
  454.             if @type == 28
  455.               sprite.bitmap = @golden_rain_bitmap
  456.             end
  457.             if @type == 36
  458.               sprite.bitmap = @golden_rain_bitmap
  459.             end
  460.             if @type == 39
  461.               sprite.bitmap = @acid_rain_bitmap
  462.             end
  463.             if @type == 40
  464.               sprite.bitmap = @acid_rain_bitmap
  465.             end
  466.             if @type == 42
  467.               sprite.bitmap = @sepia_rain_bitmap
  468.             end
  469.             if @type == 43
  470.               sprite.bitmap = @sepia_rain_bitmap
  471.             end
  472.             if @type == 46
  473.               sprite.bitmap = @blood_rain_bitmap
  474.             end
  475.             @current_pose[i] = 0
  476.           end
  477.           sprite.x -= 2
  478.           sprite.y += 16
  479.           if [url=home.php?mod=space&uid=34616]@thunder[/url] and (rand(8000 - @power) == 0)
  480.             $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  481.             Audio.se_play("Audio/SE/Thunder1")
  482.           end
  483.         if @golden_thunder and (rand(8000 - @power) == 0)
  484.             $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  485.             Audio.se_play("Audio/SE/Thunder1")
  486.           end
  487.        if @acid_thunder and (rand(5000 - @power) == 0)
  488.             $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  489.             Audio.se_play("Audio/SE/Thunder1")
  490.           end
  491.        if @sepia_thunder and (rand(8000 - @power) == 0)
  492.             $game_map.screen.start_flash(Color.new(169, 152, 142, 255), 5)
  493.             Audio.se_play("Audio/SE/Thunder1")
  494.           end
  495.        if @sepia_thunder and (rand(8000 - @power) == 0)
  496.             $game_map.screen.start_flash(Color.new(169, 152, 142, 255), 5)
  497.             Audio.se_play("Audio/SE/Thunder1")
  498.           end
  499.        if @crimson_thunder and (rand(8000 - @power) == 0)
  500.           $game_map.screen.start_flash(Color.new(141, 9, 9, 255), 5)
  501.           Audio.se_play("Audio/SE/Thunder1")
  502.           end
  503.         end
  504.         sprite.opacity -= 8
  505.       end
  506.       if @type == 2 or @type == 37 or @type == 38 or @type == 41 or @type == 44 or @type == 45 or @type == 47 # storm
  507.         sprite.x -= 8
  508.         sprite.y += 16
  509.         sprite.opacity -= 12
  510.       end
  511.         if @real_storm and (rand(5000 - @power) == 0)
  512.         $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  513.         $game_map.screen.start_shake(9, 4, 5)
  514.         Audio.se_play("Audio/SE/Thunder9")
  515.       end
  516.       if @type == 3 # snow
  517.         case @info[i]
  518.         when 0 # smallest flake, fall the slowest
  519.           sprite.y += 1
  520.         when 1
  521.           sprite.y += 3
  522.         when 2
  523.           sprite.y += 5
  524.         when 3
  525.           sprite.y += 7
  526.         end
  527.         sprite.opacity -= 3
  528.       end
  529.       if @type == 4 # hail
  530.         sprite.x -= 1
  531.         sprite.y += 18
  532.         sprite.opacity -= 15
  533.       end
  534.       if @type == 6 # falling autumn leaves
  535.         @count = rand(20)
  536.         if @count == 0
  537.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  538.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  539.         end
  540.         sprite.x -= 1
  541.         sprite.y += 1
  542.       end
  543.       if @type == 7 # blowing autumn leaves
  544.         @count = rand(20)
  545.         if @count == 0
  546.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  547.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  548.         end
  549.         sprite.x -= 10
  550.         sprite.y += (rand(4) - 2)
  551.       end
  552.       if @type == 8 # swirling autumn leaves
  553.         @count = rand(20)
  554.         if @count == 0
  555.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  556.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  557.         end
  558.         if @info[i] != 0
  559.           if @info[i] >= 1 and @info[i] <= 10
  560.             sprite.x -= 3
  561.             sprite.y -= 1
  562.           elsif @info[i] >= 11 and @info[i] <= 16
  563.             sprite.x -= 1
  564.             sprite.y -= 2
  565.           elsif @info[i] >= 17 and @info[i] <= 20
  566.             sprite.y -= 3
  567.           elsif @info[i] >= 21 and @info[i] <= 30
  568.             sprite.y -= 2
  569.             sprite.x += 1
  570.           elsif @info[i] >= 31 and @info[i] <= 36
  571.             sprite.y -= 1
  572.             sprite.x += 3
  573.           elsif @info[i] >= 37 and @info[i] <= 40
  574.             sprite.x += 5
  575.           elsif @info[i] >= 41 and @info[i] <= 46
  576.             sprite.y += 1
  577.             sprite.x += 3
  578.           elsif @info[i] >= 47 and @info[i] <= 58
  579.             sprite.y += 2
  580.             sprite.x += 1
  581.           elsif @info[i] >= 59 and @info[i] <= 64
  582.             sprite.y += 3
  583.           elsif @info[i] >= 65 and @info[i] <= 70
  584.             sprite.x -= 1
  585.             sprite.y += 2
  586.           elsif @info[i] >= 71 and @info[i] <= 81
  587.             sprite.x -= 3
  588.             sprite.y += 1
  589.           elsif @info[i] >= 82 and @info[i] <= 87
  590.             sprite.x -= 5
  591.           end
  592.           @info[i] = (@info[i] + 1) % 88
  593.         else
  594.           if rand(200) == 0
  595.             @info[i] = 1
  596.           end
  597.           sprite.x -= 5
  598.           sprite.y += 1
  599.         end
  600.       end
  601.         if @type == 49 # falling red maple leaves
  602.         @count = rand(20)
  603.         if @count == 0
  604.           sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  605.           @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  606.         end
  607.         sprite.x -= 1
  608.         sprite.y += 1
  609.       end
  610.       if @type == 50 # blowing red maple leaves
  611.         @count = rand(20)
  612.         if @count == 0
  613.           sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  614.           @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  615.         end
  616.         sprite.x -= 10
  617.         sprite.y += (rand(4) - 2)
  618.       end
  619.       if @type == 51 # swirling red maple leaves
  620.         @count = rand(20)
  621.         if @count == 0
  622.           sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  623.           @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  624.         end
  625.         if @info[i] != 0
  626.           if @info[i] >= 1 and @info[i] <= 10
  627.             sprite.x -= 3
  628.             sprite.y -= 1
  629.           elsif @info[i] >= 11 and @info[i] <= 16
  630.             sprite.x -= 1
  631.             sprite.y -= 2
  632.           elsif @info[i] >= 17 and @info[i] <= 20
  633.             sprite.y -= 3
  634.           elsif @info[i] >= 21 and @info[i] <= 30
  635.             sprite.y -= 2
  636.             sprite.x += 1
  637.           elsif @info[i] >= 31 and @info[i] <= 36
  638.             sprite.y -= 1
  639.             sprite.x += 3
  640.           elsif @info[i] >= 37 and @info[i] <= 40
  641.             sprite.x += 5
  642.           elsif @info[i] >= 41 and @info[i] <= 46
  643.             sprite.y += 1
  644.             sprite.x += 3
  645.           elsif @info[i] >= 47 and @info[i] <= 58
  646.             sprite.y += 2
  647.             sprite.x += 1
  648.           elsif @info[i] >= 59 and @info[i] <= 64
  649.             sprite.y += 3
  650.           elsif @info[i] >= 65 and @info[i] <= 70
  651.             sprite.x -= 1
  652.             sprite.y += 2
  653.           elsif @info[i] >= 71 and @info[i] <= 81
  654.             sprite.x -= 3
  655.             sprite.y += 1
  656.           elsif @info[i] >= 82 and @info[i] <= 87
  657.             sprite.x -= 5
  658.           end
  659.           @info[i] = (@info[i] + 1) % 88
  660.         else
  661.           if rand(200) == 0
  662.             @info[i] = 1
  663.           end
  664.           sprite.x -= 5
  665.           sprite.y += 1
  666.         end
  667.       end
  668.       if @type == 9 # falling green leaves
  669.         if @countarray[i] == 0
  670.           @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  671.           sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  672.           @countarray[i] = rand(15)
  673.         end
  674.         @countarray[i] = (@countarray[i] + 1) % 15
  675.         sprite.y += 1
  676.       end
  677.       if @type == 10 # sakura petals
  678.         if @info[i] < 25
  679.           sprite.x -= 1
  680.         else
  681.           sprite.x += 1
  682.         end
  683.         @info[i] = (@info[i] + 1) % 50
  684.         sprite.y += 1
  685.       end
  686.       if @type == 11 # rose petals
  687.         @count = rand(20)
  688.         if @count == 0
  689.           sprite.bitmap = @rose_bitmaps[@current_pose[i]]
  690.           @current_pose[i] = (@current_pose[i] + 1) % @rose_bitmaps.size
  691.         end
  692.         if @info[i] % 2 == 0
  693.           if @info[i] < 10
  694.             sprite.x -= 1
  695.           elsif
  696.             sprite.x += 1
  697.           end
  698.         end
  699.         sprite.y += 1
  700.       end
  701.       if @type == 12 # feathers
  702.         if @countarray[i] == 0
  703.           @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  704.           sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  705.         end
  706.         @countarray[i] = (@countarray[i] + 1) % 15
  707.         if rand(100) == 0
  708.           sprite.x -= 1
  709.         end
  710.         if rand(100) == 0
  711.           sprite.y -= 1
  712.         end
  713.         if @info[i] < 50
  714.           if rand(2) == 0
  715.             sprite.x -= 1
  716.           else
  717.             sprite.y -= 1
  718.           end
  719.         else
  720.           if rand(2) == 0
  721.             sprite.x += 1
  722.           else
  723.             sprite.y += 1
  724.           end
  725.         end
  726.         @info[i] = (@info[i] + 1) % 100
  727.       end
  728.       
  729.        if @type == 30 # starburst
  730.         if @countarray[i] == 0
  731.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  732.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  733.         end
  734.         @countarray[i] = (@countarray[i] + 1) % 15
  735.         sprite.y += 1
  736.         sprite.opacity -= 1
  737.       end
  738.       if @type == 31 # starburst up
  739.         if @countarray[i] == 0
  740.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  741.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  742.         end
  743.         @countarray[i] = (@countarray[i] + 1) % 15
  744.         sprite.y -= 1
  745.         sprite.opacity -= 1
  746.       end
  747.       if @type == 32 # starburst up
  748.         if @countarray[i] == 0
  749.           @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  750.           sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  751.         end
  752.         @countarray[i] = (@countarray[i] + 1) % 15
  753.         sprite.x -= 2
  754.         sprite.y += 8
  755.         sprite.opacity -= 1
  756.       end     
  757.       
  758.       if @type == 33 # mono-starburst
  759.         if @countarray[i] == 0
  760.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  761.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  762.         end
  763.         @countarray[i] = (@countarray[i] + 1) % 15
  764.         sprite.y += 1
  765.         sprite.opacity -= 1
  766.       end
  767.       if @type == 34 # mono-starburst up
  768.         if @countarray[i] == 0
  769.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  770.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  771.         end
  772.         @countarray[i] = (@countarray[i] + 1) % 15
  773.         sprite.y -= 1
  774.         sprite.opacity -= 1
  775.       end
  776.       if @type == 35 # mono-starburst rain
  777.         if @countarray[i] == 0
  778.           @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  779.           sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  780.         end
  781.         @countarray[i] = (@countarray[i] + 1) % 15
  782.         sprite.x -= 2
  783.         sprite.y += 8
  784.         sprite.opacity -= 1
  785.       end           
  786.         if @type == 29 # meteors
  787.         if @countarray[i] > 0
  788.           if rand(20) == 0
  789.             sprite.bitmap = @flame_impact_bitmap
  790.             @countarray[i] = -5
  791.           else
  792.             sprite.x -= 6
  793.             sprite.y += 10
  794.           end
  795.         else
  796.           @countarray[i] += 1
  797.           if @countarray[i] == 0
  798.             sprite.bitmap = @flame_meteor_bitmap
  799.             sprite.opacity = 0
  800.             @count_array = 1
  801.           end
  802.         end
  803.       end
  804.       if @type == 18 # ash
  805.         sprite.y += 2
  806.         case @countarray[i] % 3
  807.         when 0
  808.           sprite.x -= 1
  809.         when 1
  810.           sprite.x += 1
  811.         end
  812.       end      
  813.       
  814.       if @type == 14 # sparkles
  815.         if @countarray[i] == 0
  816.           @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  817.           sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  818.         end
  819.         @countarray[i] = (@countarray[i] + 1) % 15
  820.         sprite.y += 1
  821.         sprite.opacity -= 1
  822.       end
  823.       if @type == 15 # user-defined
  824.         if $WEATHER_UPDATE
  825.           update_user_defined
  826.           $WEATHER_UPDATE = false
  827.         end
  828.         if $WEATHER_ANIMATED and @countarray[i] == 0
  829.           @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  830.           sprite.bitmap = @user_bitmaps[@current_pose[i]]
  831.         end
  832.         sprite.x += $WEATHER_X
  833.         sprite.y += $WEATHER_Y
  834.         sprite.opacity -= $WEATHER_FADE
  835.       end
  836.       if @type == 16 # blowing snow
  837.         sprite.x -= 10
  838.         sprite.y += 6
  839.         sprite.opacity -= 4
  840.       end
  841.       if @type == 48 # blood blizzard
  842.         sprite.x -= 10
  843.         sprite.y += 6
  844.         sprite.opacity -= 4
  845.       end
  846.       if @type == 52 # water bombs
  847.         if @countarray[i] > 0
  848.           if rand(20) == 0
  849.             sprite.bitmap = @waterbomb_impact_bitmap
  850.             @countarray[i] = -5
  851.           else
  852.             sprite.x -= 3
  853.             sprite.y += 5
  854.           end
  855.         else
  856.           @countarray[i] += 1
  857.           if @countarray[i] == 0
  858.             sprite.bitmap = @waterbomb_bitmap
  859.             sprite.opacity = 0
  860.             @count_array = 1
  861.           end
  862.         end
  863.       end
  864.         if @type == 53 # icy bombs
  865.         if @countarray[i] > 0
  866.           if rand(20) == 0
  867.             sprite.bitmap = @icybomb_impact_bitmap
  868.             @countarray[i] = -5
  869.           else
  870.             sprite.x -= 3
  871.             sprite.y += 5
  872.           end
  873.         else
  874.           @countarray[i] += 1
  875.           if @countarray[i] == 0
  876.             sprite.bitmap = @icybomb_bitmap
  877.             sprite.opacity = 0
  878.             @count_array = 1
  879.           end
  880.         end
  881.       end
  882.       if @type == 54 # flare bombs
  883.         if @countarray[i] > 0
  884.           if rand(20) == 0
  885.             sprite.bitmap = @flarebomb_impact_bitmap
  886.             @countarray[i] = -5
  887.           else
  888.             sprite.x -= 3
  889.             sprite.y += 5
  890.           end
  891.         else
  892.           @countarray[i] += 1
  893.           if @countarray[i] == 0
  894.             sprite.bitmap = @flarebomb_bitmap
  895.             sprite.opacity = 0
  896.             @count_array = 1
  897.           end
  898.         end
  899.       end
  900.       if @type == 17 # meteors
  901.         if @countarray[i] > 0
  902.           if rand(20) == 0
  903.             sprite.bitmap = @impact_bitmap
  904.             @countarray[i] = -5
  905.           else
  906.             sprite.x -= 6
  907.             sprite.y += 10
  908.           end
  909.         else
  910.           @countarray[i] += 1
  911.           if @countarray[i] == 0
  912.             sprite.bitmap = @meteor_bitmap
  913.             sprite.opacity = 0
  914.             @count_array = 1
  915.           end
  916.         end
  917.       end
  918.       if @type == 18 # ash
  919.         sprite.y += 2
  920.         case @countarray[i] % 3
  921.         when 0
  922.           sprite.x -= 1
  923.         when 1
  924.           sprite.x += 1
  925.         end
  926.       end
  927.       if @type == 19 or @type == 20 # bubbles
  928.         switch = rand(75) + rand(75) + 1
  929.         if @info[i] < switch / 2
  930.           sprite.x -= 1
  931.         else
  932.           sprite.x += 1
  933.         end
  934.         @info[i] = (@info[i] + 1) % switch
  935.         sprite.y -= 1
  936.         if switch % 2 == 0
  937.           sprite.opacity -= 1
  938.         end
  939.       end
  940.       if @type == 21 # sparkles up
  941.         if @countarray[i] == 0
  942.           @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  943.           sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  944.         end
  945.         @countarray[i] = (@countarray[i] + 1) % 15
  946.         sprite.y -= 1
  947.         sprite.opacity -= 1
  948.       end
  949.          if @type == 24 # falling yellow leaves
  950.         @count = rand(20)
  951.         if @count == 0
  952.           sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  953.           @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  954.         end
  955.         sprite.x -= 1
  956.         sprite.y += 1
  957.       end
  958.        if @type == 22 # blowing green leaves
  959.         @count = rand(20)
  960.         if @count == 0
  961.           sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  962.           @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  963.         end
  964.         sprite.x -= 10
  965.         sprite.y += (rand(4) - 2)
  966.       end      
  967.       if @type == 23 # swirling green leaves
  968.         @count = rand(20)
  969.         if @count == 0
  970.           sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  971.           @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  972.         end
  973.         if @info[i] != 0
  974.           if @info[i] >= 1 and @info[i] <= 10
  975.             sprite.x -= 3
  976.             sprite.y -= 1
  977.           elsif @info[i] >= 11 and @info[i] <= 16
  978.             sprite.x -= 1
  979.             sprite.y -= 2
  980.           elsif @info[i] >= 17 and @info[i] <= 20
  981.             sprite.y -= 3
  982.           elsif @info[i] >= 21 and @info[i] <= 30
  983.             sprite.y -= 2
  984.             sprite.x += 1
  985.           elsif @info[i] >= 31 and @info[i] <= 36
  986.             sprite.y -= 1
  987.             sprite.x += 3
  988.           elsif @info[i] >= 37 and @info[i] <= 40
  989.             sprite.x += 5
  990.           elsif @info[i] >= 41 and @info[i] <= 46
  991.             sprite.y += 1
  992.             sprite.x += 3
  993.           elsif @info[i] >= 47 and @info[i] <= 58
  994.             sprite.y += 2
  995.             sprite.x += 1
  996.           elsif @info[i] >= 59 and @info[i] <= 64
  997.             sprite.y += 3
  998.           elsif @info[i] >= 65 and @info[i] <= 70
  999.             sprite.x -= 1
  1000.             sprite.y += 2
  1001.           elsif @info[i] >= 71 and @info[i] <= 81
  1002.             sprite.x -= 3
  1003.             sprite.y += 1
  1004.           elsif @info[i] >= 82 and @info[i] <= 87
  1005.             sprite.x -= 5
  1006.           end
  1007.           @info[i] = (@info[i] + 1) % 88
  1008.         else
  1009.           if rand(200) == 0
  1010.             @info[i] = 1
  1011.           end
  1012.           sprite.x -= 5
  1013.           sprite.y += 1
  1014.         end
  1015.       end
  1016.         if @type == 24 # falling yellow leaves
  1017.         @count = rand(20)
  1018.         if @count == 0
  1019.           sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1020.           @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1021.         end
  1022.         sprite.x -= 1
  1023.         sprite.y += 1
  1024.       end      
  1025.      if @type == 25 # blowing yellow leaves
  1026.         @count = rand(20)
  1027.         if @count == 0
  1028.           sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1029.           @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1030.         end
  1031.         sprite.x -= 10
  1032.         sprite.y += (rand(4) - 2)
  1033.       end
  1034.        if @type == 26 # swirling yellow leaves
  1035.         @count = rand(20)
  1036.         if @count == 0
  1037.           sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  1038.           @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  1039.         end
  1040.         if @info[i] != 0
  1041.           if @info[i] >= 1 and @info[i] <= 10
  1042.             sprite.x -= 3
  1043.             sprite.y -= 1
  1044.           elsif @info[i] >= 11 and @info[i] <= 16
  1045.             sprite.x -= 1
  1046.             sprite.y -= 2
  1047.           elsif @info[i] >= 17 and @info[i] <= 20
  1048.             sprite.y -= 3
  1049.           elsif @info[i] >= 21 and @info[i] <= 30
  1050.             sprite.y -= 2
  1051.             sprite.x += 1
  1052.           elsif @info[i] >= 31 and @info[i] <= 36
  1053.             sprite.y -= 1
  1054.             sprite.x += 3
  1055.           elsif @info[i] >= 37 and @info[i] <= 40
  1056.             sprite.x += 5
  1057.           elsif @info[i] >= 41 and @info[i] <= 46
  1058.             sprite.y += 1
  1059.             sprite.x += 3
  1060.           elsif @info[i] >= 47 and @info[i] <= 58
  1061.             sprite.y += 2
  1062.             sprite.x += 1
  1063.           elsif @info[i] >= 59 and @info[i] <= 64
  1064.             sprite.y += 3
  1065.           elsif @info[i] >= 65 and @info[i] <= 70
  1066.             sprite.x -= 1
  1067.             sprite.y += 2
  1068.           elsif @info[i] >= 71 and @info[i] <= 81
  1069.             sprite.x -= 3
  1070.             sprite.y += 1
  1071.           elsif @info[i] >= 82 and @info[i] <= 87
  1072.             sprite.x -= 5
  1073.           end
  1074.           @info[i] = (@info[i] + 1) % 88
  1075.         else
  1076.           if rand(200) == 0
  1077.             @info[i] = 1
  1078.           end
  1079.           sprite.x -= 5
  1080.           sprite.y += 1
  1081.         end
  1082.       end
  1083.       
  1084.       x = sprite.x - @ox
  1085.       y = sprite.y - @oy
  1086.       if sprite.opacity < 64 or x < -50 or x > 750 or y < -300 or y > 500
  1087.         sprite.x = rand(800) - 50 + @ox
  1088.         sprite.y = rand(800) - 200 + @oy
  1089.         sprite.opacity = 255
  1090.       end
  1091.     end
  1092.   end
  1093. #-------------------------------------------------------------------------------  
  1094.   def make_bitmaps
  1095.     color1 = Color.new(255, 255, 255, 255)
  1096.     color2 = Color.new(255, 255, 255, 128)
  1097.     @rain_bitmap = Bitmap.new(7, 56)
  1098.     for i in 0..6
  1099.       @rain_bitmap.fill_rect(6-i, i*8, 1, 8, color1)
  1100.     end
  1101.     @rain_splash = Bitmap.new(8, 5)
  1102.     @rain_splash.fill_rect(1, 0, 6, 1, color2)
  1103.     @rain_splash.fill_rect(1, 4, 6, 1, color2)
  1104.     @rain_splash.fill_rect(0, 1, 1, 3, color2)
  1105.     @rain_splash.fill_rect(7, 1, 1, 3, color2)
  1106.     @rain_splash.set_pixel(1, 0, color1)
  1107.     @rain_splash.set_pixel(0, 1, color1)
  1108. #-------------------------------------------------------------------------------   
  1109.     @storm_bitmap = Bitmap.new(34, 64)
  1110.     for i in 0..31
  1111.       @storm_bitmap.fill_rect(33-i, i*2, 1, 2, color2)
  1112.       @storm_bitmap.fill_rect(32-i, i*2, 1, 2, color1)
  1113.       @storm_bitmap.fill_rect(31-i, i*2, 1, 2, color2)
  1114.     end
  1115. #-------------------------------------------------------------------------------   
  1116.     @snow_bitmap = Bitmap.new(6, 6)
  1117.     @snow_bitmap.fill_rect(0, 1, 6, 4, color2)
  1118.     @snow_bitmap.fill_rect(1, 0, 4, 6, color2)
  1119.     @snow_bitmap.fill_rect(1, 2, 4, 2, color1)
  1120.     @snow_bitmap.fill_rect(2, 1, 2, 4, color1)
  1121.     @sprites = []   
  1122.     @snow_bitmaps = []
  1123.    
  1124.     color3 = Color.new(255, 255, 255, 204)
  1125.     @snow_bitmaps[0] = Bitmap.new(3, 3)
  1126.     @snow_bitmaps[0].fill_rect(0, 0, 3, 3, color2)
  1127.     @snow_bitmaps[0].fill_rect(0, 1, 3, 1, color3)
  1128.     @snow_bitmaps[0].fill_rect(1, 0, 1, 3, color3)
  1129.     @snow_bitmaps[0].set_pixel(1, 1, color1)
  1130.    
  1131.     @snow_bitmaps[1] = Bitmap.new(4, 4)
  1132.     @snow_bitmaps[1].fill_rect(0, 1, 4, 2, color2)
  1133.     @snow_bitmaps[1].fill_rect(1, 0, 2, 4, color2)
  1134.     @snow_bitmaps[1].fill_rect(1, 1, 2, 2, color1)
  1135.    
  1136.     @snow_bitmaps[2] = Bitmap.new(5, 5)
  1137.     @snow_bitmaps[1].fill_rect(0, 1, 5, 3, color3)
  1138.     @snow_bitmaps[1].fill_rect(1, 0, 3, 5, color3)
  1139.     @snow_bitmaps[1].fill_rect(1, 1, 3, 3, color2)
  1140.     @snow_bitmaps[1].fill_rect(2, 1, 3, 1, color1)
  1141.     @snow_bitmaps[1].fill_rect(1, 2, 1, 3, color1)
  1142.    
  1143.     @snow_bitmaps[3] = Bitmap.new(7, 7)
  1144.     @snow_bitmaps[1].fill_rect(1, 1, 5, 5, color3)
  1145.     @snow_bitmaps[1].fill_rect(2, 0, 7, 3, color3)
  1146.     @snow_bitmaps[1].fill_rect(0, 2, 3, 7, color3)
  1147.     @snow_bitmaps[1].fill_rect(2, 1, 5, 3, color2)
  1148.     @snow_bitmaps[1].fill_rect(1, 2, 3, 5, color2)
  1149.     @snow_bitmaps[1].fill_rect(2, 2, 3, 3, color1)
  1150.     @snow_bitmaps[1].fill_rect(3, 1, 5, 1, color1)
  1151.     @snow_bitmaps[1].fill_rect(1, 3, 1, 5, color1)
  1152. #-------------------------------------------------------------------------------   
  1153.     #hail
  1154.    
  1155.     blueGrey  = Color.new(215, 227, 227, 150)
  1156.     grey      = Color.new(214, 217, 217, 150)
  1157.     lightGrey = Color.new(233, 233, 233, 250)
  1158.     lightBlue = Color.new(222, 239, 243, 250)
  1159.    
  1160.     @hail_bitmap = Bitmap.new(4, 4)
  1161.     @hail_bitmap.fill_rect(1, 0, 2, 1, blueGrey)
  1162.     @hail_bitmap.fill_rect(0, 1, 1, 2, blueGrey)
  1163.     @hail_bitmap.fill_rect(3, 1, 1, 2, grey)
  1164.     @hail_bitmap.fill_rect(1, 3, 2, 1, grey)
  1165.     @hail_bitmap.fill_rect(1, 1, 2, 2, lightGrey)
  1166.     @hail_bitmap.set_pixel(1, 1, lightBlue)
  1167.    
  1168. #-------------------------------------------------------------------------------   
  1169.     #sakura petals

  1170.     color3 = Color.new(255, 167, 192, 255) # light pink
  1171.     color4 = Color.new(213, 106, 136, 255) # dark pink
  1172.     @petal_bitmap = Bitmap.new(4, 4) #This creates a new bitmap that is 4 x 4 pixels
  1173.     @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)
  1174.     @petal_bitmap.fill_rect(1, 2, 1, 1, color3)
  1175.     @petal_bitmap.fill_rect(2, 1, 1, 1, color3)
  1176.     @petal_bitmap.fill_rect(3, 0, 1, 1, color3)
  1177.     @petal_bitmap.fill_rect(1, 3, 1, 1, color4)
  1178.     @petal_bitmap.fill_rect(2, 2, 1, 1, color4)
  1179.     @petal_bitmap.fill_rect(3, 1, 1, 1, color4)
  1180.    
  1181. #-------------------------------------------------------------------------------   
  1182.     #autumn brown leaves
  1183.    
  1184.     brightOrange = Color.new(248, 88, 0, 255)  
  1185.     orangeBrown  = Color.new(144, 80, 56, 255)
  1186.     burntRed     = Color.new(152, 0, 0, 255)
  1187.     paleOrange   = Color.new(232, 160, 128, 255)
  1188.     darkBrown    = Color.new(72, 40, 0, 255)
  1189.    
  1190.     @autumn_leaf_bitmaps = []
  1191.    
  1192.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1193.     # draw the first of the leaf1 bitmaps
  1194.     @autumn_leaf_bitmaps[0].set_pixel(5, 1, orangeBrown)
  1195.     @autumn_leaf_bitmaps[0].set_pixel(6, 1, brightOrange)
  1196.     @autumn_leaf_bitmaps[0].set_pixel(7, 1, paleOrange)
  1197.     @autumn_leaf_bitmaps[0].set_pixel(3, 2, orangeBrown)
  1198.     @autumn_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightOrange)
  1199.     @autumn_leaf_bitmaps[0].set_pixel(6, 2, paleOrange)
  1200.     @autumn_leaf_bitmaps[0].set_pixel(2, 3, orangeBrown)
  1201.     @autumn_leaf_bitmaps[0].set_pixel(3, 3, brightOrange)
  1202.     @autumn_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, paleOrange)
  1203.     @autumn_leaf_bitmaps[0].set_pixel(1, 4, orangeBrown)
  1204.     @autumn_leaf_bitmaps[0].set_pixel(2, 4, brightOrange)
  1205.     @autumn_leaf_bitmaps[0].set_pixel(3, 4, paleOrange)
  1206.     @autumn_leaf_bitmaps[0].set_pixel(1, 5, brightOrange)
  1207.     @autumn_leaf_bitmaps[0].set_pixel(2, 5, paleOrange)
  1208.     @autumn_leaf_bitmaps[0].set_pixel(0, 6, orangeBrown)
  1209.     @autumn_leaf_bitmaps[0].set_pixel(1, 6, paleOrange)
  1210.     @autumn_leaf_bitmaps[0].set_pixel(0, 7, paleOrange)
  1211.    
  1212.     # draw the 2nd of the leaf1 bitmaps
  1213.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1214.     @autumn_leaf_bitmaps[1].set_pixel(3, 0, brightOrange)
  1215.     @autumn_leaf_bitmaps[1].set_pixel(7, 0, brightOrange)
  1216.     @autumn_leaf_bitmaps[1].set_pixel(3, 1, orangeBrown)
  1217.     @autumn_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  1218.     @autumn_leaf_bitmaps[1].set_pixel(6, 1, brightOrange)
  1219.     @autumn_leaf_bitmaps[1].set_pixel(0, 2, paleOrange)
  1220.     @autumn_leaf_bitmaps[1].set_pixel(1, 2, brightOrange)
  1221.     @autumn_leaf_bitmaps[1].set_pixel(2, 2, orangeBrown)
  1222.     @autumn_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  1223.     @autumn_leaf_bitmaps[1].set_pixel(4, 2, orangeBrown)
  1224.     @autumn_leaf_bitmaps[1].set_pixel(5, 2, brightOrange)
  1225.     @autumn_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, orangeBrown)
  1226.     @autumn_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightOrange)
  1227.     @autumn_leaf_bitmaps[1].set_pixel(6, 3, orangeBrown)
  1228.     @autumn_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  1229.     @autumn_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightOrange)
  1230.     @autumn_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  1231.     @autumn_leaf_bitmaps[1].set_pixel(7, 4, darkBrown)
  1232.     @autumn_leaf_bitmaps[1].set_pixel(1, 5, orangeBrown)
  1233.     @autumn_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightOrange)
  1234.     @autumn_leaf_bitmaps[1].set_pixel(4, 5, orangeBrown)
  1235.     @autumn_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  1236.     @autumn_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightOrange)
  1237.     @autumn_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  1238.     @autumn_leaf_bitmaps[1].set_pixel(0, 7, brightOrange)
  1239.     @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkBrown)
  1240.    
  1241.     # draw the 3rd of the leaf1 bitmaps
  1242.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1243.     @autumn_leaf_bitmaps[2].set_pixel(7, 1, paleOrange)
  1244.     @autumn_leaf_bitmaps[2].set_pixel(6, 2, paleOrange)
  1245.     @autumn_leaf_bitmaps[2].set_pixel(7, 2, orangeBrown)
  1246.     @autumn_leaf_bitmaps[2].set_pixel(5, 3, paleOrange)
  1247.     @autumn_leaf_bitmaps[2].set_pixel(6, 3, brightOrange)
  1248.     @autumn_leaf_bitmaps[2].set_pixel(4, 4, paleOrange)
  1249.     @autumn_leaf_bitmaps[2].set_pixel(5, 4, brightOrange)
  1250.     @autumn_leaf_bitmaps[2].set_pixel(6, 4, orangeBrown)
  1251.     @autumn_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, paleOrange)
  1252.     @autumn_leaf_bitmaps[2].set_pixel(4, 5, brightOrange)
  1253.     @autumn_leaf_bitmaps[2].set_pixel(5, 5, orangeBrown)
  1254.     @autumn_leaf_bitmaps[2].set_pixel(1, 6, paleOrange)
  1255.     @autumn_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightOrange)
  1256.     @autumn_leaf_bitmaps[2].set_pixel(4, 6, orangeBrown)
  1257.     @autumn_leaf_bitmaps[2].set_pixel(0, 7, paleOrange)
  1258.     @autumn_leaf_bitmaps[2].set_pixel(1, 7, brightOrange)
  1259.     @autumn_leaf_bitmaps[2].set_pixel(2, 7, orangeBrown)
  1260.    
  1261.     # draw the 4th of the leaf1 bitmaps
  1262.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1263.     @autumn_leaf_bitmaps[3].set_pixel(3, 0, brightOrange)
  1264.     @autumn_leaf_bitmaps[3].set_pixel(7, 0, brightOrange)
  1265.     @autumn_leaf_bitmaps[3].set_pixel(3, 1, orangeBrown)
  1266.     @autumn_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  1267.     @autumn_leaf_bitmaps[3].set_pixel(6, 1, brightOrange)
  1268.     @autumn_leaf_bitmaps[3].set_pixel(0, 2, paleOrange)
  1269.     @autumn_leaf_bitmaps[3].set_pixel(1, 2, brightOrange)
  1270.     @autumn_leaf_bitmaps[3].set_pixel(2, 2, orangeBrown)
  1271.     @autumn_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  1272.     @autumn_leaf_bitmaps[3].set_pixel(4, 2, orangeBrown)
  1273.     @autumn_leaf_bitmaps[3].set_pixel(5, 2, brightOrange)
  1274.     @autumn_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, orangeBrown)
  1275.     @autumn_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightOrange)
  1276.     @autumn_leaf_bitmaps[3].set_pixel(6, 3, orangeBrown)
  1277.     @autumn_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  1278.     @autumn_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightOrange)
  1279.     @autumn_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  1280.     @autumn_leaf_bitmaps[3].set_pixel(7, 4, darkBrown)
  1281.     @autumn_leaf_bitmaps[3].set_pixel(1, 5, orangeBrown)
  1282.     @autumn_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightOrange)
  1283.     @autumn_leaf_bitmaps[3].set_pixel(4, 5, orangeBrown)
  1284.     @autumn_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  1285.     @autumn_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightOrange)
  1286.     @autumn_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  1287.     @autumn_leaf_bitmaps[3].set_pixel(0, 7, brightOrange)
  1288.     @autumn_leaf_bitmaps[3].set_pixel(5, 7, darkBrown)
  1289.    
  1290. #-------------------------------------------------------------------------------

  1291.     # Red maple leaves
  1292.    
  1293.     @redmaple_leaf_bitmaps = []
  1294.     brightRed = Color.new(255, 0, 0, 255)
  1295.     midRed    = Color.new(179, 17, 17, 255)
  1296.     darkRed   = Color.new(141, 9, 9, 255)
  1297.    
  1298.     @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1299.     # draw the first of the red maple leaves bitmaps
  1300.     @redmaple_leaf_bitmaps[0].set_pixel(5, 1, darkRed)
  1301.     @redmaple_leaf_bitmaps[0].set_pixel(6, 1, brightRed)
  1302.     @redmaple_leaf_bitmaps[0].set_pixel(7, 1, midRed)
  1303.     @redmaple_leaf_bitmaps[0].set_pixel(3, 2, darkRed)
  1304.     @redmaple_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightRed)
  1305.     @redmaple_leaf_bitmaps[0].set_pixel(6, 2, midRed)
  1306.     @redmaple_leaf_bitmaps[0].set_pixel(2, 3, darkRed)
  1307.     @redmaple_leaf_bitmaps[0].set_pixel(3, 3, brightRed)
  1308.     @redmaple_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, midRed)
  1309.     @redmaple_leaf_bitmaps[0].set_pixel(1, 4, brightRed)
  1310.     @redmaple_leaf_bitmaps[0].set_pixel(2, 4, brightRed)
  1311.     @redmaple_leaf_bitmaps[0].set_pixel(3, 4, midRed)
  1312.     @redmaple_leaf_bitmaps[0].set_pixel(1, 5, brightRed)
  1313.     @redmaple_leaf_bitmaps[0].set_pixel(2, 5, midRed)
  1314.     @redmaple_leaf_bitmaps[0].set_pixel(0, 6, darkRed)
  1315.     @redmaple_leaf_bitmaps[0].set_pixel(1, 6, midRed)
  1316.     @redmaple_leaf_bitmaps[0].set_pixel(0, 7, midRed)
  1317.    
  1318.     # draw the 2nd of the red maple leaves bitmaps
  1319.     @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1320.     @redmaple_leaf_bitmaps[1].set_pixel(3, 0, brightRed)
  1321.     @redmaple_leaf_bitmaps[1].set_pixel(7, 0, brightRed)
  1322.     @redmaple_leaf_bitmaps[1].set_pixel(3, 1, darkRed)
  1323.     @redmaple_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  1324.     @redmaple_leaf_bitmaps[1].set_pixel(6, 1, brightRed)
  1325.     @redmaple_leaf_bitmaps[1].set_pixel(0, 2, midRed)
  1326.     @redmaple_leaf_bitmaps[1].set_pixel(1, 2, brightRed)
  1327.     @redmaple_leaf_bitmaps[1].set_pixel(2, 2, darkRed)
  1328.     @redmaple_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  1329.     @redmaple_leaf_bitmaps[1].set_pixel(4, 2, darkRed)
  1330.     @redmaple_leaf_bitmaps[1].set_pixel(5, 2, brightRed)
  1331.     @redmaple_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, darkRed)
  1332.     @redmaple_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightRed)
  1333.     @redmaple_leaf_bitmaps[1].set_pixel(6, 3, darkRed)
  1334.     @redmaple_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  1335.     @redmaple_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightRed)
  1336.     @redmaple_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  1337.     @redmaple_leaf_bitmaps[1].set_pixel(7, 4, darkRed)
  1338.     @redmaple_leaf_bitmaps[1].set_pixel(1, 5, darkRed)
  1339.     @redmaple_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightRed)
  1340.     @redmaple_leaf_bitmaps[1].set_pixel(4, 5, darkRed)
  1341.     @redmaple_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  1342.     @redmaple_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightRed)
  1343.     @redmaple_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  1344.     @redmaple_leaf_bitmaps[1].set_pixel(0, 7, brightRed)
  1345.     @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkRed)
  1346.    
  1347.     # draw the 3rd of the red maple leaves bitmaps
  1348.     @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1349.     @redmaple_leaf_bitmaps[2].set_pixel(7, 1, midRed)
  1350.     @redmaple_leaf_bitmaps[2].set_pixel(6, 2, midRed)
  1351.     @redmaple_leaf_bitmaps[2].set_pixel(7, 2, darkRed)
  1352.     @redmaple_leaf_bitmaps[2].set_pixel(5, 3, midRed)
  1353.     @redmaple_leaf_bitmaps[2].set_pixel(6, 3, brightRed)
  1354.     @redmaple_leaf_bitmaps[2].set_pixel(4, 4, midRed)
  1355.     @redmaple_leaf_bitmaps[2].set_pixel(5, 4, brightRed)
  1356.     @redmaple_leaf_bitmaps[2].set_pixel(6, 4, darkRed)
  1357.     @redmaple_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, midRed)
  1358.     @redmaple_leaf_bitmaps[2].set_pixel(4, 5, brightRed)
  1359.     @redmaple_leaf_bitmaps[2].set_pixel(5, 5, darkRed)
  1360.     @redmaple_leaf_bitmaps[2].set_pixel(1, 6, midRed)
  1361.     @redmaple_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightRed)
  1362.     @redmaple_leaf_bitmaps[2].set_pixel(4, 6, darkRed)
  1363.     @redmaple_leaf_bitmaps[2].set_pixel(0, 7, midRed)
  1364.     @redmaple_leaf_bitmaps[2].set_pixel(1, 7, brightRed)
  1365.     @redmaple_leaf_bitmaps[2].set_pixel(2, 7, darkRed)
  1366.    
  1367.     # draw the 4th of the red maple leaves bitmaps
  1368.     @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1369.     @redmaple_leaf_bitmaps[3].set_pixel(3, 0, brightRed)
  1370.     @redmaple_leaf_bitmaps[3].set_pixel(7, 0, brightRed)
  1371.     @redmaple_leaf_bitmaps[3].set_pixel(3, 1, darkRed)
  1372.     @redmaple_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  1373.     @redmaple_leaf_bitmaps[3].set_pixel(6, 1, brightRed)
  1374.     @redmaple_leaf_bitmaps[3].set_pixel(0, 2, midRed)
  1375.     @redmaple_leaf_bitmaps[3].set_pixel(1, 2, brightRed)
  1376.     @redmaple_leaf_bitmaps[3].set_pixel(2, 2, darkRed)
  1377.     @redmaple_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  1378.     @redmaple_leaf_bitmaps[3].set_pixel(4, 2, darkRed)
  1379.     @redmaple_leaf_bitmaps[3].set_pixel(5, 2, brightRed)
  1380.     @redmaple_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, darkRed)
  1381.     @redmaple_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightRed)
  1382.     @redmaple_leaf_bitmaps[3].set_pixel(6, 3, darkRed)
  1383.     @redmaple_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  1384.     @redmaple_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightRed)
  1385.     @redmaple_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  1386.     @redmaple_leaf_bitmaps[3].set_pixel(7, 4, darkRed)
  1387.     @redmaple_leaf_bitmaps[3].set_pixel(1, 5, darkRed)
  1388.     @redmaple_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightRed)
  1389.     @redmaple_leaf_bitmaps[3].set_pixel(4, 5, darkRed)
  1390.     @redmaple_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  1391.     @redmaple_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightRed)
  1392.     @redmaple_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  1393.     @redmaple_leaf_bitmaps[3].set_pixel(0, 7, brightRed)
  1394.     @redmaple_leaf_bitmaps[3].set_pixel(5, 7, darkRed)
  1395. #-------------------------------------------------------------------------------   
  1396.     #Green leaves

  1397.     @green_leaf_bitmaps = []
  1398.     darkGreen  = Color.new(62, 76, 31, 255)
  1399.     midGreen   = Color.new(76, 91, 43, 255)
  1400.     khaki      = Color.new(105, 114, 66, 255)
  1401.     lightGreen = Color.new(128, 136, 88, 255)
  1402.     mint       = Color.new(146, 154, 106, 255)
  1403.    
  1404.     # 1st leaf bitmap
  1405.     @green_leaf_bitmaps[0] = Bitmap.new(8, 8)
  1406.     @green_leaf_bitmaps[0].set_pixel(1, 0, darkGreen)
  1407.     @green_leaf_bitmaps[0].set_pixel(1, 1, midGreen)
  1408.     @green_leaf_bitmaps[0].set_pixel(2, 1, darkGreen)
  1409.     @green_leaf_bitmaps[0].set_pixel(2, 2, khaki)
  1410.     @green_leaf_bitmaps[0].set_pixel(3, 2, darkGreen)
  1411.     @green_leaf_bitmaps[0].set_pixel(4, 2, khaki)
  1412.     @green_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midGreen)
  1413.     @green_leaf_bitmaps[0].set_pixel(5, 3, khaki)
  1414.     @green_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midGreen)
  1415.     @green_leaf_bitmaps[0].set_pixel(4, 4, darkGreen)
  1416.     @green_leaf_bitmaps[0].set_pixel(5, 4, lightGreen)
  1417.     @green_leaf_bitmaps[0].set_pixel(6, 4, khaki)
  1418.     @green_leaf_bitmaps[0].set_pixel(3, 5, midGreen)
  1419.     @green_leaf_bitmaps[0].set_pixel(4, 5, darkGreen)
  1420.     @green_leaf_bitmaps[0].set_pixel(5, 5, khaki)
  1421.     @green_leaf_bitmaps[0].set_pixel(6, 5, lightGreen)
  1422.     @green_leaf_bitmaps[0].set_pixel(4, 6, midGreen)
  1423.     @green_leaf_bitmaps[0].set_pixel(5, 6, darkGreen)
  1424.     @green_leaf_bitmaps[0].set_pixel(6, 6, lightGreen)
  1425.     @green_leaf_bitmaps[0].set_pixel(6, 7, khaki)
  1426.    
  1427.     # 2nd leaf bitmap
  1428.     @green_leaf_bitmaps[1] = Bitmap.new(8, 8)
  1429.     @green_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midGreen)
  1430.     @green_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, khaki)
  1431.     @green_leaf_bitmaps[1].set_pixel(4, 2, lightGreen)
  1432.     @green_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkGreen)
  1433.     @green_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightGreen)
  1434.     @green_leaf_bitmaps[1].set_pixel(2, 4, midGreen)
  1435.     @green_leaf_bitmaps[1].set_pixel(3, 4, darkGreen)
  1436.     @green_leaf_bitmaps[1].set_pixel(4, 4, khaki)
  1437.     @green_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightGreen)
  1438.     @green_leaf_bitmaps[1].set_pixel(3, 5, midGreen)
  1439.     @green_leaf_bitmaps[1].set_pixel(4, 5, darkGreen)
  1440.     @green_leaf_bitmaps[1].set_pixel(5, 5, khaki)
  1441.     @green_leaf_bitmaps[1].set_pixel(6, 5, lightGreen)
  1442.     @green_leaf_bitmaps[1].set_pixel(5, 6, darkGreen)
  1443.     @green_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, khaki)
  1444.    
  1445.     # 3rd leaf bitmap
  1446.     @green_leaf_bitmaps[2] = Bitmap.new(8, 8)
  1447.     @green_leaf_bitmaps[2].set_pixel(1, 1, darkGreen)
  1448.     @green_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midGreen)
  1449.     @green_leaf_bitmaps[2].set_pixel(2, 3, midGreen)
  1450.     @green_leaf_bitmaps[2].set_pixel(3, 3, darkGreen)
  1451.     @green_leaf_bitmaps[2].set_pixel(4, 3, midGreen)
  1452.     @green_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midGreen)
  1453.     @green_leaf_bitmaps[2].set_pixel(4, 4, darkGreen)
  1454.     @green_leaf_bitmaps[2].set_pixel(5, 4, lightGreen)
  1455.     @green_leaf_bitmaps[2].set_pixel(3, 5, midGreen)
  1456.     @green_leaf_bitmaps[2].set_pixel(4, 5, darkGreen)
  1457.     @green_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, khaki)
  1458.     @green_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midGreen)
  1459.     @green_leaf_bitmaps[2].set_pixel(6, 6, lightGreen)
  1460.     @green_leaf_bitmaps[2].set_pixel(6, 7, khaki)
  1461.    
  1462.     # 4th leaf bitmap
  1463.     @green_leaf_bitmaps[3] = Bitmap.new(8, 8)
  1464.     @green_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkGreen)
  1465.     @green_leaf_bitmaps[3].set_pixel(1, 4, midGreen)
  1466.     @green_leaf_bitmaps[3].set_pixel(2, 4, khaki)
  1467.     @green_leaf_bitmaps[3].set_pixel(3, 4, lightGreen)
  1468.     @green_leaf_bitmaps[3].set_pixel(4, 4, darkGreen)
  1469.     @green_leaf_bitmaps[3].set_pixel(7, 4, midGreen)
  1470.     @green_leaf_bitmaps[3].set_pixel(1, 5, darkGreen)
  1471.     @green_leaf_bitmaps[3].set_pixel(2, 5, midGreen)
  1472.     @green_leaf_bitmaps[3].set_pixel(3, 5, lightGreen)
  1473.     @green_leaf_bitmaps[3].set_pixel(4, 5, mint)
  1474.     @green_leaf_bitmaps[3].set_pixel(5, 5, lightGreen)
  1475.     @green_leaf_bitmaps[3].set_pixel(6, 5, khaki)
  1476.     @green_leaf_bitmaps[3].set_pixel(7, 5, midGreen)
  1477.     @green_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midGreen)
  1478.     @green_leaf_bitmaps[3].set_pixel(4, 6, lightGreen)
  1479.     @green_leaf_bitmaps[3].set_pixel(5, 6, khaki)
  1480.     @green_leaf_bitmaps[3].set_pixel(6, 6, midGreen)
  1481.    
  1482.     # 5th leaf bitmap
  1483.     @green_leaf_bitmaps[4] = Bitmap.new(8, 8)
  1484.     @green_leaf_bitmaps[4].set_pixel(6, 2, midGreen)
  1485.     @green_leaf_bitmaps[4].set_pixel(7, 2, darkGreen)
  1486.     @green_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midGreen)
  1487.     @green_leaf_bitmaps[4].set_pixel(6, 3, khaki)
  1488.     @green_leaf_bitmaps[4].set_pixel(2, 4, darkGreen)
  1489.     @green_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, khaki)
  1490.     @green_leaf_bitmaps[4].set_pixel(5, 4, lightGreen)
  1491.     @green_leaf_bitmaps[4].set_pixel(6, 4, khaki)
  1492.     @green_leaf_bitmaps[4].set_pixel(1, 5, midGreen)
  1493.     @green_leaf_bitmaps[4].set_pixel(2, 5, khaki)
  1494.     @green_leaf_bitmaps[4].set_pixel(3, 5, lightGreen)
  1495.     @green_leaf_bitmaps[4].set_pixel(4, 5, mint)
  1496.     @green_leaf_bitmaps[4].set_pixel(5, 5, midGreen)
  1497.     @green_leaf_bitmaps[4].set_pixel(2, 6, darkGreen)
  1498.     @green_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midGreen)
  1499.    
  1500.     # 6th leaf bitmap
  1501.     @green_leaf_bitmaps[5] = Bitmap.new(8, 8)
  1502.     @green_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midGreen)
  1503.     @green_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midGreen)
  1504.     @green_leaf_bitmaps[5].set_pixel(6, 3, khaki)
  1505.     @green_leaf_bitmaps[5].set_pixel(3, 4, midGreen)
  1506.     @green_leaf_bitmaps[5].set_pixel(4, 4, khaki)
  1507.     @green_leaf_bitmaps[5].set_pixel(5, 4, lightGreen)
  1508.     @green_leaf_bitmaps[5].set_pixel(6, 4, mint)
  1509.     @green_leaf_bitmaps[5].set_pixel(1, 5, midGreen)
  1510.     @green_leaf_bitmaps[5].set_pixel(2, 5, khaki)
  1511.     @green_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, mint)
  1512.     @green_leaf_bitmaps[5].set_pixel(5, 5, lightGreen)
  1513.     @green_leaf_bitmaps[5].set_pixel(2, 6, midGreen)
  1514.     @green_leaf_bitmaps[5].set_pixel(3, 6, khaki)
  1515.     @green_leaf_bitmaps[5].set_pixel(4, 6, lightGreen)
  1516.    
  1517.     # 7th leaf bitmap
  1518.     @green_leaf_bitmaps[6] = Bitmap.new(8, 8)
  1519.     @green_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midGreen)
  1520.     @green_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midGreen)
  1521.     @green_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkGreen)
  1522.     @green_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midGreen)
  1523.     @green_leaf_bitmaps[6].set_pixel(5, 3, khaki)
  1524.     @green_leaf_bitmaps[6].set_pixel(2, 4, midGreen)
  1525.     @green_leaf_bitmaps[6].set_pixel(3, 4, khaki)
  1526.     @green_leaf_bitmaps[6].set_pixel(4, 4, lightGreen)
  1527.     @green_leaf_bitmaps[6].set_pixel(5, 4, midGreen)
  1528.     @green_leaf_bitmaps[6].set_pixel(1, 5, midGreen)
  1529.     @green_leaf_bitmaps[6].set_pixel(2, 5, khaki)
  1530.     @green_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midGreen)
  1531.     @green_leaf_bitmaps[6].set_pixel(1, 6, darkGreen)
  1532.     @green_leaf_bitmaps[6].set_pixel(2, 6, midGreen)
  1533.    
  1534.     # 8th leaf bitmap
  1535.     @green_leaf_bitmaps[7] = Bitmap.new(8, 8)
  1536.     @green_leaf_bitmaps[7].set_pixel(6, 1, midGreen)
  1537.     @green_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midGreen)
  1538.     @green_leaf_bitmaps[7].set_pixel(3, 3, darkGreen)
  1539.     @green_leaf_bitmaps[7].set_pixel(2, 4, darkGreen)
  1540.     @green_leaf_bitmaps[7].set_pixel(3, 4, midGreen)
  1541.     @green_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, khaki)
  1542.     @green_leaf_bitmaps[7].set_pixel(1, 5, darkGreen)
  1543.     @green_leaf_bitmaps[7].set_pixel(2, 5, midGreen)
  1544.     @green_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightGreen)
  1545.     @green_leaf_bitmaps[7].set_pixel(2, 6, midGreen)
  1546.     @green_leaf_bitmaps[7].set_pixel(3, 6, lightGreen)
  1547.    
  1548.     # 9th leaf bitmap
  1549.     @green_leaf_bitmaps[8] = Bitmap.new(8, 8)
  1550.     @green_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midGreen)
  1551.     @green_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midGreen)
  1552.     @green_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkGreen)
  1553.     @green_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midGreen)
  1554.     @green_leaf_bitmaps[8].set_pixel(5, 3, khaki)
  1555.     @green_leaf_bitmaps[8].set_pixel(2, 4, midGreen)
  1556.     @green_leaf_bitmaps[8].set_pixel(3, 4, khaki)
  1557.     @green_leaf_bitmaps[8].set_pixel(4, 4, lightGreen)
  1558.     @green_leaf_bitmaps[8].set_pixel(5, 4, midGreen)
  1559.     @green_leaf_bitmaps[8].set_pixel(1, 5, midGreen)
  1560.     @green_leaf_bitmaps[8].set_pixel(2, 5, khaki)
  1561.     @green_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midGreen)
  1562.     @green_leaf_bitmaps[8].set_pixel(1, 6, darkGreen)
  1563.     @green_leaf_bitmaps[8].set_pixel(2, 6, midGreen)
  1564.    
  1565.     # 10th leaf bitmap
  1566.     @green_leaf_bitmaps[9] = Bitmap.new(8, 8)
  1567.     @green_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midGreen)
  1568.     @green_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midGreen)
  1569.     @green_leaf_bitmaps[9].set_pixel(6, 3, khaki)
  1570.     @green_leaf_bitmaps[9].set_pixel(3, 4, midGreen)
  1571.     @green_leaf_bitmaps[9].set_pixel(4, 4, khaki)
  1572.     @green_leaf_bitmaps[9].set_pixel(5, 4, lightGreen)
  1573.     @green_leaf_bitmaps[9].set_pixel(6, 4, mint)
  1574.     @green_leaf_bitmaps[9].set_pixel(1, 5, midGreen)
  1575.     @green_leaf_bitmaps[9].set_pixel(2, 5, khaki)
  1576.     @green_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, mint)
  1577.     @green_leaf_bitmaps[9].set_pixel(5, 5, lightGreen)
  1578.     @green_leaf_bitmaps[9].set_pixel(2, 6, midGreen)
  1579.     @green_leaf_bitmaps[9].set_pixel(3, 6, khaki)
  1580.     @green_leaf_bitmaps[9].set_pixel(4, 6, lightGreen)
  1581.    
  1582.     # 11th leaf bitmap
  1583.     @green_leaf_bitmaps[10] = Bitmap.new(8, 8)
  1584.     @green_leaf_bitmaps[10].set_pixel(6, 2, midGreen)
  1585.     @green_leaf_bitmaps[10].set_pixel(7, 2, darkGreen)
  1586.     @green_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midGreen)
  1587.     @green_leaf_bitmaps[10].set_pixel(6, 3, khaki)
  1588.     @green_leaf_bitmaps[10].set_pixel(2, 4, darkGreen)
  1589.     @green_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, khaki)
  1590.     @green_leaf_bitmaps[10].set_pixel(5, 4, lightGreen)
  1591.     @green_leaf_bitmaps[10].set_pixel(6, 4, khaki)
  1592.     @green_leaf_bitmaps[10].set_pixel(1, 5, midGreen)
  1593.     @green_leaf_bitmaps[10].set_pixel(2, 5, khaki)
  1594.     @green_leaf_bitmaps[10].set_pixel(3, 5, lightGreen)
  1595.     @green_leaf_bitmaps[10].set_pixel(4, 5, mint)
  1596.     @green_leaf_bitmaps[10].set_pixel(5, 5, midGreen)
  1597.     @green_leaf_bitmaps[10].set_pixel(2, 6, darkGreen)
  1598.     @green_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midGreen)
  1599.    
  1600.     # 12th leaf bitmap
  1601.     @green_leaf_bitmaps[11] = Bitmap.new(8, 8)
  1602.     @green_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkGreen)
  1603.     @green_leaf_bitmaps[11].set_pixel(1, 4, midGreen)
  1604.     @green_leaf_bitmaps[11].set_pixel(2, 4, khaki)
  1605.     @green_leaf_bitmaps[11].set_pixel(3, 4, lightGreen)
  1606.     @green_leaf_bitmaps[11].set_pixel(4, 4, darkGreen)
  1607.     @green_leaf_bitmaps[11].set_pixel(7, 4, midGreen)
  1608.     @green_leaf_bitmaps[11].set_pixel(1, 5, darkGreen)
  1609.     @green_leaf_bitmaps[11].set_pixel(2, 5, midGreen)
  1610.     @green_leaf_bitmaps[11].set_pixel(3, 5, lightGreen)
  1611.     @green_leaf_bitmaps[11].set_pixel(4, 5, mint)
  1612.     @green_leaf_bitmaps[11].set_pixel(5, 5, lightGreen)
  1613.     @green_leaf_bitmaps[11].set_pixel(6, 5, khaki)
  1614.     @green_leaf_bitmaps[11].set_pixel(7, 5, midGreen)
  1615.     @green_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midGreen)
  1616.     @green_leaf_bitmaps[11].set_pixel(4, 6, lightGreen)
  1617.     @green_leaf_bitmaps[11].set_pixel(5, 6, khaki)
  1618.     @green_leaf_bitmaps[11].set_pixel(6, 6, midGreen)
  1619.    
  1620.     # 13th leaf bitmap
  1621.     @green_leaf_bitmaps[12] = Bitmap.new(8, 8)
  1622.     @green_leaf_bitmaps[12].set_pixel(1, 1, darkGreen)
  1623.     @green_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midGreen)
  1624.     @green_leaf_bitmaps[12].set_pixel(2, 3, midGreen)
  1625.     @green_leaf_bitmaps[12].set_pixel(3, 3, darkGreen)
  1626.     @green_leaf_bitmaps[12].set_pixel(4, 3, midGreen)
  1627.     @green_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midGreen)
  1628.     @green_leaf_bitmaps[12].set_pixel(4, 4, darkGreen)
  1629.     @green_leaf_bitmaps[12].set_pixel(5, 4, lightGreen)
  1630.     @green_leaf_bitmaps[12].set_pixel(3, 5, midGreen)
  1631.     @green_leaf_bitmaps[12].set_pixel(4, 5, darkGreen)
  1632.     @green_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, khaki)
  1633.     @green_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midGreen)
  1634.     @green_leaf_bitmaps[12].set_pixel(6, 6, lightGreen)
  1635.     @green_leaf_bitmaps[12].set_pixel(6, 7, khaki)
  1636. #-------------------------------------------------------------------------------   
  1637.     #rose petals

  1638.     @rose_bitmaps = []
  1639.    
  1640.     # 1st rose petal bitmap
  1641.     @rose_bitmaps[0] = Bitmap.new(3, 3)
  1642.     @rose_bitmaps[0].fill_rect(1, 0, 2, 1, brightRed)
  1643.     @rose_bitmaps[0].fill_rect(0, 1, 1, 2, brightRed)
  1644.     @rose_bitmaps[0].fill_rect(1, 1, 2, 2, midRed)
  1645.     @rose_bitmaps[0].set_pixel(2, 2, darkRed)
  1646.    
  1647.     # 2nd rose petal bitmap
  1648.     @rose_bitmaps[1] = Bitmap.new(3, 3)
  1649.     @rose_bitmaps[1].set_pixel(0, 1, midRed)
  1650.     @rose_bitmaps[1].set_pixel(1, 1, brightRed)
  1651.     @rose_bitmaps[1].fill_rect(1, 2, 1, 2, midRed)
  1652. #-------------------------------------------------------------------------------   
  1653.     #Feathers

  1654.     @feather_bitmaps = []
  1655.     white = Color.new(255, 255, 255, 255)
  1656.    
  1657.     # 1st feather bitmap
  1658.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1659.     @feather_bitmaps[0].set_pixel(0, 2, white)
  1660.     @feather_bitmaps[0].set_pixel(1, 2, grey)
  1661.     @feather_bitmaps[0].set_pixel(2, 1, grey)
  1662.    
  1663.     # 2nd feather bitmap
  1664.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1665.     @feather_bitmaps[0].set_pixel(0, 0, white)
  1666.     @feather_bitmaps[0].set_pixel(0, 1, grey)
  1667.     @feather_bitmaps[0].set_pixel(1, 2, grey)
  1668.    
  1669.     # 3rd feather bitmap
  1670.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1671.     @feather_bitmaps[0].set_pixel(2, 0, white)
  1672.     @feather_bitmaps[0].set_pixel(1, 0, grey)
  1673.     @feather_bitmaps[0].set_pixel(0, 1, grey)
  1674.    
  1675.     # 4th feather bitmap
  1676.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  1677.     @feather_bitmaps[0].set_pixel(2, 2, white)
  1678.     @feather_bitmaps[0].set_pixel(2, 1, grey)
  1679.     @feather_bitmaps[0].set_pixel(1, 0, grey)
  1680. #-------------------------------------------------------------------------------   
  1681.     #Blood rain
  1682.    
  1683.     @blood_rain_bitmap = Bitmap.new(7, 56)
  1684.     for i in 0..6
  1685.       @blood_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkRed)
  1686.     end
  1687.     @blood_rain_splash = Bitmap.new(8, 5)
  1688.     @blood_rain_splash.fill_rect(1, 0, 6, 1, darkRed)
  1689.     @blood_rain_splash.fill_rect(1, 4, 6, 1, darkRed)
  1690.     @blood_rain_splash.fill_rect(0, 1, 1, 3, darkRed)
  1691.     @blood_rain_splash.fill_rect(7, 1, 1, 3, darkRed)
  1692. #-------------------------------------------------------------------------------

  1693.     #Blood storm
  1694.    
  1695.     @blood_storm_bitmap = Bitmap.new(34, 64)
  1696.     for i in 0..31
  1697.       @blood_storm_bitmap.fill_rect(33-i, i*2, 1, 2, darkRed)
  1698.       @blood_storm_bitmap.fill_rect(32-i, i*2, 1, 2, darkRed)
  1699.       @blood_storm_bitmap.fill_rect(31-i, i*2, 1, 2, darkRed)
  1700.     end
  1701.    
  1702. #-------------------------------------------------------------------------------
  1703.     #Blood blizzard

  1704.     @bloodblizz_bitmap = Bitmap.new(6, 6)
  1705.     @bloodblizz_bitmap.fill_rect(0, 1, 6, 4, midRed)
  1706.     @bloodblizz_bitmap.fill_rect(1, 0, 4, 6, midRed)
  1707.     @bloodblizz_bitmap.fill_rect(1, 2, 4, 2, darkRed)
  1708.     @bloodblizz_bitmap.fill_rect(2, 1, 2, 4, darkRed)
  1709.     @sprites = []   
  1710.     @bloodblizz_bitmaps = []
  1711.    
  1712.     @bloodblizz_bitmaps[0] = Bitmap.new(3, 3)
  1713.     @bloodblizz_bitmaps[0].fill_rect(0, 0, 3, 3, midRed)
  1714.     @bloodblizz_bitmaps[0].fill_rect(0, 1, 3, 1, darkRed)
  1715.     @bloodblizz_bitmaps[0].fill_rect(1, 0, 1, 3, darkRed)
  1716.     @bloodblizz_bitmaps[0].set_pixel(1, 1, darkRed)
  1717.    
  1718.     @bloodblizz_bitmaps[1] = Bitmap.new(4, 4)
  1719.     @bloodblizz_bitmaps[1].fill_rect(0, 1, 4, 2, midRed)
  1720.     @bloodblizz_bitmaps[1].fill_rect(1, 0, 2, 4, midRed)
  1721.     @bloodblizz_bitmaps[1].fill_rect(1, 1, 2, 2, darkRed)
  1722.    
  1723.     @bloodblizz_bitmaps[2] = Bitmap.new(5, 5)
  1724.     @bloodblizz_bitmaps[1].fill_rect(0, 1, 5, 3, darkRed)
  1725.     @bloodblizz_bitmaps[1].fill_rect(1, 0, 3, 5, darkRed)
  1726.     @bloodblizz_bitmaps[1].fill_rect(1, 1, 3, 3, midRed)
  1727.     @bloodblizz_bitmaps[1].fill_rect(2, 1, 3, 1, darkRed)
  1728.     @bloodblizz_bitmaps[1].fill_rect(1, 2, 1, 3, darkRed)
  1729.    
  1730.     @bloodblizz_bitmaps[3] = Bitmap.new(7, 7)
  1731.     @bloodblizz_bitmaps[1].fill_rect(1, 1, 5, 5, darkRed)
  1732.     @bloodblizz_bitmaps[1].fill_rect(2, 0, 7, 3, darkRed)
  1733.     @bloodblizz_bitmaps[1].fill_rect(0, 2, 3, 7, darkRed)
  1734.     @bloodblizz_bitmaps[1].fill_rect(2, 1, 5, 3, midRed)
  1735.     @bloodblizz_bitmaps[1].fill_rect(1, 2, 3, 5, midRed)
  1736.     @bloodblizz_bitmaps[1].fill_rect(2, 2, 3, 3, darkRed)
  1737.     @bloodblizz_bitmaps[1].fill_rect(3, 1, 5, 1, darkRed)
  1738.     @bloodblizz_bitmaps[1].fill_rect(1, 3, 1, 5, darkRed)
  1739. #-------------------------------------------------------------------------------  

  1740.     # Oil rain
  1741.    
  1742.     darkgrey = Color.new(15, 15, 15, 255)
  1743.     black = Color.new(0, 0, 0, 255)
  1744.    
  1745.     @oil_rain_bitmap = Bitmap.new(7, 56)
  1746.     for i in 0..6
  1747.     @oil_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkgrey)
  1748.       end
  1749.     @oil_rain_splash = Bitmap.new(8, 5)
  1750.     @oil_rain_splash.fill_rect(1, 0, 6, 1, darkgrey)
  1751.     @oil_rain_splash.fill_rect(1, 4, 6, 1, darkgrey)
  1752.     @oil_rain_splash.fill_rect(0, 1, 1, 3, black)
  1753.     @oil_rain_splash.fill_rect(7, 1, 1, 3, black)
  1754. #-------------------------------------------------------------------------------

  1755.     # Oil storm
  1756.    
  1757.       @oil_storm_bitmap = Bitmap.new(34, 64)
  1758.     for i in 0..31
  1759.       @oil_storm_bitmap.fill_rect(33-i, i*2, 1, 2, darkgrey)
  1760.       @oil_storm_bitmap.fill_rect(32-i, i*2, 1, 2, darkgrey)
  1761.       @oil_storm_bitmap.fill_rect(31-i, i*2, 1, 2, darkgrey)
  1762.     end
  1763. #-------------------------------------------------------------------------------

  1764.     # Golden rain
  1765.    
  1766.     darkYellow  = Color.new(110, 104, 3, 255)
  1767.     midYellow   = Color.new(205, 194, 23, 255)
  1768.     darkYellowtwo  = Color.new(186, 176, 14, 255)
  1769.     lightYellow = Color.new(218, 207, 36, 255)
  1770.     lightYellowtwo = Color.new(227, 217, 56, 255)   
  1771.    
  1772.     @golden_rain_bitmap = Bitmap.new(7, 56)
  1773.     for i in 0..6
  1774.     @golden_rain_bitmap.fill_rect(6-i, i*8, 1, 8, lightYellow)
  1775.       end
  1776.     @golden_rain_splash = Bitmap.new(8, 5)
  1777.     @golden_rain_splash.fill_rect(1, 0, 6, 1, lightYellow)
  1778.     @golden_rain_splash.fill_rect(1, 4, 6, 1, lightYellow)
  1779.     @golden_rain_splash.fill_rect(0, 1, 1, 3, lightYellow)
  1780.     @golden_rain_splash.fill_rect(7, 1, 1, 3, lightYellow)
  1781. #-------------------------------------------------------------------------------

  1782.      # Golden storm

  1783.       @golden_storm_bitmap = Bitmap.new(34, 64)
  1784.     for i in 0..31
  1785.       @golden_storm_bitmap.fill_rect(33-i, i*2, 1, 2, lightYellow)
  1786.       @golden_storm_bitmap.fill_rect(32-i, i*2, 1, 2, lightYellow)
  1787.       @golden_storm_bitmap.fill_rect(31-i, i*2, 1, 2, lightYellow)
  1788.     end
  1789. #-------------------------------------------------------------------------------

  1790.     # Acid rain
  1791.          
  1792.     @acid_rain_bitmap = Bitmap.new(7, 56)
  1793.     for i in 0..6
  1794.     @acid_rain_bitmap.fill_rect(6-i, i*8, 1, 8, midGreen)
  1795.       end
  1796.     @acid_rain_splash = Bitmap.new(8, 5)
  1797.     @acid_rain_splash.fill_rect(1, 0, 6, 1, white)
  1798.     @acid_rain_splash.fill_rect(1, 4, 6, 1, white)
  1799.     @acid_rain_splash.fill_rect(0, 1, 1, 3, white)
  1800.     @acid_rain_splash.fill_rect(7, 1, 1, 3, white)
  1801. #-------------------------------------------------------------------------------

  1802.      # Acid storm

  1803.       @acid_storm_bitmap = Bitmap.new(34, 64)
  1804.     for i in 0..31
  1805.       @acid_storm_bitmap.fill_rect(33-i, i*2, 1, 2, khaki)
  1806.       @acid_storm_bitmap.fill_rect(32-i, i*2, 1, 2, khaki)
  1807.       @acid_storm_bitmap.fill_rect(31-i, i*2, 1, 2, midGreen)
  1808.     end
  1809. #-------------------------------------------------------------------------------

  1810.     # Sepia rain
  1811.    
  1812.     sepia_color = Color.new(167, 149, 139, 255)
  1813.     sepia_colortwo = Color.new(100, 75, 63, 255)
  1814.    
  1815.     @sepia_rain_bitmap = Bitmap.new(7, 56)
  1816.     for i in 0..6
  1817.     @sepia_rain_bitmap.fill_rect(6-i, i*8, 1, 8, sepia_colortwo)
  1818.       end
  1819.     @sepia_rain_splash = Bitmap.new(8, 5)
  1820.     @sepia_rain_splash.fill_rect(1, 0, 6, 1, sepia_colortwo)
  1821.     @sepia_rain_splash.fill_rect(1, 4, 6, 1, sepia_color)
  1822.     @sepia_rain_splash.fill_rect(0, 1, 1, 3, sepia_colortwo)
  1823.     @sepia_rain_splash.fill_rect(7, 1, 1, 3, sepia_color)
  1824. #-------------------------------------------------------------------------------

  1825.      # Sepia storm

  1826.       @sepia_storm_bitmap = Bitmap.new(34, 64)
  1827.     for i in 0..31
  1828.       @sepia_storm_bitmap.fill_rect(33-i, i*2, 1, 2, sepia_colortwo)
  1829.       @sepia_storm_bitmap.fill_rect(32-i, i*2, 1, 2, sepia_colortwo)
  1830.       @sepia_storm_bitmap.fill_rect(31-i, i*2, 1, 2, sepia_color)
  1831.     end
  1832. #-------------------------------------------------------------------------------

  1833.     # Yellow leaves

  1834.     @yellow_leaf_bitmaps = []
  1835.    
  1836.    # 1st leaf bitmap
  1837.     @yellow_leaf_bitmaps[0] = Bitmap.new(8, 8)
  1838.     @yellow_leaf_bitmaps[0].set_pixel(1, 0, darkYellow)
  1839.     @yellow_leaf_bitmaps[0].set_pixel(1, 1, midYellow)
  1840.     @yellow_leaf_bitmaps[0].set_pixel(2, 1, darkYellow)
  1841.     @yellow_leaf_bitmaps[0].set_pixel(2, 2, darkYellowtwo)
  1842.     @yellow_leaf_bitmaps[0].set_pixel(3, 2, darkYellow)
  1843.     @yellow_leaf_bitmaps[0].set_pixel(4, 2, darkYellowtwo)
  1844.     @yellow_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midYellow)
  1845.     @yellow_leaf_bitmaps[0].set_pixel(5, 3, darkYellowtwo)
  1846.     @yellow_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midYellow)
  1847.     @yellow_leaf_bitmaps[0].set_pixel(4, 4, darkYellow)
  1848.     @yellow_leaf_bitmaps[0].set_pixel(5, 4, lightYellow)
  1849.     @yellow_leaf_bitmaps[0].set_pixel(6, 4, darkYellowtwo)
  1850.     @yellow_leaf_bitmaps[0].set_pixel(3, 5, midYellow)
  1851.     @yellow_leaf_bitmaps[0].set_pixel(4, 5, darkYellow)
  1852.     @yellow_leaf_bitmaps[0].set_pixel(5, 5, darkYellowtwo)
  1853.     @yellow_leaf_bitmaps[0].set_pixel(6, 5, lightYellow)
  1854.     @yellow_leaf_bitmaps[0].set_pixel(4, 6, midYellow)
  1855.     @yellow_leaf_bitmaps[0].set_pixel(5, 6, darkYellow)
  1856.     @yellow_leaf_bitmaps[0].set_pixel(6, 6, lightYellow)
  1857.     @yellow_leaf_bitmaps[0].set_pixel(6, 7, darkYellowtwo)
  1858.    
  1859.     # 2nd leaf bitmap
  1860.     @yellow_leaf_bitmaps[1] = Bitmap.new(8, 8)
  1861.     @yellow_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midYellow)
  1862.     @yellow_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, darkYellowtwo)
  1863.     @yellow_leaf_bitmaps[1].set_pixel(4, 2, lightYellow)
  1864.     @yellow_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkYellow)
  1865.     @yellow_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightYellow)
  1866.     @yellow_leaf_bitmaps[1].set_pixel(2, 4, midYellow)
  1867.     @yellow_leaf_bitmaps[1].set_pixel(3, 4, darkYellow)
  1868.     @yellow_leaf_bitmaps[1].set_pixel(4, 4, darkYellowtwo)
  1869.     @yellow_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightYellow)
  1870.     @yellow_leaf_bitmaps[1].set_pixel(3, 5, midYellow)
  1871.     @yellow_leaf_bitmaps[1].set_pixel(4, 5, darkYellow)
  1872.     @yellow_leaf_bitmaps[1].set_pixel(5, 5, darkYellowtwo)
  1873.     @yellow_leaf_bitmaps[1].set_pixel(6, 5, lightYellow)
  1874.     @yellow_leaf_bitmaps[1].set_pixel(5, 6, darkYellow)
  1875.     @yellow_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, darkYellowtwo)
  1876.    
  1877.     # 3rd leaf bitmap
  1878.     @yellow_leaf_bitmaps[2] = Bitmap.new(8, 8)
  1879.     @yellow_leaf_bitmaps[2].set_pixel(1, 1, darkYellow)
  1880.     @yellow_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midYellow)
  1881.     @yellow_leaf_bitmaps[2].set_pixel(2, 3, midYellow)
  1882.     @yellow_leaf_bitmaps[2].set_pixel(3, 3, darkYellow)
  1883.     @yellow_leaf_bitmaps[2].set_pixel(4, 3, midYellow)
  1884.     @yellow_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midYellow)
  1885.     @yellow_leaf_bitmaps[2].set_pixel(4, 4, darkYellow)
  1886.     @yellow_leaf_bitmaps[2].set_pixel(5, 4, lightYellow)
  1887.     @yellow_leaf_bitmaps[2].set_pixel(3, 5, midYellow)
  1888.     @yellow_leaf_bitmaps[2].set_pixel(4, 5, darkYellow)
  1889.     @yellow_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, darkYellowtwo)
  1890.     @yellow_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midYellow)
  1891.     @yellow_leaf_bitmaps[2].set_pixel(6, 6, lightYellow)
  1892.     @yellow_leaf_bitmaps[2].set_pixel(6, 7, darkYellowtwo)
  1893.    
  1894.     # 4th leaf bitmap
  1895.     @yellow_leaf_bitmaps[3] = Bitmap.new(8, 8)
  1896.     @yellow_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkYellow)
  1897.     @yellow_leaf_bitmaps[3].set_pixel(1, 4, midYellow)
  1898.     @yellow_leaf_bitmaps[3].set_pixel(2, 4, darkYellowtwo)
  1899.     @yellow_leaf_bitmaps[3].set_pixel(3, 4, lightYellow)
  1900.     @yellow_leaf_bitmaps[3].set_pixel(4, 4, darkYellow)
  1901.     @yellow_leaf_bitmaps[3].set_pixel(7, 4, midYellow)
  1902.     @yellow_leaf_bitmaps[3].set_pixel(1, 5, darkYellow)
  1903.     @yellow_leaf_bitmaps[3].set_pixel(2, 5, midYellow)
  1904.     @yellow_leaf_bitmaps[3].set_pixel(3, 5, lightYellow)
  1905.     @yellow_leaf_bitmaps[3].set_pixel(4, 5, lightYellowtwo)
  1906.     @yellow_leaf_bitmaps[3].set_pixel(5, 5, lightYellow)
  1907.     @yellow_leaf_bitmaps[3].set_pixel(6, 5, darkYellowtwo)
  1908.     @yellow_leaf_bitmaps[3].set_pixel(7, 5, midYellow)
  1909.     @yellow_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midYellow)
  1910.     @yellow_leaf_bitmaps[3].set_pixel(4, 6, lightYellow)
  1911.     @yellow_leaf_bitmaps[3].set_pixel(5, 6, darkYellowtwo)
  1912.     @yellow_leaf_bitmaps[3].set_pixel(6, 6, midYellow)
  1913.    
  1914.     # 5th leaf bitmap
  1915.     @yellow_leaf_bitmaps[4] = Bitmap.new(8, 8)
  1916.     @yellow_leaf_bitmaps[4].set_pixel(6, 2, midYellow)
  1917.     @yellow_leaf_bitmaps[4].set_pixel(7, 2, darkYellow)
  1918.     @yellow_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midYellow)
  1919.     @yellow_leaf_bitmaps[4].set_pixel(6, 3, darkYellowtwo)
  1920.     @yellow_leaf_bitmaps[4].set_pixel(2, 4, darkYellow)
  1921.     @yellow_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, darkYellowtwo)
  1922.     @yellow_leaf_bitmaps[4].set_pixel(5, 4, lightYellow)
  1923.     @yellow_leaf_bitmaps[4].set_pixel(6, 4, darkYellowtwo)
  1924.     @yellow_leaf_bitmaps[4].set_pixel(1, 5, midYellow)
  1925.     @yellow_leaf_bitmaps[4].set_pixel(2, 5, darkYellowtwo)
  1926.     @yellow_leaf_bitmaps[4].set_pixel(3, 5, lightYellow)
  1927.     @yellow_leaf_bitmaps[4].set_pixel(4, 5, lightYellowtwo)
  1928.     @yellow_leaf_bitmaps[4].set_pixel(5, 5, midYellow)
  1929.     @yellow_leaf_bitmaps[4].set_pixel(2, 6, darkYellow)
  1930.     @yellow_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midYellow)
  1931.    
  1932.     # 6th leaf bitmap
  1933.     @yellow_leaf_bitmaps[5] = Bitmap.new(8, 8)
  1934.     @yellow_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midYellow)
  1935.     @yellow_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midYellow)
  1936.     @yellow_leaf_bitmaps[5].set_pixel(6, 3, darkYellowtwo)
  1937.     @yellow_leaf_bitmaps[5].set_pixel(3, 4, midYellow)
  1938.     @yellow_leaf_bitmaps[5].set_pixel(4, 4, darkYellowtwo)
  1939.     @yellow_leaf_bitmaps[5].set_pixel(5, 4, lightYellow)
  1940.     @yellow_leaf_bitmaps[5].set_pixel(6, 4, lightYellowtwo)
  1941.     @yellow_leaf_bitmaps[5].set_pixel(1, 5, midYellow)
  1942.     @yellow_leaf_bitmaps[5].set_pixel(2, 5, darkYellowtwo)
  1943.     @yellow_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, lightYellowtwo)
  1944.     @yellow_leaf_bitmaps[5].set_pixel(5, 5, lightYellow)
  1945.     @yellow_leaf_bitmaps[5].set_pixel(2, 6, midYellow)
  1946.     @yellow_leaf_bitmaps[5].set_pixel(3, 6, darkYellowtwo)
  1947.     @yellow_leaf_bitmaps[5].set_pixel(4, 6, lightYellow)
  1948.    
  1949.     # 7th leaf bitmap
  1950.     @yellow_leaf_bitmaps[6] = Bitmap.new(8, 8)
  1951.     @yellow_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midYellow)
  1952.     @yellow_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midYellow)
  1953.     @yellow_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkYellow)
  1954.     @yellow_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midYellow)
  1955.     @yellow_leaf_bitmaps[6].set_pixel(5, 3, darkYellowtwo)
  1956.     @yellow_leaf_bitmaps[6].set_pixel(2, 4, midYellow)
  1957.     @yellow_leaf_bitmaps[6].set_pixel(3, 4, darkYellowtwo)
  1958.     @yellow_leaf_bitmaps[6].set_pixel(4, 4, lightYellow)
  1959.     @yellow_leaf_bitmaps[6].set_pixel(5, 4, midYellow)
  1960.     @yellow_leaf_bitmaps[6].set_pixel(1, 5, midYellow)
  1961.     @yellow_leaf_bitmaps[6].set_pixel(2, 5, darkYellowtwo)
  1962.     @yellow_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midYellow)
  1963.     @yellow_leaf_bitmaps[6].set_pixel(1, 6, darkYellow)
  1964.     @yellow_leaf_bitmaps[6].set_pixel(2, 6, midYellow)
  1965.    
  1966.     # 8th leaf bitmap
  1967.     @yellow_leaf_bitmaps[7] = Bitmap.new(8, 8)
  1968.     @yellow_leaf_bitmaps[7].set_pixel(6, 1, midYellow)
  1969.     @yellow_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midYellow)
  1970.     @yellow_leaf_bitmaps[7].set_pixel(3, 3, darkYellow)
  1971.     @yellow_leaf_bitmaps[7].set_pixel(2, 4, darkYellow)
  1972.     @yellow_leaf_bitmaps[7].set_pixel(3, 4, midYellow)
  1973.     @yellow_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, darkYellowtwo)
  1974.     @yellow_leaf_bitmaps[7].set_pixel(1, 5, darkYellow)
  1975.     @yellow_leaf_bitmaps[7].set_pixel(2, 5, midYellow)
  1976.     @yellow_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightYellow)
  1977.     @yellow_leaf_bitmaps[7].set_pixel(2, 6, midYellow)
  1978.     @yellow_leaf_bitmaps[7].set_pixel(3, 6, lightYellow)
  1979.    
  1980.     # 9th leaf bitmap
  1981.     @yellow_leaf_bitmaps[8] = Bitmap.new(8, 8)
  1982.     @yellow_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midYellow)
  1983.     @yellow_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midYellow)
  1984.     @yellow_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkYellow)
  1985.     @yellow_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midYellow)
  1986.     @yellow_leaf_bitmaps[8].set_pixel(5, 3, darkYellowtwo)
  1987.     @yellow_leaf_bitmaps[8].set_pixel(2, 4, midYellow)
  1988.     @yellow_leaf_bitmaps[8].set_pixel(3, 4, darkYellowtwo)
  1989.     @yellow_leaf_bitmaps[8].set_pixel(4, 4, lightYellow)
  1990.     @yellow_leaf_bitmaps[8].set_pixel(5, 4, midYellow)
  1991.     @yellow_leaf_bitmaps[8].set_pixel(1, 5, midYellow)
  1992.     @yellow_leaf_bitmaps[8].set_pixel(2, 5, darkYellowtwo)
  1993.     @yellow_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midYellow)
  1994.     @yellow_leaf_bitmaps[8].set_pixel(1, 6, darkYellow)
  1995.     @yellow_leaf_bitmaps[8].set_pixel(2, 6, midYellow)
  1996.    
  1997.     # 10th leaf bitmap
  1998.     @yellow_leaf_bitmaps[9] = Bitmap.new(8, 8)
  1999.     @yellow_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midYellow)
  2000.     @yellow_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midYellow)
  2001.     @yellow_leaf_bitmaps[9].set_pixel(6, 3, darkYellowtwo)
  2002.     @yellow_leaf_bitmaps[9].set_pixel(3, 4, midYellow)
  2003.     @yellow_leaf_bitmaps[9].set_pixel(4, 4, darkYellowtwo)
  2004.     @yellow_leaf_bitmaps[9].set_pixel(5, 4, lightYellow)
  2005.     @yellow_leaf_bitmaps[9].set_pixel(6, 4, lightYellowtwo)
  2006.     @yellow_leaf_bitmaps[9].set_pixel(1, 5, midYellow)
  2007.     @yellow_leaf_bitmaps[9].set_pixel(2, 5, darkYellowtwo)
  2008.     @yellow_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, lightYellowtwo)
  2009.     @yellow_leaf_bitmaps[9].set_pixel(5, 5, lightYellow)
  2010.     @yellow_leaf_bitmaps[9].set_pixel(2, 6, midYellow)
  2011.     @yellow_leaf_bitmaps[9].set_pixel(3, 6, darkYellowtwo)
  2012.     @yellow_leaf_bitmaps[9].set_pixel(4, 6, lightYellow)
  2013.    
  2014.     # 11th leaf bitmap
  2015.     @yellow_leaf_bitmaps[10] = Bitmap.new(8, 8)
  2016.     @yellow_leaf_bitmaps[10].set_pixel(6, 2, midYellow)
  2017.     @yellow_leaf_bitmaps[10].set_pixel(7, 2, darkYellow)
  2018.     @yellow_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midYellow)
  2019.     @yellow_leaf_bitmaps[10].set_pixel(6, 3, darkYellowtwo)
  2020.     @yellow_leaf_bitmaps[10].set_pixel(2, 4, darkYellow)
  2021.     @yellow_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, darkYellowtwo)
  2022.     @yellow_leaf_bitmaps[10].set_pixel(5, 4, lightYellow)
  2023.     @yellow_leaf_bitmaps[10].set_pixel(6, 4, darkYellowtwo)
  2024.     @yellow_leaf_bitmaps[10].set_pixel(1, 5, midYellow)
  2025.     @yellow_leaf_bitmaps[10].set_pixel(2, 5, darkYellowtwo)
  2026.     @yellow_leaf_bitmaps[10].set_pixel(3, 5, lightYellow)
  2027.     @yellow_leaf_bitmaps[10].set_pixel(4, 5, lightYellowtwo)
  2028.     @yellow_leaf_bitmaps[10].set_pixel(5, 5, midYellow)
  2029.     @yellow_leaf_bitmaps[10].set_pixel(2, 6, darkYellow)
  2030.     @yellow_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midYellow)
  2031.    
  2032.     # 12th leaf bitmap
  2033.     @yellow_leaf_bitmaps[11] = Bitmap.new(8, 8)
  2034.     @yellow_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkYellow)
  2035.     @yellow_leaf_bitmaps[11].set_pixel(1, 4, midYellow)
  2036.     @yellow_leaf_bitmaps[11].set_pixel(2, 4, darkYellowtwo)
  2037.     @yellow_leaf_bitmaps[11].set_pixel(3, 4, lightYellow)
  2038.     @yellow_leaf_bitmaps[11].set_pixel(4, 4, darkYellow)
  2039.     @yellow_leaf_bitmaps[11].set_pixel(7, 4, midYellow)
  2040.     @yellow_leaf_bitmaps[11].set_pixel(1, 5, darkYellow)
  2041.     @yellow_leaf_bitmaps[11].set_pixel(2, 5, midYellow)
  2042.     @yellow_leaf_bitmaps[11].set_pixel(3, 5, lightYellow)
  2043.     @yellow_leaf_bitmaps[11].set_pixel(4, 5, lightYellowtwo)
  2044.     @yellow_leaf_bitmaps[11].set_pixel(5, 5, lightYellow)
  2045.     @yellow_leaf_bitmaps[11].set_pixel(6, 5, darkYellowtwo)
  2046.     @yellow_leaf_bitmaps[11].set_pixel(7, 5, midYellow)
  2047.     @yellow_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midYellow)
  2048.     @yellow_leaf_bitmaps[11].set_pixel(4, 6, lightYellow)
  2049.     @yellow_leaf_bitmaps[11].set_pixel(5, 6, darkYellowtwo)
  2050.     @yellow_leaf_bitmaps[11].set_pixel(6, 6, midYellow)
  2051.    
  2052.     # 13th leaf bitmap
  2053.     @yellow_leaf_bitmaps[12] = Bitmap.new(8, 8)
  2054.     @yellow_leaf_bitmaps[12].set_pixel(1, 1, darkYellow)
  2055.     @yellow_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midYellow)
  2056.     @yellow_leaf_bitmaps[12].set_pixel(2, 3, midYellow)
  2057.     @yellow_leaf_bitmaps[12].set_pixel(3, 3, darkYellow)
  2058.     @yellow_leaf_bitmaps[12].set_pixel(4, 3, midYellow)
  2059.     @yellow_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midYellow)
  2060.     @yellow_leaf_bitmaps[12].set_pixel(4, 4, darkYellow)
  2061.     @yellow_leaf_bitmaps[12].set_pixel(5, 4, lightYellow)
  2062.     @yellow_leaf_bitmaps[12].set_pixel(3, 5, midYellow)
  2063.     @yellow_leaf_bitmaps[12].set_pixel(4, 5, darkYellow)
  2064.     @yellow_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, darkYellowtwo)
  2065.     @yellow_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midYellow)
  2066.     @yellow_leaf_bitmaps[12].set_pixel(6, 6, lightYellow)
  2067.     @yellow_leaf_bitmaps[12].set_pixel(6, 7, darkYellowtwo)
  2068.    
  2069. #-------------------------------------------------------------------------------   
  2070.     @sparkle_bitmaps = []
  2071.    
  2072.     lightBlue = Color.new(181, 244, 255, 255)
  2073.     midBlue   = Color.new(126, 197, 235, 255)
  2074.     darkBlue  = Color.new(77, 136, 225, 255)
  2075.    
  2076.     # 1st sparkle bitmap
  2077.     @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  2078.     @sparkle_bitmaps[0].set_pixel(3, 3, darkBlue)
  2079.    
  2080.     # 2nd sparkle bitmap
  2081.     @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  2082.     @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, darkBlue)
  2083.     @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, darkBlue)
  2084.     @sparkle_bitmaps[1].set_pixel(3, 3, midBlue)
  2085.    
  2086.     # 3rd sparkle bitmap
  2087.     @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  2088.     @sparkle_bitmaps[2].set_pixel(1, 1, darkBlue)
  2089.     @sparkle_bitmaps[2].set_pixel(5, 1, darkBlue)
  2090.     @sparkle_bitmaps[2].set_pixel(2, 2, midBlue)
  2091.     @sparkle_bitmaps[2].set_pixel(4, 2, midBlue)
  2092.     @sparkle_bitmaps[2].set_pixel(3, 3, lightBlue)
  2093.     @sparkle_bitmaps[2].set_pixel(2, 4, midBlue)
  2094.     @sparkle_bitmaps[2].set_pixel(4, 4, midBlue)
  2095.     @sparkle_bitmaps[2].set_pixel(1, 5, darkBlue)
  2096.     @sparkle_bitmaps[2].set_pixel(5, 5, darkBlue)
  2097.    
  2098.     # 4th sparkle bitmap
  2099.     @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  2100.     @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, darkBlue)
  2101.     @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, darkBlue)
  2102.     @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, midBlue)
  2103.     @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, midBlue)
  2104.     @sparkle_bitmaps[3].set_pixel(3, 3, lightBlue)
  2105.    
  2106.     # 5th sparkle bitmap
  2107.     @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  2108.     @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, midBlue)
  2109.     @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, darkBlue)
  2110.     @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, darkBlue)
  2111.     @sparkle_bitmaps[4].set_pixel(3, 3, lightBlue)
  2112.     @sparkle_bitmaps[4].set_pixel(1, 1, darkBlue)
  2113.     @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  2114.     @sparkle_bitmaps[4].set_pixel(1, 5, darkBlue)
  2115.     @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  2116.    
  2117.     # 6th sparkle bitmap
  2118.     @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  2119.     @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, darkBlue)
  2120.     @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, darkBlue)
  2121.     @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, midBlue)
  2122.     @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, midBlue)
  2123.     @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, midBlue)
  2124.     @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, lightBlue)
  2125.     @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, lightBlue)
  2126.     @sparkle_bitmaps[5].set_pixel(3, 3, white)
  2127.    
  2128.     # 7th sparkle bitmap
  2129.     @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  2130.     @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, midBlue)
  2131.     @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, midBlue)
  2132.     @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, darkBlue)
  2133.     @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, darkBlue)
  2134.     @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, lightBlue)
  2135.     @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, midBlue)
  2136.     @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, midBlue)
  2137.     @sparkle_bitmaps[6].set_pixel(3, 3, white)
  2138. #-------------------------------------------------------------------------------   
  2139.     # Meteor bitmap
  2140.    
  2141.     @meteor_bitmap = Bitmap.new(14, 12)
  2142.     @meteor_bitmap.fill_rect(0, 8, 5, 4, paleOrange)
  2143.     @meteor_bitmap.fill_rect(1, 7, 6, 4, paleOrange)
  2144.     @meteor_bitmap.set_pixel(7, 8, paleOrange)
  2145.     @meteor_bitmap.fill_rect(1, 8, 2, 2, brightOrange)
  2146.     @meteor_bitmap.set_pixel(2, 7, brightOrange)
  2147.     @meteor_bitmap.fill_rect(3, 6, 2, 1, brightOrange)
  2148.     @meteor_bitmap.set_pixel(3, 8, brightOrange)
  2149.     @meteor_bitmap.set_pixel(3, 10, brightOrange)
  2150.     @meteor_bitmap.set_pixel(4, 9, brightOrange)
  2151.     @meteor_bitmap.fill_rect(5, 5, 1, 5, brightOrange)
  2152.     @meteor_bitmap.fill_rect(6, 4, 1, 5, brightOrange)
  2153.     @meteor_bitmap.fill_rect(7, 3, 1, 5, brightOrange)
  2154.     @meteor_bitmap.fill_rect(8, 6, 1, 2, brightOrange)
  2155.     @meteor_bitmap.set_pixel(9, 5, brightOrange)
  2156.     @meteor_bitmap.set_pixel(3, 8, midRed)
  2157.     @meteor_bitmap.fill_rect(4, 7, 1, 2, midRed)
  2158.     @meteor_bitmap.set_pixel(4, 5, midRed)
  2159.     @meteor_bitmap.set_pixel(5, 4, midRed)
  2160.     @meteor_bitmap.set_pixel(5, 6, midRed)
  2161.     @meteor_bitmap.set_pixel(6, 5, midRed)
  2162.     @meteor_bitmap.set_pixel(6, 7, midRed)
  2163.     @meteor_bitmap.fill_rect(7, 4, 1, 3, midRed)
  2164.     @meteor_bitmap.fill_rect(8, 3, 1, 3, midRed)
  2165.     @meteor_bitmap.fill_rect(9, 2, 1, 3, midRed)
  2166.     @meteor_bitmap.fill_rect(10, 1, 1, 3, midRed)
  2167.     @meteor_bitmap.fill_rect(11, 0, 1, 3, midRed)
  2168.     @meteor_bitmap.fill_rect(12, 0, 1, 2, midRed)
  2169.     @meteor_bitmap.set_pixel(13, 0, midRed)
  2170.    
  2171.     # Impact bitmap
  2172.    
  2173.     @impact_bitmap = Bitmap.new(22, 11)
  2174.     @impact_bitmap.fill_rect(0, 5, 1, 2, brightOrange)
  2175.     @impact_bitmap.set_pixel(1, 4, brightOrange)
  2176.     @impact_bitmap.set_pixel(1, 6, brightOrange)
  2177.     @impact_bitmap.set_pixel(2, 3, brightOrange)
  2178.     @impact_bitmap.set_pixel(2, 7, brightOrange)
  2179.     @impact_bitmap.set_pixel(3, 2, midRed)
  2180.     @impact_bitmap.set_pixel(3, 7, midRed)
  2181.     @impact_bitmap.set_pixel(4, 2, brightOrange)
  2182.     @impact_bitmap.set_pixel(4, 8, brightOrange)
  2183.     @impact_bitmap.set_pixel(5, 2, midRed)
  2184.     @impact_bitmap.fill_rect(5, 8, 3, 1, brightOrange)
  2185.     @impact_bitmap.set_pixel(6, 1, midRed)
  2186.     @impact_bitmap.fill_rect(7, 1, 8, 1, brightOrange)
  2187.     @impact_bitmap.fill_rect(7, 9, 8, 1, midRed)
  2188. #-------------------------------------------------------------------------------   
  2189.     # Flame meteor bitmap
  2190.    
  2191.     @flame_meteor_bitmap = Bitmap.new(14, 12)
  2192.     @flame_meteor_bitmap.fill_rect(0, 8, 5, 4, brightOrange)
  2193.     @flame_meteor_bitmap.fill_rect(1, 7, 6, 4, brightOrange)
  2194.     @flame_meteor_bitmap.set_pixel(7, 8, brightOrange)
  2195.     @flame_meteor_bitmap.fill_rect(1, 8, 2, 2, midYellow)
  2196.     @flame_meteor_bitmap.set_pixel(2, 7, midYellow)
  2197.     @flame_meteor_bitmap.fill_rect(3, 6, 2, 1, midYellow)
  2198.     @flame_meteor_bitmap.set_pixel(3, 8, midYellow)
  2199.     @flame_meteor_bitmap.set_pixel(3, 10, midYellow)
  2200.     @flame_meteor_bitmap.set_pixel(4, 9, midYellow)
  2201.     @flame_meteor_bitmap.fill_rect(5, 5, 1, 5, midYellow)
  2202.     @flame_meteor_bitmap.fill_rect(6, 4, 1, 5, midYellow)
  2203.     @flame_meteor_bitmap.fill_rect(7, 3, 1, 5, midYellow)
  2204.     @flame_meteor_bitmap.fill_rect(8, 6, 1, 2, midYellow)
  2205.     @flame_meteor_bitmap.set_pixel(9, 5, midYellow)
  2206.     @flame_meteor_bitmap.set_pixel(3, 8, lightYellow)
  2207.     @flame_meteor_bitmap.fill_rect(4, 7, 1, 2, lightYellowtwo)
  2208.     @flame_meteor_bitmap.set_pixel(4, 5, lightYellow)
  2209.     @flame_meteor_bitmap.set_pixel(5, 4, lightYellow)
  2210.     @flame_meteor_bitmap.set_pixel(5, 6, lightYellow)
  2211.     @flame_meteor_bitmap.set_pixel(6, 5, lightYellow)
  2212.     @flame_meteor_bitmap.set_pixel(6, 7, lightYellow)
  2213.     @flame_meteor_bitmap.fill_rect(7, 4, 1, 3, lightYellow)
  2214.     @flame_meteor_bitmap.fill_rect(8, 3, 1, 3, lightYellow)
  2215.     @flame_meteor_bitmap.fill_rect(9, 2, 1, 3, lightYellow)
  2216.     @flame_meteor_bitmap.fill_rect(10, 1, 1, 3, lightYellow)
  2217.     @flame_meteor_bitmap.fill_rect(11, 0, 1, 3, lightYellow)
  2218.     @flame_meteor_bitmap.fill_rect(12, 0, 1, 2, lightYellow)
  2219.     @flame_meteor_bitmap.set_pixel(13, 0, lightYellow)
  2220.    
  2221.     # Flame impact bitmap
  2222.    
  2223.     @flame_impact_bitmap = Bitmap.new(22, 11)
  2224.     @flame_impact_bitmap.fill_rect(0, 5, 1, 2, midYellow)
  2225.     @flame_impact_bitmap.set_pixel(1, 4, midYellow)
  2226.     @flame_impact_bitmap.set_pixel(1, 6, midYellow)
  2227.     @flame_impact_bitmap.set_pixel(2, 3, midYellow)
  2228.     @flame_impact_bitmap.set_pixel(2, 7, midYellow)
  2229.     @flame_impact_bitmap.set_pixel(3, 2, midYellow)
  2230.     @flame_impact_bitmap.set_pixel(3, 7, lightYellow)
  2231.     @flame_impact_bitmap.set_pixel(4, 2, brightOrange)
  2232.     @flame_impact_bitmap.set_pixel(4, 8, brightOrange)
  2233.     @flame_impact_bitmap.set_pixel(5, 2, lightYellow)
  2234.     @flame_impact_bitmap.fill_rect(5, 8, 3, 1, midYellow)
  2235.     @flame_impact_bitmap.set_pixel(6, 1, lightYellow)
  2236.     @flame_impact_bitmap.fill_rect(7, 1, 8, 1, midYellow)
  2237.     @flame_impact_bitmap.fill_rect(7, 9, 8, 1, lightYellow)
  2238. #-------------------------------------------------------------------------------   
  2239.    
  2240.     # Ash bitmaps
  2241.    
  2242.     @ash_bitmaps = []
  2243.     @ash_bitmaps[0] = Bitmap.new(3, 3)
  2244.     @ash_bitmaps[0].fill_rect(0, 1, 1, 3, lightGrey)
  2245.     @ash_bitmaps[0].fill_rect(1, 0, 3, 1, lightGrey)
  2246.     @ash_bitmaps[0].set_pixel(1, 1, white)
  2247.     @ash_bitmaps[1] = Bitmap.new(3, 3)
  2248.     @ash_bitmaps[1].fill_rect(0, 1, 1, 3, grey)
  2249.     @ash_bitmaps[1].fill_rect(1, 0, 3, 1, grey)
  2250.     @ash_bitmaps[1].set_pixel(1, 1, lightGrey)
  2251. #-------------------------------------------------------------------------------   

  2252.     # Bubble bitmaps
  2253.    
  2254.     @bubble_bitmaps = []
  2255.     darkBlue  = Color.new(77, 136, 225, 160)
  2256.     aqua = Color.new(197, 253, 254, 160)
  2257.     lavender = Color.new(225, 190, 244, 160)
  2258.    
  2259.     # first bubble bitmap
  2260.     @bubble_bitmaps[0] = Bitmap.new(24, 24)
  2261.     @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, darkBlue)
  2262.     @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, darkBlue)
  2263.     @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, darkBlue)
  2264.     @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, darkBlue)
  2265.     @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, darkBlue)
  2266.     @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, darkBlue)
  2267.     @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, darkBlue)
  2268.     @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, darkBlue)
  2269.     @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, aqua)
  2270.     @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, aqua)
  2271.     @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, aqua)
  2272.     @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, aqua)
  2273.     @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, aqua)
  2274.     @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, aqua)
  2275.     @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, lavender)
  2276.     @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, lavender)
  2277.     @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, lavender)
  2278.     @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, lavender)
  2279.     @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, lavender)
  2280.     @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, lavender)
  2281.     @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, lavender)
  2282.     @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, white)
  2283.     @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, white)
  2284.     @bubble_bitmaps[0].set_pixel(17, 6, white)
  2285.    
  2286.     # second bubble bitmap
  2287.     @bubble_bitmaps[1] = Bitmap.new(14, 15)
  2288.     @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, darkBlue)
  2289.     @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, darkBlue)
  2290.     @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, darkBlue)
  2291.     @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, darkBlue)
  2292.     @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, darkBlue)
  2293.     @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  2294.     @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, aqua)
  2295.     @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, aqua)
  2296.     @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, aqua)
  2297.     @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  2298.     @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, lavender)
  2299.     @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, lavender)
  2300.     @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, lavender)
  2301.     @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, white)
  2302.     @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, white)
  2303.     @bubble_bitmaps[1].set_pixel(7, 4, white)
  2304.     @bubble_bitmaps[1].set_pixel(8, 5, white)
  2305.    
  2306.     # Other option for bubbles
  2307.     @bubble2_bitmaps = Array.new
  2308.     darkSteelGray = Color.new(145, 150, 155, 160)
  2309.     midSteelGray = Color.new(180, 180, 185, 160)
  2310.     lightSteelGray = Color.new(225, 225, 235, 160)
  2311.     steelBlue = Color.new(145, 145, 165, 160)
  2312.     lightSteelBlue = Color.new(165, 170, 180, 160)
  2313.     transparentWhite = Color.new(255, 255, 255, 160)
  2314.    
  2315.     # first bubble 2 bitmap
  2316.     @bubble2_bitmaps[0] = Bitmap.new(6, 6)
  2317.     @bubble2_bitmaps[0].fill_rect(0, 0, 6, 6, darkSteelGray)
  2318.     @bubble2_bitmaps[0].fill_rect(0, 2, 6, 2, midSteelGray)
  2319.     @bubble2_bitmaps[0].fill_rect(2, 0, 2, 6, midSteelGray)
  2320.     @bubble2_bitmaps[0].fill_rect(2, 2, 2, 2, lightSteelGray)
  2321.    
  2322.     # second bubble 2 bitmap
  2323.     @bubble2_bitmaps[1] = Bitmap.new(8, 8)
  2324.     @bubble2_bitmaps[1].fill_rect(0, 2, 2, 4, steelBlue)
  2325.     @bubble2_bitmaps[1].fill_rect(2, 0, 4, 2, darkSteelGray)
  2326.     @bubble2_bitmaps[1].fill_rect(6, 2, 2, 2, darkSteelGray)
  2327.     @bubble2_bitmaps[1].fill_rect(2, 6, 2, 2, darkSteelGray)
  2328.     @bubble2_bitmaps[1].fill_rect(6, 4, 2, 2, midSteelGray)
  2329.     @bubble2_bitmaps[1].fill_rect(4, 6, 2, 2, midSteelGray)
  2330.     @bubble2_bitmaps[1].fill_rect(4, 4, 2, 2, lightSteelBlue)
  2331.     @bubble2_bitmaps[1].fill_rect(2, 4, 2, 2, lightSteelGray)
  2332.     @bubble2_bitmaps[1].fill_rect(4, 2, 2, 2, lightSteelGray)
  2333.     @bubble2_bitmaps[1].fill_rect(2, 2, 2, 2, transparentWhite)
  2334.    
  2335.     # third bubble 2 bitmap
  2336.     @bubble2_bitmaps[2] = Bitmap.new(8, 10)
  2337.     @bubble2_bitmaps[2].fill_rect(8, 2, 2, 4, steelBlue)
  2338.     @bubble2_bitmaps[2].fill_rect(2, 0, 8, 2, darkSteelGray)
  2339.     @bubble2_bitmaps[2].fill_rect(2, 6, 8, 2, darkSteelGray)
  2340.     @bubble2_bitmaps[2].fill_rect(4, 0, 2, 2, midSteelGray)
  2341.     @bubble2_bitmaps[2].fill_rect(4, 6, 2, 2, midSteelGray)
  2342.     @bubble2_bitmaps[2].fill_rect(0, 2, 2, 2, midSteelGray)
  2343.     @bubble2_bitmaps[2].fill_rect(0, 4, 2, 2, lightSteelBlue)
  2344.     @bubble2_bitmaps[2].fill_rect(2, 2, 6, 4, lightSteelGray)
  2345.     @bubble2_bitmaps[2].fill_rect(2, 2, 4, 2, transparentWhite)
  2346.     @bubble2_bitmaps[2].fill_rect(4, 4, 2, 2, transparentWhite)
  2347.    
  2348.     # fourth bubble 2 bitmap
  2349.     @bubble2_bitmaps[3] = Bitmap.new(14, 14)
  2350.     @bubble2_bitmaps[3].fill_rect(4, 0, 4, 2, steelBlue)
  2351.     @bubble2_bitmaps[3].fill_rect(0, 4, 2, 4, steelBlue)
  2352.     @bubble2_bitmaps[3].fill_rect(12, 4, 2, 4, steelBlue)
  2353.     @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  2354.     @bubble2_bitmaps[3].fill_rect(0, 6, 2, 2, darkSteelGray)
  2355.     @bubble2_bitmaps[3].fill_rect(12, 6, 2, 2, darkSteelGray)
  2356.     @bubble2_bitmaps[3].fill_rect(4, 12, 6, 2, darkSteelGray)
  2357.     @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  2358.     @bubble2_bitmaps[3].fill_rect(2, 2, 10, 10, midSteelGray)
  2359.     @bubble2_bitmaps[3].fill_rect(6, 12, 2, 2, midSteelGray)
  2360.     @bubble2_bitmaps[3].fill_rect(2, 4, 10, 6, lightSteelGray)
  2361.     @bubble2_bitmaps[3].fill_rect(4, 2, 2, 2, lightSteelGray)
  2362.     @bubble2_bitmaps[3].fill_rect(6, 10, 4, 2, lightSteelGray)
  2363.     @bubble2_bitmaps[3].fill_rect(6, 4, 2, 2, transparentWhite)
  2364.     @bubble2_bitmaps[3].fill_rect(4, 6, 2, 2, transparentWhite)
  2365. #-------------------------------------------------------------------------------
  2366.    
  2367.     # Water bombs bitmap
  2368.    
  2369.     @waterbomb_bitmap = Bitmap.new(8, 8)
  2370.     @waterbomb_bitmap.fill_rect(0, 2, 2, 4, aqua)
  2371.     @waterbomb_bitmap.fill_rect(2, 0, 4, 2, aqua)
  2372.     @waterbomb_bitmap.fill_rect(6, 2, 2, 2, aqua)
  2373.     @waterbomb_bitmap.fill_rect(2, 6, 2, 2, aqua)
  2374.     @waterbomb_bitmap.fill_rect(6, 4, 2, 2, aqua)
  2375.     @waterbomb_bitmap.fill_rect(4, 6, 2, 2, aqua)
  2376.     @waterbomb_bitmap.fill_rect(4, 4, 2, 2, aqua)
  2377.     @waterbomb_bitmap.fill_rect(2, 4, 2, 2, aqua)
  2378.     @waterbomb_bitmap.fill_rect(4, 2, 2, 2, aqua)
  2379.     @waterbomb_bitmap.fill_rect(2, 2, 2, 2, aqua)

  2380.    
  2381.     # Water bombs impact bitmap
  2382.    
  2383.     @waterbomb_impact_bitmap = Bitmap.new(8, 5)
  2384.     @waterbomb_impact_bitmap.fill_rect(1, 0, 6, 1, aqua)
  2385.     @waterbomb_impact_bitmap.fill_rect(1, 4, 6, 1, aqua)
  2386.     @waterbomb_impact_bitmap.fill_rect(0, 1, 1, 3, aqua)
  2387.     @waterbomb_impact_bitmap.fill_rect(7, 1, 1, 3, aqua)
  2388.     @waterbomb_impact_bitmap.set_pixel(1, 0, aqua)
  2389.     @waterbomb_impact_bitmap.set_pixel(0, 1, aqua)
  2390. #-------------------------------------------------------------------------------

  2391.    
  2392.     # Icy bombs bitmap
  2393.    
  2394.     @icybomb_bitmap = Bitmap.new(8, 8)
  2395.     @icybomb_bitmap.fill_rect(0, 2, 2, 4, lightBlue)
  2396.     @icybomb_bitmap.fill_rect(2, 0, 4, 2, lightBlue)
  2397.     @icybomb_bitmap.fill_rect(6, 2, 2, 2, lightBlue)
  2398.     @icybomb_bitmap.fill_rect(2, 6, 2, 2, lightBlue)
  2399.     @icybomb_bitmap.fill_rect(6, 4, 2, 2, lightBlue)
  2400.     @icybomb_bitmap.fill_rect(4, 6, 2, 2, lightBlue)
  2401.     @icybomb_bitmap.fill_rect(4, 4, 2, 2, lightBlue)
  2402.     @icybomb_bitmap.fill_rect(2, 4, 2, 2, lightBlue)
  2403.     @icybomb_bitmap.fill_rect(4, 2, 2, 2, lightBlue)
  2404.     @icybomb_bitmap.fill_rect(2, 2, 2, 2, lightBlue)

  2405.    
  2406.     # Icy bombs impact bitmap
  2407.    
  2408.     @icybomb_impact_bitmap = Bitmap.new(8, 5)
  2409.     @icybomb_impact_bitmap.fill_rect(1, 0, 6, 1, lightBlue)
  2410.     @icybomb_impact_bitmap.fill_rect(1, 4, 6, 1, lightBlue)
  2411.     @icybomb_impact_bitmap.fill_rect(0, 1, 1, 3, lightBlue)
  2412.     @icybomb_impact_bitmap.fill_rect(7, 1, 1, 3, lightBlue)
  2413.     @icybomb_impact_bitmap.set_pixel(1, 0, lightBlue)
  2414.     @icybomb_impact_bitmap.set_pixel(0, 1, lightBlue)
  2415. #-------------------------------------------------------------------------------

  2416.    
  2417.     # Flare bombs bitmap
  2418.    
  2419.     @flarebomb_bitmap = Bitmap.new(8, 8)
  2420.     @flarebomb_bitmap.fill_rect(0, 2, 2, 4, midYellow)
  2421.     @flarebomb_bitmap.fill_rect(2, 0, 4, 2, midYellow)
  2422.     @flarebomb_bitmap.fill_rect(6, 2, 2, 2, midYellow)
  2423.     @flarebomb_bitmap.fill_rect(2, 6, 2, 2, brightOrange)
  2424.     @flarebomb_bitmap.fill_rect(6, 4, 2, 2, brightOrange)
  2425.     @flarebomb_bitmap.fill_rect(4, 6, 2, 2, midYellow)
  2426.     @flarebomb_bitmap.fill_rect(4, 4, 2, 2, brightOrange)
  2427.     @flarebomb_bitmap.fill_rect(2, 4, 2, 2, midYellow)
  2428.     @flarebomb_bitmap.fill_rect(4, 2, 2, 2, midYellow)
  2429.     @flarebomb_bitmap.fill_rect(2, 2, 2, 2, midYellow)

  2430.     # Flare bomb impact bitmap
  2431.    
  2432.     @flarebomb_impact_bitmap = Bitmap.new(8, 5)
  2433.     @flarebomb_impact_bitmap.fill_rect(1, 0, 6, 1, brightOrange)
  2434.     @flarebomb_impact_bitmap.fill_rect(1, 4, 6, 1, brightOrange)
  2435.     @flarebomb_impact_bitmap.fill_rect(0, 1, 1, 3, midYellow)
  2436.     @flarebomb_impact_bitmap.fill_rect(7, 1, 1, 3, midYellow)
  2437.     @flarebomb_impact_bitmap.set_pixel(1, 0, midYellow)
  2438.     @flarebomb_impact_bitmap.set_pixel(0, 1, midYellow)
  2439. #-------------------------------------------------------------------------------

  2440.     # Starburst bitmaps

  2441.     @starburst_bitmaps = []
  2442.    
  2443.     starburst_yellow = Color.new(233, 210, 142, 255)
  2444.     starburst_yellowtwo = Color.new(219, 191, 95, 255)
  2445.     starburst_lightyellow = Color.new(242, 229, 190, 255)
  2446.     starburst_pink = Color.new(241, 185, 187, 255)
  2447.     starburst_red = Color.new(196, 55, 84, 255)
  2448.     starburst_redtwo = Color.new(178, 15, 56, 255)
  2449.     starburst_cyan = Color.new(189, 225, 242, 255)
  2450.     starburst_blue = Color.new(102, 181, 221, 255)
  2451.     starburst_bluetwo = Color.new(5, 88, 168, 255)
  2452.     starburst_lightgreen = Color.new(205, 246, 205, 255)
  2453.     starburst_green = Color.new(88, 221, 89, 255)
  2454.     starburst_greentwo = Color.new(44, 166, 0, 255)
  2455.     starburst_purple = Color.new(216, 197, 255, 255)
  2456.     starburst_violet = Color.new(155, 107, 255, 255)
  2457.     starburst_violettwo = Color.new(71, 0, 222, 255)
  2458.     starburst_lightorange = Color.new(255, 220, 177, 255)
  2459.     starburst_orange = Color.new(255, 180, 85, 255)
  2460.     starburst_orangetwo = Color.new(222, 124, 0, 255)
  2461.    
  2462.     # 1st starburst bitmap
  2463.     @starburst_bitmaps[0] = Bitmap.new(8, 8)
  2464.     @starburst_bitmaps[0].set_pixel(3, 3, starburst_lightyellow)
  2465.    
  2466.     # 2nd starburst bitmap
  2467.     @starburst_bitmaps[1] = Bitmap.new(8, 8)
  2468.     @starburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_yellow)
  2469.     @starburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_yellow)
  2470.     @starburst_bitmaps[1].set_pixel(3, 3, starburst_lightyellow)
  2471.    
  2472.     # 3rd starburst bitmap
  2473.     @starburst_bitmaps[2] = Bitmap.new(7, 7)
  2474.     @starburst_bitmaps[2].set_pixel(1, 1, starburst_yellow)
  2475.     @starburst_bitmaps[2].set_pixel(5, 1, starburst_yellow)
  2476.     @starburst_bitmaps[2].set_pixel(2, 2, starburst_yellowtwo)
  2477.     @starburst_bitmaps[2].set_pixel(4, 2, starburst_yellow)
  2478.     @starburst_bitmaps[2].set_pixel(3, 3, starburst_lightyellow)
  2479.     @starburst_bitmaps[2].set_pixel(2, 4, starburst_yellowtwo)
  2480.     @starburst_bitmaps[2].set_pixel(4, 4, starburst_yellowtwo)
  2481.     @starburst_bitmaps[2].set_pixel(1, 5, starburst_yellow)
  2482.     @starburst_bitmaps[2].set_pixel(5, 5, starburst_yellow)
  2483.    
  2484.     # 4th starburst bitmap
  2485.     @starburst_bitmaps[3] = Bitmap.new(7, 7)
  2486.     @starburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_yellow)
  2487.     @starburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_yellowtwo)
  2488.     @starburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_yellow)
  2489.     @starburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_yellowtwo)
  2490.     @starburst_bitmaps[3].set_pixel(3, 3, starburst_lightyellow)
  2491.    
  2492.     # 5th starburst bitmap
  2493.     @starburst_bitmaps[4] = Bitmap.new(7, 7)
  2494.     @starburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_yellow)
  2495.     @starburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_yellow)
  2496.     @starburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_yellowtwo)
  2497.     @starburst_bitmaps[4].set_pixel(3, 3, starburst_lightyellow)
  2498.     @starburst_bitmaps[4].set_pixel(1, 1, starburst_yellow)
  2499.     @starburst_bitmaps[4].set_pixel(5, 1, starburst_yellow)
  2500.     @starburst_bitmaps[4].set_pixel(1, 5, starburst_yellowtwo)
  2501.     @starburst_bitmaps[4].set_pixel(5, 1, starburst_yellowtwo)
  2502.    
  2503.     # 6th starburst bitmap
  2504.     @starburst_bitmaps[5] = Bitmap.new(8, 8)
  2505.     @starburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_yellow)
  2506.     @starburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_yellow)
  2507.     @starburst_bitmaps[5].set_pixel(3, 3, starburst_lightyellow)
  2508.    
  2509.     # 7th starburst bitmap
  2510.     @starburst_bitmaps[6] = Bitmap.new(8, 8)
  2511.     @starburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_green)
  2512.     @starburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_green)
  2513.     @starburst_bitmaps[6].set_pixel(3, 3, starburst_lightgreen)
  2514.    
  2515.     # 8th starburst bitmap
  2516.     @starburst_bitmaps[7] = Bitmap.new(7, 7)
  2517.     @starburst_bitmaps[7].set_pixel(1, 1, starburst_greentwo)
  2518.     @starburst_bitmaps[7].set_pixel(5, 1, starburst_greentwo)
  2519.     @starburst_bitmaps[7].set_pixel(2, 2, starburst_greentwo)
  2520.     @starburst_bitmaps[7].set_pixel(4, 2, starburst_greentwo)
  2521.     @starburst_bitmaps[7].set_pixel(3, 3, starburst_green)
  2522.     @starburst_bitmaps[7].set_pixel(2, 4, starburst_green)
  2523.     @starburst_bitmaps[7].set_pixel(4, 4, starburst_green)
  2524.     @starburst_bitmaps[7].set_pixel(1, 5, starburst_green)
  2525.     @starburst_bitmaps[7].set_pixel(5, 5, starburst_lightgreen)
  2526.    
  2527.     # 9th starburst bitmap
  2528.     @starburst_bitmaps[8] = Bitmap.new(7, 7)
  2529.     @starburst_bitmaps[8].fill_rect(3, 1, 1, 5, starburst_greentwo)
  2530.     @starburst_bitmaps[8].fill_rect(1, 3, 5, 1, starburst_greentwo)
  2531.     @starburst_bitmaps[8].fill_rect(3, 2, 1, 3, starburst_green)
  2532.     @starburst_bitmaps[8].fill_rect(2, 3, 3, 1, starburst_green)
  2533.     @starburst_bitmaps[8].set_pixel(3, 3, starburst_lightgreen)
  2534.         
  2535.     # 10th starburst bitmap
  2536.     @starburst_bitmaps[9] = Bitmap.new(7, 7)
  2537.     @starburst_bitmaps[9].fill_rect(2, 1, 3, 5, starburst_greentwo)
  2538.     @starburst_bitmaps[9].fill_rect(1, 2, 5, 3, starburst_greentwo)
  2539.     @starburst_bitmaps[9].fill_rect(2, 2, 3, 3, starburst_green)
  2540.     @starburst_bitmaps[9].fill_rect(3, 1, 1, 5, starburst_green)
  2541.     @starburst_bitmaps[9].fill_rect(1, 3, 5, 1, starburst_green)
  2542.     @starburst_bitmaps[9].fill_rect(3, 2, 1, 3, starburst_lightgreen)
  2543.     @starburst_bitmaps[9].fill_rect(2, 3, 3, 1, starburst_lightgreen)
  2544.     @starburst_bitmaps[9].set_pixel(3, 3, starburst_lightgreen)
  2545.    
  2546.     # 11en starburst bitmap
  2547.     @starburst_bitmaps[10] = Bitmap.new(7, 7)
  2548.     @starburst_bitmaps[10].fill_rect(2, 2, 3, 3, starburst_greentwo)
  2549.     @starburst_bitmaps[10].fill_rect(3, 2, 1, 3, starburst_greentwo)
  2550.     @starburst_bitmaps[10].fill_rect(2, 3, 3, 1, starburst_green)
  2551.     @starburst_bitmaps[10].set_pixel(3, 3, starburst_lightgreen)
  2552.     @starburst_bitmaps[10].set_pixel(1, 1, starburst_green)
  2553.     @starburst_bitmaps[10].set_pixel(5, 1, starburst_green)
  2554.     @starburst_bitmaps[10].set_pixel(1, 5, starburst_greentwo)
  2555.     @starburst_bitmaps[10].set_pixel(5, 1, starburst_greentwo)
  2556.         
  2557.     # 12en starburst bitmap
  2558.     @starburst_bitmaps[11] = Bitmap.new(8, 8)
  2559.     @starburst_bitmaps[11].fill_rect(3, 2, 1, 3, starburst_green)
  2560.     @starburst_bitmaps[11].fill_rect(2, 3, 3, 1, starburst_green)
  2561.     @starburst_bitmaps[11].set_pixel(3, 3, starburst_lightgreen)
  2562.    
  2563.     # 13en starburst bitmap
  2564.     @starburst_bitmaps[12] = Bitmap.new(8, 8)
  2565.     @starburst_bitmaps[12].fill_rect(3, 2, 1, 3, starburst_blue)
  2566.     @starburst_bitmaps[12].fill_rect(2, 3, 3, 1, starburst_blue)
  2567.     @starburst_bitmaps[12].set_pixel(3, 3, starburst_cyan)
  2568.    
  2569.     # 14en starburst bitmap
  2570.     @starburst_bitmaps[13] = Bitmap.new(7, 7)
  2571.     @starburst_bitmaps[13].set_pixel(1, 1, starburst_bluetwo)
  2572.     @starburst_bitmaps[13].set_pixel(5, 1, starburst_bluetwo)
  2573.     @starburst_bitmaps[13].set_pixel(2, 2, starburst_bluetwo)
  2574.     @starburst_bitmaps[13].set_pixel(4, 2, starburst_bluetwo)
  2575.     @starburst_bitmaps[13].set_pixel(3, 3, starburst_blue)
  2576.     @starburst_bitmaps[13].set_pixel(2, 4, starburst_blue)
  2577.     @starburst_bitmaps[13].set_pixel(4, 4, starburst_blue)
  2578.     @starburst_bitmaps[13].set_pixel(1, 5, starburst_blue)
  2579.     @starburst_bitmaps[13].set_pixel(5, 5, starburst_cyan)
  2580.    
  2581.     # 15en starburst bitmap
  2582.     @starburst_bitmaps[14] = Bitmap.new(7, 7)
  2583.     @starburst_bitmaps[14].fill_rect(3, 1, 1, 5, starburst_bluetwo)
  2584.     @starburst_bitmaps[14].fill_rect(1, 3, 5, 1, starburst_bluetwo)
  2585.     @starburst_bitmaps[14].fill_rect(3, 2, 1, 3, starburst_blue)
  2586.     @starburst_bitmaps[14].fill_rect(2, 3, 3, 1, starburst_blue)
  2587.     @starburst_bitmaps[14].set_pixel(3, 3, starburst_cyan)
  2588.         
  2589.     # 16en starburst bitmap
  2590.     @starburst_bitmaps[15] = Bitmap.new(7, 7)
  2591.     @starburst_bitmaps[15].fill_rect(2, 1, 3, 5, starburst_bluetwo)
  2592.     @starburst_bitmaps[15].fill_rect(1, 2, 5, 3, starburst_bluetwo)
  2593.     @starburst_bitmaps[15].fill_rect(2, 2, 3, 3, starburst_blue)
  2594.     @starburst_bitmaps[15].fill_rect(3, 1, 1, 5, starburst_blue)
  2595.     @starburst_bitmaps[15].fill_rect(1, 3, 5, 1, starburst_blue)
  2596.     @starburst_bitmaps[15].fill_rect(3, 2, 1, 3, starburst_cyan)
  2597.     @starburst_bitmaps[15].fill_rect(2, 3, 3, 1, starburst_cyan)
  2598.     @starburst_bitmaps[15].set_pixel(3, 3, starburst_cyan)
  2599.    
  2600.     # 17en starburst bitmap
  2601.     @starburst_bitmaps[16] = Bitmap.new(8, 8)
  2602.     @starburst_bitmaps[16].fill_rect(3, 2, 1, 3, starburst_blue)
  2603.     @starburst_bitmaps[16].fill_rect(2, 3, 3, 1, starburst_blue)
  2604.     @starburst_bitmaps[16].set_pixel(3, 3, starburst_cyan)
  2605.    
  2606.     # 18en starburst bitmap
  2607.     @starburst_bitmaps[17] = Bitmap.new(8, 8)
  2608.     @starburst_bitmaps[17].fill_rect(3, 2, 1, 3, starburst_violet)
  2609.     @starburst_bitmaps[17].fill_rect(2, 3, 3, 1, starburst_violet)
  2610.     @starburst_bitmaps[17].set_pixel(3, 3, starburst_purple)
  2611.    
  2612.     # 19en starburst bitmap
  2613.     @starburst_bitmaps[18] = Bitmap.new(7, 7)
  2614.     @starburst_bitmaps[18].set_pixel(1, 1, starburst_violettwo)
  2615.     @starburst_bitmaps[18].set_pixel(5, 1, starburst_violettwo)
  2616.     @starburst_bitmaps[18].set_pixel(2, 2, starburst_violettwo)
  2617.     @starburst_bitmaps[18].set_pixel(4, 2, starburst_violettwo)
  2618.     @starburst_bitmaps[18].set_pixel(3, 3, starburst_violet)
  2619.     @starburst_bitmaps[18].set_pixel(2, 4, starburst_violet)
  2620.     @starburst_bitmaps[18].set_pixel(4, 4, starburst_violet)
  2621.     @starburst_bitmaps[18].set_pixel(1, 5, starburst_violet)
  2622.     @starburst_bitmaps[18].set_pixel(5, 5, starburst_purple)
  2623.    
  2624.     # 20y starburst bitmap
  2625.     @starburst_bitmaps[19] = Bitmap.new(7, 7)
  2626.     @starburst_bitmaps[19].fill_rect(3, 1, 1, 5, starburst_violettwo)
  2627.     @starburst_bitmaps[19].fill_rect(1, 3, 5, 1, starburst_violettwo)
  2628.     @starburst_bitmaps[19].fill_rect(3, 2, 1, 3, starburst_violet)
  2629.     @starburst_bitmaps[19].fill_rect(2, 3, 3, 1, starburst_violet)
  2630.     @starburst_bitmaps[19].set_pixel(3, 3, starburst_violet)
  2631.         
  2632.     # 21st starburst bitmap
  2633.     @starburst_bitmaps[20] = Bitmap.new(7, 7)
  2634.     @starburst_bitmaps[20].fill_rect(2, 1, 3, 5, starburst_violettwo)
  2635.     @starburst_bitmaps[20].fill_rect(1, 2, 5, 3, starburst_violettwo)
  2636.     @starburst_bitmaps[20].fill_rect(2, 2, 3, 3, starburst_violet)
  2637.     @starburst_bitmaps[20].fill_rect(3, 1, 1, 5, starburst_violet)
  2638.     @starburst_bitmaps[20].fill_rect(1, 3, 5, 1, starburst_violet)
  2639.     @starburst_bitmaps[20].fill_rect(3, 2, 1, 3, starburst_purple)
  2640.     @starburst_bitmaps[20].fill_rect(2, 3, 3, 1, starburst_purple)
  2641.     @starburst_bitmaps[20].set_pixel(3, 3, starburst_purple)
  2642.    
  2643.     # 22nd starburst bitmap
  2644.     @starburst_bitmaps[21] = Bitmap.new(7, 7)
  2645.     @starburst_bitmaps[21].fill_rect(2, 1, 3, 5, starburst_violet)
  2646.     @starburst_bitmaps[21].fill_rect(1, 2, 5, 3, starburst_violet)
  2647.     @starburst_bitmaps[21].fill_rect(3, 0, 1, 7, starburst_violettwo)
  2648.     @starburst_bitmaps[21].fill_rect(0, 3, 7, 1, starburst_violettwo)
  2649.     @starburst_bitmaps[21].fill_rect(2, 2, 3, 3, starburst_purple)
  2650.     @starburst_bitmaps[21].fill_rect(3, 2, 1, 3, starburst_violet)
  2651.     @starburst_bitmaps[21].fill_rect(2, 3, 3, 1, starburst_violet)
  2652.     @starburst_bitmaps[21].set_pixel(3, 3, starburst_purple)
  2653.    
  2654.     # 23d starburst bitmap
  2655.     @starburst_bitmaps[22] = Bitmap.new(8, 8)
  2656.     @starburst_bitmaps[22].fill_rect(3, 2, 1, 3, starburst_violet)
  2657.     @starburst_bitmaps[22].fill_rect(2, 3, 3, 1, starburst_violet)
  2658.     @starburst_bitmaps[22].set_pixel(3, 3, starburst_purple)
  2659.    
  2660.     # 24th starburst bitmap
  2661.     @starburst_bitmaps[23] = Bitmap.new(8, 8)
  2662.     @starburst_bitmaps[23].fill_rect(3, 2, 1, 3, starburst_red)
  2663.     @starburst_bitmaps[23].fill_rect(2, 3, 3, 1, starburst_red)
  2664.     @starburst_bitmaps[23].set_pixel(3, 3, starburst_pink)
  2665.    
  2666.     # 25th starburst bitmap
  2667.     @starburst_bitmaps[24] = Bitmap.new(7, 7)
  2668.     @starburst_bitmaps[24].set_pixel(1, 1, starburst_redtwo)
  2669.     @starburst_bitmaps[24].set_pixel(5, 1, starburst_redtwo)
  2670.     @starburst_bitmaps[24].set_pixel(2, 2, starburst_redtwo)
  2671.     @starburst_bitmaps[24].set_pixel(4, 2, starburst_redtwo)
  2672.     @starburst_bitmaps[24].set_pixel(3, 3, starburst_red)
  2673.     @starburst_bitmaps[24].set_pixel(2, 4, starburst_red)
  2674.     @starburst_bitmaps[24].set_pixel(4, 4, starburst_red)
  2675.     @starburst_bitmaps[24].set_pixel(1, 5, starburst_red)
  2676.     @starburst_bitmaps[24].set_pixel(5, 5, starburst_pink)
  2677.    
  2678.     # 26th starburst bitmap
  2679.     @starburst_bitmaps[25] = Bitmap.new(7, 7)
  2680.     @starburst_bitmaps[25].fill_rect(3, 1, 1, 5, starburst_redtwo)
  2681.     @starburst_bitmaps[25].fill_rect(1, 3, 5, 1, starburst_redtwo)
  2682.     @starburst_bitmaps[25].fill_rect(3, 2, 1, 3, starburst_red)
  2683.     @starburst_bitmaps[25].fill_rect(2, 3, 3, 1, starburst_red)
  2684.     @starburst_bitmaps[25].set_pixel(3, 3, starburst_pink)
  2685.         
  2686.     # 27th starburst bitmap
  2687.     @starburst_bitmaps[26] = Bitmap.new(7, 7)
  2688.     @starburst_bitmaps[26].fill_rect(2, 1, 3, 5, starburst_redtwo)
  2689.     @starburst_bitmaps[26].fill_rect(1, 2, 5, 3, starburst_redtwo)
  2690.     @starburst_bitmaps[26].fill_rect(2, 2, 3, 3, starburst_red)
  2691.     @starburst_bitmaps[26].fill_rect(3, 1, 1, 5, starburst_red)
  2692.     @starburst_bitmaps[26].fill_rect(1, 3, 5, 1, starburst_red)
  2693.     @starburst_bitmaps[26].fill_rect(3, 2, 1, 3, starburst_pink)
  2694.     @starburst_bitmaps[26].fill_rect(2, 3, 3, 1, starburst_pink)
  2695.     @starburst_bitmaps[26].set_pixel(3, 3, starburst_pink)
  2696.    
  2697.     # 28th starburst bitmap
  2698.     @starburst_bitmaps[27] = Bitmap.new(7, 7)
  2699.     @starburst_bitmaps[27].fill_rect(2, 1, 3, 5, starburst_red)
  2700.     @starburst_bitmaps[27].fill_rect(1, 2, 5, 3, starburst_red)
  2701.     @starburst_bitmaps[27].fill_rect(3, 0, 1, 7, starburst_redtwo)
  2702.     @starburst_bitmaps[27].fill_rect(0, 3, 7, 1, starburst_redtwo)
  2703.     @starburst_bitmaps[27].fill_rect(2, 2, 3, 3, starburst_pink)
  2704.     @starburst_bitmaps[27].fill_rect(3, 2, 1, 3, starburst_red)
  2705.     @starburst_bitmaps[27].fill_rect(2, 3, 3, 1, starburst_red)
  2706.     @starburst_bitmaps[27].set_pixel(3, 3, starburst_pink)
  2707.    
  2708.     # 29th starburst bitmap
  2709.     @starburst_bitmaps[28] = Bitmap.new(8, 8)
  2710.     @starburst_bitmaps[28].fill_rect(3, 2, 1, 3, starburst_red)
  2711.     @starburst_bitmaps[28].fill_rect(2, 3, 3, 1, starburst_red)
  2712.     @starburst_bitmaps[28].set_pixel(3, 3, starburst_pink)
  2713.    
  2714.     # 30y starburst bitmap
  2715.     @starburst_bitmaps[29] = Bitmap.new(8, 8)
  2716.     @starburst_bitmaps[29].fill_rect(3, 2, 1, 3, starburst_orange)
  2717.     @starburst_bitmaps[29].fill_rect(2, 3, 3, 1, starburst_orange)
  2718.     @starburst_bitmaps[29].set_pixel(3, 3, starburst_lightorange)
  2719.    
  2720.     # 31st starburst bitmap
  2721.     @starburst_bitmaps[30] = Bitmap.new(7, 7)
  2722.     @starburst_bitmaps[30].set_pixel(1, 1, starburst_orangetwo)
  2723.     @starburst_bitmaps[30].set_pixel(5, 1, starburst_orangetwo)
  2724.     @starburst_bitmaps[30].set_pixel(2, 2, starburst_orangetwo)
  2725.     @starburst_bitmaps[30].set_pixel(4, 2, starburst_orangetwo)
  2726.     @starburst_bitmaps[30].set_pixel(3, 3, starburst_orange)
  2727.     @starburst_bitmaps[30].set_pixel(2, 4, starburst_orange)
  2728.     @starburst_bitmaps[30].set_pixel(4, 4, starburst_orange)
  2729.     @starburst_bitmaps[30].set_pixel(1, 5, starburst_orange)
  2730.     @starburst_bitmaps[30].set_pixel(5, 5, starburst_lightorange)
  2731.    
  2732.     # 32nd starburst bitmap
  2733.     @starburst_bitmaps[31] = Bitmap.new(7, 7)
  2734.     @starburst_bitmaps[31].fill_rect(3, 1, 1, 5, starburst_orangetwo)
  2735.     @starburst_bitmaps[31].fill_rect(1, 3, 5, 1, starburst_orangetwo)
  2736.     @starburst_bitmaps[31].fill_rect(3, 2, 1, 3, starburst_orange)
  2737.     @starburst_bitmaps[31].fill_rect(2, 3, 3, 1, starburst_orange)
  2738.     @starburst_bitmaps[31].set_pixel(3, 3, starburst_lightorange)
  2739.         
  2740.     # 33d starburst bitmap
  2741.     @starburst_bitmaps[32] = Bitmap.new(7, 7)
  2742.     @starburst_bitmaps[32].fill_rect(2, 1, 3, 5, starburst_orangetwo)
  2743.     @starburst_bitmaps[32].fill_rect(1, 2, 5, 3, starburst_orangetwo)
  2744.     @starburst_bitmaps[32].fill_rect(2, 2, 3, 3, starburst_orange)
  2745.     @starburst_bitmaps[32].fill_rect(3, 1, 1, 5, starburst_orange)
  2746.     @starburst_bitmaps[32].fill_rect(1, 3, 5, 1, starburst_orange)
  2747.     @starburst_bitmaps[32].fill_rect(3, 2, 1, 3, starburst_lightorange)
  2748.     @starburst_bitmaps[32].fill_rect(2, 3, 3, 1, starburst_lightorange)
  2749.     @starburst_bitmaps[32].set_pixel(3, 3, starburst_lightorange)
  2750.    
  2751.     # 34th starburst bitmap
  2752.     @starburst_bitmaps[33] = Bitmap.new(7, 7)
  2753.     @starburst_bitmaps[33].fill_rect(2, 1, 3, 5, starburst_orange)
  2754.     @starburst_bitmaps[33].fill_rect(1, 2, 5, 3, starburst_orange)
  2755.     @starburst_bitmaps[33].fill_rect(3, 0, 1, 7, starburst_orangetwo)
  2756.     @starburst_bitmaps[33].fill_rect(0, 3, 7, 1, starburst_orangetwo)
  2757.     @starburst_bitmaps[33].fill_rect(2, 2, 3, 3, starburst_lightorange)
  2758.     @starburst_bitmaps[33].fill_rect(3, 2, 1, 3, starburst_orange)
  2759.     @starburst_bitmaps[33].fill_rect(2, 3, 3, 1, starburst_orange)
  2760.     @starburst_bitmaps[33].set_pixel(3, 3, starburst_lightorange)
  2761.    
  2762.     # 35th starburst bitmap
  2763.     @starburst_bitmaps[34] = Bitmap.new(8, 8)
  2764.     @starburst_bitmaps[34].fill_rect(3, 2, 1, 3, starburst_orange)
  2765.     @starburst_bitmaps[34].fill_rect(2, 3, 3, 1, starburst_orange)
  2766.     @starburst_bitmaps[34].set_pixel(3, 3, starburst_lightorange)
  2767.    
  2768.     # 36th starburst bitmap
  2769.     @starburst_bitmaps[35] = Bitmap.new(8, 8)
  2770.     @starburst_bitmaps[35].set_pixel(3, 3, starburst_lightorange)   
  2771. #-------------------------------------------------------------------------------      
  2772.     @monostarburst_bitmaps = []
  2773.    
  2774.     # 1st starburst bitmap
  2775.     @monostarburst_bitmaps[0] = Bitmap.new(8, 8)
  2776.     @monostarburst_bitmaps[0].set_pixel(3, 3, starburst_lightyellow)
  2777.    
  2778.     # 2nd starburst bitmap
  2779.     @monostarburst_bitmaps[1] = Bitmap.new(8, 8)
  2780.     @monostarburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_yellow)
  2781.     @monostarburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_yellow)
  2782.     @monostarburst_bitmaps[1].set_pixel(3, 3, starburst_lightyellow)
  2783.    
  2784.     # 3d starburst bitmap
  2785.     @monostarburst_bitmaps[2] = Bitmap.new(7, 7)
  2786.     @monostarburst_bitmaps[2].set_pixel(1, 1, starburst_yellowtwo)
  2787.     @monostarburst_bitmaps[2].set_pixel(5, 1, starburst_yellowtwo)
  2788.     @monostarburst_bitmaps[2].set_pixel(2, 2, starburst_yellowtwo)
  2789.     @monostarburst_bitmaps[2].set_pixel(4, 2, starburst_yellowtwo)
  2790.     @monostarburst_bitmaps[2].set_pixel(3, 3, starburst_yellow)
  2791.     @monostarburst_bitmaps[2].set_pixel(2, 4, starburst_yellow)
  2792.     @monostarburst_bitmaps[2].set_pixel(4, 4, starburst_yellow)
  2793.     @monostarburst_bitmaps[2].set_pixel(1, 5, starburst_yellow)
  2794.     @monostarburst_bitmaps[2].set_pixel(5, 5, starburst_lightyellow)
  2795.    
  2796.     # 4th starburst bitmap
  2797.     @monostarburst_bitmaps[3] = Bitmap.new(7, 7)
  2798.     @monostarburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_yellowtwo)
  2799.     @monostarburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_yellowtwo)
  2800.     @monostarburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_yellow)
  2801.     @monostarburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_yellow)
  2802.     @monostarburst_bitmaps[3].set_pixel(3, 3, starburst_lightyellow)
  2803.         
  2804.     # 5th starburst bitmap
  2805.     @monostarburst_bitmaps[4] = Bitmap.new(7, 7)
  2806.     @monostarburst_bitmaps[4].fill_rect(2, 1, 3, 5, starburst_yellowtwo)
  2807.     @monostarburst_bitmaps[4].fill_rect(1, 2, 5, 3, starburst_yellowtwo)
  2808.     @monostarburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_yellow)
  2809.     @monostarburst_bitmaps[4].fill_rect(3, 1, 1, 5, starburst_yellow)
  2810.     @monostarburst_bitmaps[4].fill_rect(1, 3, 5, 1, starburst_yellow)
  2811.     @monostarburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_lightyellow)
  2812.     @monostarburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_lightyellow)
  2813.     @monostarburst_bitmaps[4].set_pixel(3, 3, starburst_lightyellow)
  2814.    
  2815.     # 6th starburst bitmap
  2816.     @monostarburst_bitmaps[5] = Bitmap.new(7, 7)
  2817.     @monostarburst_bitmaps[5].fill_rect(2, 1, 3, 5, starburst_yellow)
  2818.     @monostarburst_bitmaps[5].fill_rect(1, 2, 5, 3, starburst_yellow)
  2819.     @monostarburst_bitmaps[5].fill_rect(3, 0, 1, 7, starburst_yellowtwo)
  2820.     @monostarburst_bitmaps[5].fill_rect(0, 3, 7, 1, starburst_yellowtwo)
  2821.     @monostarburst_bitmaps[5].fill_rect(2, 2, 3, 3, starburst_lightyellow)
  2822.     @monostarburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_yellow)
  2823.     @monostarburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_yellow)
  2824.     @monostarburst_bitmaps[5].set_pixel(3, 3, starburst_lightyellow)
  2825.    
  2826.     # 7th starburst bitmap
  2827.     @monostarburst_bitmaps[6] = Bitmap.new(8, 8)
  2828.     @monostarburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_yellow)
  2829.     @monostarburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_yellow)
  2830.     @monostarburst_bitmaps[6].set_pixel(3, 3, starburst_lightyellow)
  2831.    
  2832.     # 8th starburst bitmap
  2833.     @monostarburst_bitmaps[7] = Bitmap.new(8, 8)
  2834.     @monostarburst_bitmaps[7].set_pixel(3, 3, starburst_lightyellow)
  2835. #-------------------------------------------------------------------------------   
  2836.    
  2837.     @user_bitmaps = []
  2838.     update_user_defined
  2839.   end
  2840.   
  2841.   def update_user_defined
  2842.     for image in @user_bitmaps
  2843.       image.dispose
  2844.     end
  2845.    
  2846.     #user-defined bitmaps
  2847.     for name in $WEATHER_IMAGES
  2848.       @user_bitmaps.push(RPG::Cache.picture(name))
  2849.     end
  2850.     for sprite in @sprites
  2851.       sprite.bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  2852.     end
  2853.   end
  2854. end

  2855. class Scene_Map
  2856.   def change_weather
  2857.     @spriteset.change_weather  
  2858.   end
  2859. end

  2860. class Spriteset_Map
  2861.   attr_accessor :change_weather
  2862. end
复制代码
  

…あたしは天

梦石
0
星屑
2311
在线时间
4033 小时
注册时间
2010-10-4
回帖
10548

开拓者贵宾

发表于 2014-7-20 14:35:37 | 显示全部楼层
本帖最后由 taroxd 于 2014-7-20 14:40 编辑

事件脚本中调用:screen.weather(type, power, hue)

type 为天气类型(参考注释),power 为强度(0~40),hue 为色调

不过……这脚本是VX用的啊……
VA不能用的-。-

(如果能用的话)VA要用的话,screen.change_weather(type, power, duration) 吧。duration 是等待时间。

点评

我试过了,真的可以用的。  发表于 2014-7-21 16:44

评分

参与人数 1星屑 +150 收起 理由
VIPArcher + 150 认可答案

查看全部评分

回复

使用道具 举报

孤独守望

梦石
0
星屑
3149
在线时间
1535 小时
注册时间
2006-10-16
回帖
4223

开拓者贵宾

发表于 2014-7-20 14:36:42 | 显示全部楼层
第一行不就写着……
#screen.change_weather(13,7,0)

没注意这是VA区……
菩提本非树,明镜本非台。回头自望路漫漫。不求姻缘,但求再见。
本来无一物,何处惹尘埃。风打浪吹雨不来。荒庭遍野,扶摇难接。
不知道多久更新一次的博客
回复

使用道具 举报

梦石
0
星屑
55
在线时间
87 小时
注册时间
2013-7-11
回帖
75
 楼主| 发表于 2014-7-21 14:31:22 | 显示全部楼层
taroxd 发表于 2014-7-20 14:35
事件脚本中调用:screen.weather(type, power, hue)

type 为天气类型(参考注释),power 为强度(0~40) ...


吓!这是VX的!!!好吧,闪人先……那,VA可以用吗?

点评

可以。真的可以 -。-  发表于 2014-7-21 16:45
screen.change_weather(type, power, duration) 调用成功了就能用,失败了就不能用  发表于 2014-7-21 14:36
回复

使用道具 举报

梦石
0
星屑
50
在线时间
37 小时
注册时间
2012-12-4
回帖
10
发表于 2015-7-22 19:25:42 | 显示全部楼层
那个..我知道挖坟了对不起!!!可是我真的好想知道为什么VX也用不了,无论是VA还是VX都是115行出现错误,以及VA要用的话到底是改哪里??

点评

知道就别挖啊,新开帖问呗。另外关于怎么改,见图书馆Q&A  发表于 2015-7-22 19:34
            “当然,除了时间。”
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部