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

Project1

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

[已经解决] 求各位帮忙找个脚本~

[复制链接]

Lv1.梦旅人

萌萌的小笼包

梦石
0
星屑
50
在线时间
193 小时
注册时间
2012-4-30
帖子
652
跳转到指定楼层
1
发表于 2014-5-11 13:04:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
就是用在事件标题上,然后有流星或者是萤火虫的动态标题。。。。一时间找不到了,谁能帮忙

Lv4.逐梦者 (版主)

无限の剣制

梦石
0
星屑
10079
在线时间
5020 小时
注册时间
2013-2-28
帖子
5030

开拓者贵宾

2
发表于 2014-5-11 21:21:18 | 只看该作者
本帖最后由 VIPArcher 于 2014-5-11 21:23 编辑
  1. =begin
  2.       RGSS3
  3.       
  4.       ★ 光拡散エフェクト ★

  5.       光が広がったり、集まったり、降ったりします。
  6.       天候と似た使い方を想定しています。
  7.       
  8.       イベントコマンドのスクリプトから起動させてください。
  9.       
  10.       ● コマンド一覧 ●==================================================
  11.       start_effect(type)
  12.       --------------------------------------------------------------------
  13.       光拡散エフェクトを開始します。
  14.       引数の値によってエフェクトの種類が決定します
  15.         1  => 中心から発散
  16.         2  => 中心へ収束
  17.         3  => 中央上部から下へ
  18.         4  => 上部全体から下へ
  19.         5  => 右上から左下へ
  20.         
  21.         21 => 不規則な螺旋を描いて上昇
  22.         22 => ゆらゆらと上昇
  23.         23 => 規則正しい螺旋を描いて上昇
  24.         
  25.         31 => 雪
  26.       ====================================================================
  27.       end_effect
  28.       --------------------------------------------------------------------
  29.       エフェクトの終了。画面上のエフェクトをすべて一気に開放します。
  30.       ====================================================================
  31.       end_effect_fade
  32.       --------------------------------------------------------------------
  33.       エフェクトの終了。画面上のエフェクトを少しづつ開放します。
  34.       ====================================================================
  35.       
  36.       ver1.10

  37.       Last Update : 2012/03/24
  38.       03/24 : 雪エフェクトの追加
  39.       ----------------------2012--------------------------
  40.       12/17 : RGSS2からの移植
  41.       ----------------------2011--------------------------
  42.       
  43.       ろかん   http://kaisou-ryouiki.sakura.ne.jp/
  44. =end

  45. $rsi ||= {}
  46. $rsi["光拡散エフェクト"] = true

  47. module Reffect
  48.   @@span = false
  49.   def initialize(viewport)
  50.     @sp = [0, 0]     # 初期座標
  51.     @ma = [0.0, 0.0] # 移動角度(ラジアン)
  52.     @rd = 0.0        # 初期座標からの半径
  53.     super(viewport)
  54.     self.blend_type = 1
  55.     @@span ^= true
  56.   end
  57.   def width
  58.     Graphics.width
  59.   end
  60.   def height
  61.     Graphics.height
  62.   end
  63.   def zoom=(value)
  64.     self.zoom_x = self.zoom_y = value
  65.   end
  66.   def setGraphic(filename)
  67.     self.bitmap = Cache.system(filename)
  68.     self.ox = self.bitmap.width / 2
  69.     self.oy = self.bitmap.height / 2
  70.   end
  71.   def setStartPosition(typeX, typeY)
  72.     case typeX
  73.     when 0 # ランダム
  74.       @sp[0] = rand(width + 100) - 50
  75.     when 1 # 画面外(左)
  76.       @sp[0] = -30
  77.     when 2 # 中央
  78.       @sp[0] = width / 2
  79.     when 3 # 画面外(右)
  80.       @sp[0] = width + 30
  81.     end
  82.     case typeY
  83.     when 0 # ランダム
  84.       @sp[1] = rand(height + 50) - 25
  85.     when 1 # 画面外(上)
  86.       @sp[1] = -30
  87.     when 2 # 中央
  88.       @sp[1] = height / 2
  89.     when 3 # 画面外(下)
  90.       @sp[1] = height + 30
  91.     end
  92.     self.x = @sp[0]
  93.     self.y = @sp[1]
  94.   end
  95.   def setMoveAngle(ax, ay = ax)
  96.     @ma[0] = Math.cos(ax * 0.01)
  97.     @ma[1] = Math.sin(ay * 0.01)
  98.   end
  99.   def getX
  100.     @sp[0] + @rd * @ma[0]
  101.   end
  102.   def getY
  103.     @sp[1] + @rd * @ma[1]
  104.   end
  105.   def getZoom
  106.     (@rd * @ma[1] / width / 1.5 + 0.8) * (self.opacity / 200.0)
  107.   end
  108. end

  109. class Game_Temp
  110.   #--------------------------------------------------------------------------
  111.   # ● 公開インスタンス変数
  112.   #--------------------------------------------------------------------------
  113.   attr_accessor :r_effect_sprites # 特殊効果スプライト群
  114.   #--------------------------------------------------------------------------
  115.   # ● オブジェクト初期化
  116.   #--------------------------------------------------------------------------
  117.   alias r_effect_initialize initialize
  118.   def initialize
  119.     r_effect_initialize
  120.     @r_effect_sprites = []
  121.   end
  122.   #--------------------------------------------------------------------------
  123.   # ● 特殊効果スプライトの解放
  124.   #--------------------------------------------------------------------------
  125.   def dispose_r_effect
  126.     @r_effect_sprites.each{|sprite| sprite.dispose}
  127.     @r_effect_sprites = []
  128.   end
  129. end

  130. class Game_System
  131.   #--------------------------------------------------------------------------
  132.   # ● 公開インスタンス変数
  133.   #--------------------------------------------------------------------------
  134.   attr_accessor :r_effect_type # 特殊効果の種類
  135.   #--------------------------------------------------------------------------
  136.   # ● オブジェクト初期化
  137.   #--------------------------------------------------------------------------
  138.   alias r_effect_initialize initialize
  139.   def initialize
  140.     r_effect_initialize
  141.     @r_effect_type = 0
  142.   end
  143.   #--------------------------------------------------------------------------
  144.   # ● 特殊効果の開始
  145.   #--------------------------------------------------------------------------
  146.   def start_effect(type)
  147.     $game_temp.dispose_r_effect if @r_effect_type != type
  148.     @r_effect_type = type
  149.   end
  150.   #--------------------------------------------------------------------------
  151.   # ● 特殊効果の終了(瞬時)
  152.   #--------------------------------------------------------------------------
  153.   def end_effect
  154.     $game_temp.dispose_r_effect
  155.     @r_effect_type = 0
  156.   end
  157.   #--------------------------------------------------------------------------
  158.   # ● 特殊効果の終了(フェード)
  159.   #--------------------------------------------------------------------------
  160.   def end_effect_fade
  161.     @r_effect_type = 0
  162.   end
  163. end

  164. class Game_Interpreter
  165.   #--------------------------------------------------------------------------
  166.   # ● 特殊効果の開始
  167.   #--------------------------------------------------------------------------
  168.   def start_effect(type)
  169.     $game_system.start_effect(type)
  170.   end
  171.   #--------------------------------------------------------------------------
  172.   # ● 特殊効果の終了(瞬時)
  173.   #--------------------------------------------------------------------------
  174.   def end_effect
  175.     $game_system.end_effect
  176.   end
  177.   #--------------------------------------------------------------------------
  178.   # ● 特殊効果の終了(フェード)
  179.   #--------------------------------------------------------------------------
  180.   def end_effect_fade
  181.     $game_system.end_effect_fade
  182.   end
  183. end

  184. class Sprite_Reffect_Diffusion < Sprite
  185.   #--------------------------------------------------------------------------
  186.   # ● インクルード Reffect
  187.   #--------------------------------------------------------------------------
  188.   include Reffect
  189.   #--------------------------------------------------------------------------
  190.   # ● オブジェクト初期化
  191.   #--------------------------------------------------------------------------
  192.   def initialize(viewport)
  193.     super(viewport)
  194.     case $game_system.r_effect_type
  195.     when 1
  196.       @rd = rand(width / 3).to_f
  197.       @moveSpeed = rand(50).next * 0.01 + 0.5
  198.       @existCount = rand(100) + 80
  199.       setStartPosition(2, 2)
  200.       setMoveAngle(rand(2 * Math::PI * 100))
  201.       setGraphic("RE_001")
  202.     when 2
  203.       @rd = rand(width / 3).to_f + 30.0
  204.       @moveSpeed = rand(50).next * -0.01 - 0.5
  205.       @existCount = rand(100) + 90
  206.       setStartPosition(2, 2)
  207.       setMoveAngle(rand(2 * Math::PI * 100))
  208.       setGraphic("RE_001")
  209.     when 3
  210.       @rd = rand(width / 2).to_f
  211.       @moveSpeed = rand(50).next * 0.01 + 0.5
  212.       @existCount = rand(100) + 80
  213.       setStartPosition(2, 1)
  214.       setMoveAngle(rand(2 * Math::PI * 100), rand(Math::PI * 100))
  215.       setGraphic("RE_001")
  216.     when 4
  217.       @rd = rand(width / 2).to_f
  218.       @moveSpeed = rand(50).next * 0.01 + 0.5
  219.       @existCount = rand(100) + 80
  220.       setStartPosition(0, 1)
  221.       setMoveAngle(rand(2 * Math::PI * 100), rand(Math::PI * 100))
  222.       setGraphic("RE_001")
  223.     when 5
  224.       @rd = rand(width / 2).to_f
  225.       @moveSpeed = rand(50).next * 0.01 + 0.5
  226.       @existCount = rand(100) + 120
  227.       setStartPosition(3, 1)
  228.       setMoveAngle(rand(Math::PI * 100) + 90, rand(Math::PI * 100))
  229.       setGraphic("RE_001")
  230.     end
  231.     @maxOpacity = rand(160) + 40
  232.     self.opacity = 1
  233.   end
  234.   #--------------------------------------------------------------------------
  235.   # ● フレーム更新
  236.   #--------------------------------------------------------------------------
  237.   def update
  238.     if self.opacity.zero?
  239.       dispose
  240.       $game_temp.r_effect_sprites.delete(self)
  241.     else
  242.       @existCount -= 1
  243.       @rd = [@rd + @moveSpeed, 0.0].max
  244.       self.x = getX
  245.       self.y = getY
  246.       self.zoom = getZoom
  247.       self.opacity = [self.opacity + (@existCount > 0 ? 1 : -1), @maxOpacity].min
  248.     end
  249.   end
  250. end

  251. class Sprite_Reffect_Spiral < Sprite
  252.   #--------------------------------------------------------------------------
  253.   # ● インクルード Reffect
  254.   #--------------------------------------------------------------------------
  255.   include Reffect
  256.   #--------------------------------------------------------------------------
  257.   # ● オブジェクト初期化
  258.   #--------------------------------------------------------------------------
  259.   def initialize(viewport)
  260.     super(viewport)
  261.     case $game_system.r_effect_type
  262.     when 21
  263.       @rd = rand(200).next.to_f
  264.       @moveSpeed = 5.0 - @rd / 50.0
  265.       @nextAngle = rand(360).to_f
  266.       @collapseSpeed = 1
  267.       setStartPosition(2, 3)
  268.       setGraphic("RE_002")
  269.     when 22
  270.       @rd = rand(40).next.to_f
  271.       @moveSpeed = rand(100).next * 0.01 + 1.0
  272.       @nextAngle = rand(360).to_f
  273.       @collapseSpeed = rand(3).zero? ? 2 : 1
  274.       setStartPosition(0, 3)
  275.       setGraphic("RE_002")
  276.     when 23
  277.       @rd = 180
  278.       @moveSpeed = 1.7
  279.       @nextAngle = @@span ? 0.0 : 180.0
  280.       @collapseSpeed = 0
  281.       setStartPosition(2, 3)
  282.       setGraphic("RE_002")
  283.     end
  284.     @floteY = self.y.to_f
  285.   end
  286.   #--------------------------------------------------------------------------
  287.   # ● フレーム更新
  288.   #--------------------------------------------------------------------------
  289.   def update
  290.     if self.y <= -self.oy || self.opacity.zero?
  291.       dispose
  292.       $game_temp.r_effect_sprites.delete(self)
  293.     else
  294.       @nextAngle += [@moveSpeed, 2].min
  295.       @nextAngle = 0.0 if @nextAngle >= 360
  296.       setMoveAngle(@nextAngle * 1.74533)
  297.       self.x = getX
  298.       self.y = (@floteY -= @moveSpeed).round
  299.       self.zoom = getZoom
  300.       self.opacity -= @collapseSpeed
  301.     end
  302.   end
  303. end

  304. class Sprite_Reffect_Snow < Sprite
  305.   #--------------------------------------------------------------------------
  306.   # ● インクルード Reffect
  307.   #--------------------------------------------------------------------------
  308.   include Reffect
  309.   #--------------------------------------------------------------------------
  310.   # ● オブジェクト初期化
  311.   #--------------------------------------------------------------------------
  312.   def initialize(viewport)
  313.     super(viewport)
  314.     setStartPosition(0, 1)
  315.     setGraphic("RE_003")
  316.     case rand(100)
  317.     when 0..49
  318.       self.zoom = (3 + rand(2)) / 10.0
  319.     when 50..89
  320.       self.zoom = (6 + rand(2)) / 10.0
  321.     when 90..99
  322.       self.zoom = (9 + rand(2)) / 10.0
  323.     end
  324.     self.z = self.zoom_x * 10
  325.     @moveSpeed = self.zoom_x * 1.6
  326.     @floteY = self.y.to_f
  327.     @rd = rand(10).next.to_f
  328.     @nextAngle = rand(360).to_f
  329.     @existCount = 1500
  330.   end
  331.   #--------------------------------------------------------------------------
  332.   # ● フレーム更新
  333.   #--------------------------------------------------------------------------
  334.   def update
  335.     if self.y > height || self.opacity.zero?
  336.       dispose
  337.       $game_temp.r_effect_sprites.delete(self)
  338.     else
  339.       @existCount -= 3
  340.       @nextAngle += [@moveSpeed, 2].min
  341.       @nextAngle = 0.0 if @nextAngle >= 360
  342.       setMoveAngle(@nextAngle * 1.74533)
  343.       self.x = getX
  344.       self.y = (@floteY += @moveSpeed).round
  345.       self.opacity = @existCount
  346.     end
  347.   end
  348. end

  349. class Spriteset_Map
  350.   @@re_add_count = 0
  351.   #--------------------------------------------------------------------------
  352.   # ● 解放
  353.   #--------------------------------------------------------------------------
  354.   alias r_effect_dispose dispose
  355.   def dispose
  356.     r_effect_dispose
  357.     $game_temp.dispose_r_effect
  358.   end
  359.   #--------------------------------------------------------------------------
  360.   # ● フレーム更新
  361.   #--------------------------------------------------------------------------
  362.   alias r_effect_update update
  363.   def update
  364.     r_effect_update
  365.     update_r_effect
  366.   end
  367.   #--------------------------------------------------------------------------
  368.   # ● 特殊エフェクトの更新
  369.   #--------------------------------------------------------------------------
  370.   def update_r_effect
  371.     unless $game_system.r_effect_type.zero?
  372.       if @@re_add_count.zero?
  373.         case $game_system.r_effect_type
  374.         when  1..10
  375.           sprite = Sprite_Reffect_Diffusion.new(@viewport3)
  376.           @@re_add_count = 10
  377.         when 21..30
  378.           sprite = Sprite_Reffect_Spiral.new(@viewport3)
  379.           @@re_add_count = 10
  380.         when 31..40
  381.           sprite = Sprite_Reffect_Snow.new(@viewport3)
  382.           @@re_add_count = 20
  383.         end
  384.         $game_temp.r_effect_sprites << sprite
  385.       end
  386.       @@re_add_count -= 1
  387.     end
  388.     $game_temp.r_effect_sprites.each{|sprite| sprite.update}
  389.   end
  390. end
复制代码

System.zip

4.05 KB, 下载次数: 5

必要的素材

回复 支持 反对

使用道具 举报

Lv4.逐梦者 (版主)

无限の剣制

梦石
0
星屑
10079
在线时间
5020 小时
注册时间
2013-2-28
帖子
5030

开拓者贵宾

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1781.      # Golden storm

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

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

  1801.      # Acid storm

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

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

  1824.      # Sepia storm

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

  1832.     # Yellow leaves

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

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

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

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

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

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

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

  2439.     # Starburst bitmaps

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

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

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

评分

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

查看全部评分

回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-12-5 10:53

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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