设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3470|回复: 4
打印 上一主题 下一主题

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
55
在线时间
87 小时
注册时间
2013-7-11
帖子
100
跳转到指定楼层
1
发表于 2014-7-20 14:17:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

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

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

Lv3.寻梦者 (版主)

…あたしは天使なんかじゃないわ

梦石
0
星屑
2208
在线时间
4033 小时
注册时间
2010-10-4
帖子
10779

开拓者贵宾

2
发表于 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 认可答案

查看全部评分

回复 支持 反对

使用道具 举报

Lv3.寻梦者

孤独守望

梦石
0
星屑
3137
在线时间
1535 小时
注册时间
2006-10-16
帖子
4321

开拓者贵宾

3
发表于 2014-7-20 14:36:42 | 只看该作者
第一行不就写着……
#screen.change_weather(13,7,0)

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

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
87 小时
注册时间
2013-7-11
帖子
100
4
 楼主| 发表于 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
回复 支持 反对

使用道具 举报

Lv1.梦旅人

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

点评

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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-12-2 05:20

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表