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

Project1

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

[转载] 【VX】天气扩张

[复制链接]

Lv2.观梦者

梦石
0
星屑
618
在线时间
2656 小时
注册时间
2010-6-28
帖子
1361

开拓者

跳转到指定楼层
1
发表于 2011-12-29 10:12:51 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 我的米呀 于 2011-12-29 10:18 编辑
  1. #==============================================================================
  2. # ■ Spriteset_Weather
  3. #------------------------------------------------------------------------------
  4. #  天候エフェクト (雨、嵐、雪) のクラスです。このクラスは Spriteset_Map クラ
  5. # スの内部で使用されます。天气扩张
  6. #简易的说明:在事件中的脚本栏里写入“screen.weather(a,25, 0)”后运行,a代指从100行起的天气代码。
  7. #==============================================================================

  8. $WEATHER_UPDATE = false   # the $WEATHER_IMAGES array has changed, please update
  9. $WEATHER_IMAGES = []      # the array of picture names to use
  10. $WEATHER_X = 0            # the number of pixels the image should move horizontally (positive = right, negative = left)
  11. $WEATHER_Y = 0            # the number of pizels the image should move vertically (positive = down, negative = up)
  12. $WEATHER_FADE = 0         # how much the image should fade each update (0 = no fade, 255 = fade instantly)
  13. $WEATHER_ANIMATED = false # whether or not the image should cycle through all the images

  14. # take these out if you are using my screen resolution script!
  15. # screen.weather(6, 25, 0) for call script屏幕尺寸改变
  16.   HEIGHT = 416
  17.   WIDTH = 544



  18. class Spriteset_Weather
  19.   #--------------------------------------------------------------------------
  20.   # ● 公開インスタンス変数
  21.   #--------------------------------------------------------------------------
  22.   attr_reader :type
  23.   attr_reader :max
  24.   attr_reader :ox
  25.   attr_reader :oy
  26.   #--------------------------------------------------------------------------
  27.   # ● オブジェクト初期化
  28.   #--------------------------------------------------------------------------
  29.   def initialize(viewport = nil)
  30.     @type = 0
  31.     @max = 0
  32.     @ox = 0
  33.     @oy = 0
  34.    
  35.     @count = 0
  36.     @current_pose = []
  37.     @info = []
  38.     @countarray = []
  39.    
  40.     make_bitmaps
  41.    
  42.     @sprites = []
  43.    
  44.     for i in 1..500
  45.       sprite = Sprite.new(viewport)
  46.       sprite.visible = false
  47.       sprite.opacity = 0
  48.       @sprites.push(sprite)
  49.       @current_pose.push(0)
  50.       @info.push(rand(50))
  51.       @countarray.push(rand(15))
  52.     end
  53.    
  54.   end
  55.   #--------------------------------------------------------------------------
  56.   # ● 解放
  57.   #--------------------------------------------------------------------------
  58.   def dispose
  59.     for sprite in @sprites
  60.       sprite.dispose
  61.     end
  62.     @rain_bitmap.dispose
  63.     @storm_bitmap.dispose
  64.     @snow_bitmap.dispose
  65.     @hail_bitmap.dispose
  66.     @petal_bitmap.dispose
  67.     @blood_rain_bitmap.dispose
  68.     for image in @autumn_leaf_bitmaps
  69.       image.dispose
  70.     end
  71.     for image in @green_leaf_bitmaps
  72.       image.dispose
  73.     end
  74.     for image in @rose_bitmaps
  75.       image.dispose
  76.     end
  77.     for image in @feather_bitmaps
  78.       image.dispose
  79.     end
  80.     for image in @sparkle_bitmaps
  81.       image.dispose
  82.     end
  83.     for image in @user_bitmaps
  84.       image.dispose
  85.     end
  86.     $WEATHER_UPDATE = true
  87.   end
  88.   #--------------------------------------------------------------------------
  89.   # ● 天候タイプの設定
  90.   #     type : 新しい天候タイプ
  91.   #--------------------------------------------------------------------------
  92.   def type=(type)
  93.     return if @type == type
  94.     @type = type
  95.     case @type
  96.     when 1#下雨
  97.       bitmap = @rain_bitmap
  98.     when 2#暴风雨
  99.       bitmap = @storm_bitmap
  100.     when 3#雪
  101.       bitmap = @snow_bitmap
  102.    when 4 # 冰雹
  103.       bitmap = @hail_bitmap
  104.     when 5 # 雷雨(下面的false代表没有闪电,若为true则有闪电)
  105.       bitmap = @rain_bitmap
  106.       @thunder = false
  107.     when 6 #秋天的落叶
  108.       bitmap = @autumn_leaf_bitmaps[0]
  109.     when 7 #风卷起的秋天的落叶
  110.       bitmap = @autumn_leaf_bitmaps[0]
  111.     when 8 #飞扬的秋天的落叶
  112.       bitmap = @autumn_leaf_bitmaps[0]
  113.     when 9 #春天的落叶
  114.       bitmap = @green_leaf_bitmaps[0]
  115.     when 10 #樱花
  116.       bitmap = @petal_bitmap
  117.     when 11 #玫瑰
  118.       bitmap = @rose_bitmaps[0]
  119.     when 12 #羽毛
  120.       bitmap = @feather_bitmaps[0]
  121.     when 13  #血雨
  122.       bitmap = @blood_rain_bitmap
  123.     when 14 #星星
  124.       bitmap = @sparkle_bitmaps[0]
  125.     when 15 #用户自定义的图片
  126.         bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  127.     when 16 #刮起的雪
  128.       bitmap = @snow_bitmap
  129.     when 17#流星
  130.       bitmap = @meteor_bitmap
  131.     when 18 #尘埃
  132.       bitmap = @ash_bitmaps[rand(@ash_bitmaps.size)]
  133.     when 19 #泡泡
  134.       bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  135.     when 21 # sparkles up#上升的星星
  136.       bitmap = @sparkle_bitmaps[0]
  137.     else
  138.       bitmap = nil
  139.     end
  140.    
  141.     if @type != 5
  142.       @thunder = false
  143.     end
  144.    
  145.     for i in [email protected]
  146.       sprite = @sprites[i]
  147.       sprite.visible = (i <= @max)
  148.       if @type == 19
  149.         sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  150.       elsif @type == 20
  151.         sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  152.       elsif @type == 3
  153.         r = rand(@snow_bitmaps.size)
  154.         @info[i] = r
  155.         sprite.bitmap = @snow_bitmaps[r]
  156.       else
  157.         sprite.bitmap = bitmap
  158.       end
  159.     end
  160.   end
  161.   #--------------------------------------------------------------------------
  162.   # ● 原点 X 座標の設定
  163.   #     ox : 原点 X 座標
  164.   #--------------------------------------------------------------------------
  165.   def ox=(ox)
  166.     return if @ox == ox;
  167.     @ox = ox
  168.     for sprite in @sprites
  169.       sprite.ox = @ox
  170.     end
  171.   end
  172.   #--------------------------------------------------------------------------
  173.   # ● 原点 Y 座標の設定
  174.   #     oy : 原点 Y 座標
  175.   #--------------------------------------------------------------------------
  176.   def oy=(oy)
  177.     return if @oy == oy;
  178.     @oy = oy
  179.     for sprite in @sprites
  180.       sprite.oy = @oy
  181.     end
  182.   end
  183.   #--------------------------------------------------------------------------
  184.   # ● スプライト最大数の設定
  185.   #     max : スプライト最大数
  186.   #--------------------------------------------------------------------------
  187.   def max=(max)
  188.     return if @max == max;
  189.     @max = [[max, 0].max, 40].min
  190.     for i in 1..40
  191.       sprite = @sprites[i]
  192.       sprite.visible = (i <= @max) if sprite != nil
  193.       if @type == 19
  194.           sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  195.         elsif @type == 20
  196.           sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  197.         elsif @type == 3
  198.           r = rand(@snow_bitmaps.size)
  199.           @info[i] = r
  200.           sprite.bitmap = @snow_bitmaps[r]
  201.         end
  202.     end
  203.   end
  204.   #--------------------------------------------------------------------------
  205.   # ● フレーム更新
  206.   #--------------------------------------------------------------------------
  207.   def update
  208.     return if @type == 0
  209.     for i in 1..@max
  210.       sprite = @sprites[i]
  211.       if @type == 1 or @type == 5 or @type == 13 # rain
  212.         if sprite.opacity <= 150
  213.           if @current_pose[i] == 0
  214.             sprite.y += @rain_bitmap.height
  215.             sprite.x -= @rain_bitmap.width
  216.             if @type == 1 or @type == 5
  217.               sprite.bitmap = @rain_splash
  218.             else
  219.               sprite.bitmap = @blood_rain_splash
  220.             end
  221.             @current_pose[i] = 1
  222.           end
  223.         else
  224.           if @current_pose[i] == 1
  225.             if @type == 1 or @type == 5
  226.               sprite.bitmap = @rain_bitmap
  227.             else
  228.               sprite.bitmap = @blood_rain_bitmap
  229.             end
  230.             @current_pose[i] = 0
  231.           end
  232.           sprite.x -= 2
  233.           sprite.y += 16
  234.           if @thunder and (rand(8000 - @max) == 0)
  235.             $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  236.             Audio.se_play("Audio/SE/Thunder1")
  237.           end
  238.         end
  239.         sprite.opacity -= 8
  240.       end
  241.       if @type == 2 # storm
  242.         sprite.x -= 8
  243.         sprite.y += 16
  244.         sprite.opacity -= 12
  245.       end
  246.       if @type == 3 # snow
  247.         case @info[i]
  248.         when 0 # smallest flake, fall the slowest
  249.           sprite.y += 1
  250.         when 1
  251.           sprite.y += 3
  252.         when 2
  253.           sprite.y += 5
  254.         when 3
  255.           sprite.y += 7
  256.         end
  257.         sprite.opacity -= 3
  258.       end
  259.       if @type == 4 # hail
  260.         sprite.x -= 1
  261.         sprite.y += 18
  262.         sprite.opacity -= 15
  263.       end
  264.       if @type == 6 # falling autumn leaves
  265.         @count = rand(20)
  266.         if @count == 0
  267.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  268.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  269.         end
  270.         sprite.x -= 1
  271.         sprite.y += 1
  272.       end
  273.       if @type == 7 # blowing autumn leaves
  274.         @count = rand(20)
  275.         if @count == 0
  276.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  277.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  278.         end
  279.         sprite.x -= 10
  280.         sprite.y += (rand(4) - 2)
  281.       end
  282.       if @type == 8 # swirling autumn leaves
  283.         @count = rand(20)
  284.         if @count == 0
  285.           sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  286.           @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  287.         end
  288.         if @info[i] != 0
  289.           if @info[i] >= 1 and @info[i] <= 10
  290.             sprite.x -= 3
  291.             sprite.y -= 1
  292.           elsif @info[i] >= 11 and @info[i] <= 16
  293.             sprite.x -= 1
  294.             sprite.y -= 2
  295.           elsif @info[i] >= 17 and @info[i] <= 20
  296.             sprite.y -= 3
  297.           elsif @info[i] >= 21 and @info[i] <= 30
  298.             sprite.y -= 2
  299.             sprite.x += 1
  300.           elsif @info[i] >= 31 and @info[i] <= 36
  301.             sprite.y -= 1
  302.             sprite.x += 3
  303.           elsif @info[i] >= 37 and @info[i] <= 40
  304.             sprite.x += 5
  305.           elsif @info[i] >= 41 and @info[i] <= 46
  306.             sprite.y += 1
  307.             sprite.x += 3
  308.           elsif @info[i] >= 47 and @info[i] <= 58
  309.             sprite.y += 2
  310.             sprite.x += 1
  311.           elsif @info[i] >= 59 and @info[i] <= 64
  312.             sprite.y += 3
  313.           elsif @info[i] >= 65 and @info[i] <= 70
  314.             sprite.x -= 1
  315.             sprite.y += 2
  316.           elsif @info[i] >= 71 and @info[i] <= 81
  317.             sprite.x -= 3
  318.             sprite.y += 1
  319.           elsif @info[i] >= 82 and @info[i] <= 87
  320.             sprite.x -= 5
  321.           end
  322.           @info[i] = (@info[i] + 1) % 88
  323.         else
  324.           if rand(200) == 0
  325.             @info[i] = 1
  326.           end
  327.           sprite.x -= 5
  328.           sprite.y += 1
  329.         end
  330.       end
  331.       if @type == 9 # falling green leaves
  332.         if @countarray[i] == 0
  333.           @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  334.           sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  335.           @countarray[i] = rand(15)
  336.         end
  337.         @countarray[i] = (@countarray[i] + 1) % 15
  338.         sprite.y += 1
  339.       end
  340.       if @type == 10 # sakura petals
  341.         if @info[i] < 25
  342.           sprite.x -= 1
  343.         else
  344.           sprite.x += 1
  345.         end
  346.         @info[i] = (@info[i] + 1) % 50
  347.         sprite.y += 1
  348.       end
  349.       if @type == 11 # rose petals
  350.         @count = rand(20)
  351.         if @count == 0
  352.           sprite.bitmap = @rose_bitmaps[@current_pose[i]]
  353.           @current_pose[i] = (@current_pose[i] + 1) % @rose_bitmaps.size
  354.         end
  355.         if @info[i] % 2 == 0
  356.           if @info[i] < 10
  357.             sprite.x -= 1
  358.           elsif
  359.             sprite.x += 1
  360.           end
  361.         end
  362.         sprite.y += 1
  363.       end
  364.       if @type == 12 # feathers
  365.         if @countarray[i] == 0
  366.           @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  367.           sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  368.         end
  369.         @countarray[i] = (@countarray[i] + 1) % 15
  370.         if rand(100) == 0
  371.           sprite.x -= 1
  372.         end
  373.         if rand(100) == 0
  374.           sprite.y -= 1
  375.         end
  376.         if @info[i] < 50
  377.           if rand(2) == 0
  378.             sprite.x -= 1
  379.           else
  380.             sprite.y -= 1
  381.           end
  382.         else
  383.           if rand(2) == 0
  384.             sprite.x += 1
  385.           else
  386.             sprite.y += 1
  387.           end
  388.         end
  389.         @info[i] = (@info[i] + 1) % 100
  390.       end
  391.       if @type == 14 # sparkles
  392.         if @countarray[i] == 0
  393.           @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  394.           sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  395.         end
  396.         @countarray[i] = (@countarray[i] + 1) % 15
  397.         sprite.y += 1
  398.         sprite.opacity -= 1
  399.       end
  400.       if @type == 15 # user-defined
  401.         if $WEATHER_UPDATE
  402.           update_user_defined
  403.           $WEATHER_UPDATE = false
  404.         end
  405.         if $WEATHER_ANIMATED and @countarray[i] == 0
  406.           @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  407.           sprite.bitmap = @user_bitmaps[@current_pose[i]]
  408.         end
  409.         sprite.x += $WEATHER_X
  410.         sprite.y += $WEATHER_Y
  411.         sprite.opacity -= $WEATHER_FADE
  412.       end
  413.       if @type == 16 # blowing snow
  414.         sprite.x -= 10
  415.         sprite.y += 6
  416.         sprite.opacity -= 4
  417.       end
  418.       if @type == 17 # meteors
  419.         if @countarray[i] > 0
  420.           if rand(20) == 0
  421.             sprite.bitmap = @impact_bitmap
  422.             @countarray[i] = -5
  423.           else
  424.             sprite.x -= 6
  425.             sprite.y += 10
  426.           end
  427.         else
  428.           @countarray[i] += 1
  429.           if @countarray[i] == 0
  430.             sprite.bitmap = @meteor_bitmap
  431.             sprite.opacity = 0
  432.             @count_array = 1
  433.           end
  434.         end
  435.       end
  436.       if @type == 18 # ash
  437.         sprite.y += 2
  438.         case @countarray[i] % 3
  439.         when 0
  440.           sprite.x -= 1
  441.         when 1
  442.           sprite.x += 1
  443.         end
  444.       end
  445.       if @type == 19 or @type == 20 # bubbles
  446.         switch = rand(75) + rand(75) + 1
  447.         if @info[i] < switch / 2
  448.           sprite.x -= 1
  449.         else
  450.           sprite.x += 1
  451.         end
  452.         @info[i] = (@info[i] + 1) % switch
  453.         sprite.y -= 1
  454.         if switch % 2 == 0
  455.           sprite.opacity -= 1
  456.         end
  457.       end
  458.       if @type == 21 # sparkles up
  459.         if @countarray[i] == 0
  460.           @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  461.           sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  462.         end
  463.         @countarray[i] = (@countarray[i] + 1) % 15
  464.         sprite.y -= 1
  465.         sprite.opacity -= 1
  466.       end
  467.       x = sprite.x - @ox
  468.       y = sprite.y - @oy
  469.       if sprite.opacity < 64 or x < -50 or x > 750 or y < -300 or y > 500
  470.         sprite.x = rand(800) - 100 + @ox
  471.         sprite.y = rand(600) - 200 + @oy
  472.         if [13, 14, 16, 5, 2, 1].include?(@type)
  473.           sprite.opacity = rand(100) + 155
  474.         else
  475.           sprite.opacity = 255
  476.         end
  477.       end
  478.     end
  479.   end
  480.   
  481.   def make_bitmaps
  482.     color1 = Color.new(255, 255, 255, 255)
  483.     color2 = Color.new(255, 255, 255, 128)
  484.     @rain_bitmap = Bitmap.new(7, 56)
  485.     for i in 0..6
  486.       @rain_bitmap.fill_rect(6-i, i*8, 1, 8, color1)
  487.     end
  488.     @rain_splash = Bitmap.new(8, 5)
  489.     @rain_splash.fill_rect(1, 0, 6, 1, color2)
  490.     @rain_splash.fill_rect(1, 4, 6, 1, color2)
  491.     @rain_splash.fill_rect(0, 1, 1, 3, color2)
  492.     @rain_splash.fill_rect(7, 1, 1, 3, color2)
  493.     @rain_splash.set_pixel(1, 0, color1)
  494.     @rain_splash.set_pixel(0, 1, color1)
  495.    
  496.     @storm_bitmap = Bitmap.new(34, 64)
  497.     for i in 0..31
  498.       @storm_bitmap.fill_rect(33-i, i*2, 1, 2, color2)
  499.       @storm_bitmap.fill_rect(32-i, i*2, 1, 2, color1)
  500.       @storm_bitmap.fill_rect(31-i, i*2, 1, 2, color2)
  501.     end
  502.     @snow_bitmap = Bitmap.new(6, 6)
  503.     @snow_bitmap.fill_rect(0, 1, 6, 4, color2)
  504.     @snow_bitmap.fill_rect(1, 0, 4, 6, color2)
  505.     @snow_bitmap.fill_rect(1, 2, 4, 2, color1)
  506.     @snow_bitmap.fill_rect(2, 1, 2, 4, color1)
  507.     @sprites = []
  508.    
  509.     @snow_bitmaps = []
  510.    
  511.     color3 = Color.new(255, 255, 255, 204)
  512.     @snow_bitmaps[0] = Bitmap.new(3, 3)
  513.     @snow_bitmaps[0].fill_rect(0, 0, 3, 3, color2)
  514.     @snow_bitmaps[0].fill_rect(0, 1, 3, 1, color3)
  515.     @snow_bitmaps[0].fill_rect(1, 0, 1, 3, color3)
  516.     @snow_bitmaps[0].set_pixel(1, 1, color1)
  517.    
  518.     @snow_bitmaps[1] = Bitmap.new(4, 4)
  519.     @snow_bitmaps[1].fill_rect(0, 1, 4, 2, color2)
  520.     @snow_bitmaps[1].fill_rect(1, 0, 2, 4, color2)
  521.     @snow_bitmaps[1].fill_rect(1, 1, 2, 2, color1)
  522.    
  523.     @snow_bitmaps[2] = Bitmap.new(5, 5)
  524.     @snow_bitmaps[1].fill_rect(0, 1, 5, 3, color3)
  525.     @snow_bitmaps[1].fill_rect(1, 0, 3, 5, color3)
  526.     @snow_bitmaps[1].fill_rect(1, 1, 3, 3, color2)
  527.     @snow_bitmaps[1].fill_rect(2, 1, 3, 1, color1)
  528.     @snow_bitmaps[1].fill_rect(1, 2, 1, 3, color1)
  529.    
  530.     @snow_bitmaps[3] = Bitmap.new(7, 7)
  531.     @snow_bitmaps[1].fill_rect(1, 1, 5, 5, color3)
  532.     @snow_bitmaps[1].fill_rect(2, 0, 7, 3, color3)
  533.     @snow_bitmaps[1].fill_rect(0, 2, 3, 7, color3)
  534.     @snow_bitmaps[1].fill_rect(2, 1, 5, 3, color2)
  535.     @snow_bitmaps[1].fill_rect(1, 2, 3, 5, color2)
  536.     @snow_bitmaps[1].fill_rect(2, 2, 3, 3, color1)
  537.     @snow_bitmaps[1].fill_rect(3, 1, 5, 1, color1)
  538.     @snow_bitmaps[1].fill_rect(1, 3, 1, 5, color1)
  539.    
  540.     blueGrey  = Color.new(215, 227, 227, 150)
  541.     grey      = Color.new(214, 217, 217, 150)
  542.     lightGrey = Color.new(233, 233, 233, 250)
  543.     lightBlue = Color.new(222, 239, 243, 250)
  544.     @hail_bitmap = Bitmap.new(4, 4)
  545.     @hail_bitmap.fill_rect(1, 0, 2, 1, blueGrey)
  546.     @hail_bitmap.fill_rect(0, 1, 1, 2, blueGrey)
  547.     @hail_bitmap.fill_rect(3, 1, 1, 2, grey)
  548.     @hail_bitmap.fill_rect(1, 3, 2, 1, grey)
  549.     @hail_bitmap.fill_rect(1, 1, 2, 2, lightGrey)
  550.     @hail_bitmap.set_pixel(1, 1, lightBlue)
  551.    
  552.    
  553.     color3 = Color.new(255, 167, 192, 255) # light pink
  554.     color4 = Color.new(213, 106, 136, 255) # dark pink
  555.     @petal_bitmap = Bitmap.new(4, 4) #This creates a new bitmap that is 4 x 4 pixels
  556.     @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)
  557.     @petal_bitmap.fill_rect(1, 2, 1, 1, color3)
  558.     @petal_bitmap.fill_rect(2, 1, 1, 1, color3)
  559.     @petal_bitmap.fill_rect(3, 0, 1, 1, color3)
  560.     @petal_bitmap.fill_rect(1, 3, 1, 1, color4)
  561.     @petal_bitmap.fill_rect(2, 2, 1, 1, color4)
  562.     @petal_bitmap.fill_rect(3, 1, 1, 1, color4)
  563.    
  564.    
  565.     brightOrange = Color.new(248, 88, 0, 255)   
  566.     orangeBrown  = Color.new(144, 80, 56, 255)
  567.     burntRed     = Color.new(152, 0, 0, 255)
  568.     paleOrange   = Color.new(232, 160, 128, 255)
  569.     darkBrown    = Color.new(72, 40, 0, 255)
  570.     @autumn_leaf_bitmaps = []
  571.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  572.     # draw the first of the leaf1 bitmaps
  573.     @autumn_leaf_bitmaps[0].set_pixel(5, 1, orangeBrown)
  574.     @autumn_leaf_bitmaps[0].set_pixel(6, 1, brightOrange)
  575.     @autumn_leaf_bitmaps[0].set_pixel(7, 1, paleOrange)
  576.     @autumn_leaf_bitmaps[0].set_pixel(3, 2, orangeBrown)
  577.     @autumn_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightOrange)
  578.     @autumn_leaf_bitmaps[0].set_pixel(6, 2, paleOrange)
  579.     @autumn_leaf_bitmaps[0].set_pixel(2, 3, orangeBrown)
  580.     @autumn_leaf_bitmaps[0].set_pixel(3, 3, brightOrange)
  581.     @autumn_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, paleOrange)
  582.     @autumn_leaf_bitmaps[0].set_pixel(1, 4, orangeBrown)
  583.     @autumn_leaf_bitmaps[0].set_pixel(2, 4, brightOrange)
  584.     @autumn_leaf_bitmaps[0].set_pixel(3, 4, paleOrange)
  585.     @autumn_leaf_bitmaps[0].set_pixel(1, 5, brightOrange)
  586.     @autumn_leaf_bitmaps[0].set_pixel(2, 5, paleOrange)
  587.     @autumn_leaf_bitmaps[0].set_pixel(0, 6, orangeBrown)
  588.     @autumn_leaf_bitmaps[0].set_pixel(1, 6, paleOrange)
  589.     @autumn_leaf_bitmaps[0].set_pixel(0, 7, paleOrange)
  590.    
  591.     # draw the 2nd of the leaf1 bitmaps
  592.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  593.     @autumn_leaf_bitmaps[1].set_pixel(3, 0, brightOrange)
  594.     @autumn_leaf_bitmaps[1].set_pixel(7, 0, brightOrange)
  595.     @autumn_leaf_bitmaps[1].set_pixel(3, 1, orangeBrown)
  596.     @autumn_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  597.     @autumn_leaf_bitmaps[1].set_pixel(6, 1, brightOrange)
  598.     @autumn_leaf_bitmaps[1].set_pixel(0, 2, paleOrange)
  599.     @autumn_leaf_bitmaps[1].set_pixel(1, 2, brightOrange)
  600.     @autumn_leaf_bitmaps[1].set_pixel(2, 2, orangeBrown)
  601.     @autumn_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  602.     @autumn_leaf_bitmaps[1].set_pixel(4, 2, orangeBrown)
  603.     @autumn_leaf_bitmaps[1].set_pixel(5, 2, brightOrange)
  604.     @autumn_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, orangeBrown)
  605.     @autumn_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightOrange)
  606.     @autumn_leaf_bitmaps[1].set_pixel(6, 3, orangeBrown)
  607.     @autumn_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  608.     @autumn_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightOrange)
  609.     @autumn_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  610.     @autumn_leaf_bitmaps[1].set_pixel(7, 4, darkBrown)
  611.     @autumn_leaf_bitmaps[1].set_pixel(1, 5, orangeBrown)
  612.     @autumn_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightOrange)
  613.     @autumn_leaf_bitmaps[1].set_pixel(4, 5, orangeBrown)
  614.     @autumn_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  615.     @autumn_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightOrange)
  616.     @autumn_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  617.     @autumn_leaf_bitmaps[1].set_pixel(0, 7, brightOrange)
  618.     @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkBrown)
  619.    
  620.     # draw the 3rd of the leaf1 bitmaps
  621.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  622.     @autumn_leaf_bitmaps[2].set_pixel(7, 1, paleOrange)
  623.     @autumn_leaf_bitmaps[2].set_pixel(6, 2, paleOrange)
  624.     @autumn_leaf_bitmaps[2].set_pixel(7, 2, orangeBrown)
  625.     @autumn_leaf_bitmaps[2].set_pixel(5, 3, paleOrange)
  626.     @autumn_leaf_bitmaps[2].set_pixel(6, 3, brightOrange)
  627.     @autumn_leaf_bitmaps[2].set_pixel(4, 4, paleOrange)
  628.     @autumn_leaf_bitmaps[2].set_pixel(5, 4, brightOrange)
  629.     @autumn_leaf_bitmaps[2].set_pixel(6, 4, orangeBrown)
  630.     @autumn_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, paleOrange)
  631.     @autumn_leaf_bitmaps[2].set_pixel(4, 5, brightOrange)
  632.     @autumn_leaf_bitmaps[2].set_pixel(5, 5, orangeBrown)
  633.     @autumn_leaf_bitmaps[2].set_pixel(1, 6, paleOrange)
  634.     @autumn_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightOrange)
  635.     @autumn_leaf_bitmaps[2].set_pixel(4, 6, orangeBrown)
  636.     @autumn_leaf_bitmaps[2].set_pixel(0, 7, paleOrange)
  637.     @autumn_leaf_bitmaps[2].set_pixel(1, 7, brightOrange)
  638.     @autumn_leaf_bitmaps[2].set_pixel(2, 7, orangeBrown)
  639.    
  640.     # draw the 4th of the leaf1 bitmaps
  641.     @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  642.     @autumn_leaf_bitmaps[3].set_pixel(3, 0, brightOrange)
  643.     @autumn_leaf_bitmaps[3].set_pixel(7, 0, brightOrange)
  644.     @autumn_leaf_bitmaps[3].set_pixel(3, 1, orangeBrown)
  645.     @autumn_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  646.     @autumn_leaf_bitmaps[3].set_pixel(6, 1, brightOrange)
  647.     @autumn_leaf_bitmaps[3].set_pixel(0, 2, paleOrange)
  648.     @autumn_leaf_bitmaps[3].set_pixel(1, 2, brightOrange)
  649.     @autumn_leaf_bitmaps[3].set_pixel(2, 2, orangeBrown)
  650.     @autumn_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  651.     @autumn_leaf_bitmaps[3].set_pixel(4, 2, orangeBrown)
  652.     @autumn_leaf_bitmaps[3].set_pixel(5, 2, brightOrange)
  653.     @autumn_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, orangeBrown)
  654.     @autumn_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightOrange)
  655.     @autumn_leaf_bitmaps[3].set_pixel(6, 3, orangeBrown)
  656.     @autumn_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  657.     @autumn_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightOrange)
  658.     @autumn_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  659.     @autumn_leaf_bitmaps[3].set_pixel(7, 4, darkBrown)
  660.     @autumn_leaf_bitmaps[3].set_pixel(1, 5, orangeBrown)
  661.     @autumn_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightOrange)
  662.     @autumn_leaf_bitmaps[3].set_pixel(4, 5, orangeBrown)
  663.     @autumn_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  664.     @autumn_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightOrange)
  665.     @autumn_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  666.     @autumn_leaf_bitmaps[3].set_pixel(0, 7, brightOrange)
  667.     @autumn_leaf_bitmaps[3].set_pixel(5, 7, darkBrown)
  668.    
  669.     @green_leaf_bitmaps = []
  670.     darkGreen  = Color.new(62, 76, 31, 255)
  671.     midGreen   = Color.new(76, 91, 43, 255)
  672.     khaki      = Color.new(105, 114, 66, 255)
  673.     lightGreen = Color.new(128, 136, 88, 255)
  674.     mint       = Color.new(146, 154, 106, 255)
  675.    
  676.     # 1st leaf bitmap
  677.     @green_leaf_bitmaps[0] = Bitmap.new(8, 8)
  678.     @green_leaf_bitmaps[0].set_pixel(1, 0, darkGreen)
  679.     @green_leaf_bitmaps[0].set_pixel(1, 1, midGreen)
  680.     @green_leaf_bitmaps[0].set_pixel(2, 1, darkGreen)
  681.     @green_leaf_bitmaps[0].set_pixel(2, 2, khaki)
  682.     @green_leaf_bitmaps[0].set_pixel(3, 2, darkGreen)
  683.     @green_leaf_bitmaps[0].set_pixel(4, 2, khaki)
  684.     @green_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midGreen)
  685.     @green_leaf_bitmaps[0].set_pixel(5, 3, khaki)
  686.     @green_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midGreen)
  687.     @green_leaf_bitmaps[0].set_pixel(4, 4, darkGreen)
  688.     @green_leaf_bitmaps[0].set_pixel(5, 4, lightGreen)
  689.     @green_leaf_bitmaps[0].set_pixel(6, 4, khaki)
  690.     @green_leaf_bitmaps[0].set_pixel(3, 5, midGreen)
  691.     @green_leaf_bitmaps[0].set_pixel(4, 5, darkGreen)
  692.     @green_leaf_bitmaps[0].set_pixel(5, 5, khaki)
  693.     @green_leaf_bitmaps[0].set_pixel(6, 5, lightGreen)
  694.     @green_leaf_bitmaps[0].set_pixel(4, 6, midGreen)
  695.     @green_leaf_bitmaps[0].set_pixel(5, 6, darkGreen)
  696.     @green_leaf_bitmaps[0].set_pixel(6, 6, lightGreen)
  697.     @green_leaf_bitmaps[0].set_pixel(6, 7, khaki)
  698.    
  699.     # 2nd leaf bitmap
  700.     @green_leaf_bitmaps[1] = Bitmap.new(8, 8)
  701.     @green_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midGreen)
  702.     @green_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, khaki)
  703.     @green_leaf_bitmaps[1].set_pixel(4, 2, lightGreen)
  704.     @green_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkGreen)
  705.     @green_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightGreen)
  706.     @green_leaf_bitmaps[1].set_pixel(2, 4, midGreen)
  707.     @green_leaf_bitmaps[1].set_pixel(3, 4, darkGreen)
  708.     @green_leaf_bitmaps[1].set_pixel(4, 4, khaki)
  709.     @green_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightGreen)
  710.     @green_leaf_bitmaps[1].set_pixel(3, 5, midGreen)
  711.     @green_leaf_bitmaps[1].set_pixel(4, 5, darkGreen)
  712.     @green_leaf_bitmaps[1].set_pixel(5, 5, khaki)
  713.     @green_leaf_bitmaps[1].set_pixel(6, 5, lightGreen)
  714.     @green_leaf_bitmaps[1].set_pixel(5, 6, darkGreen)
  715.     @green_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, khaki)
  716.    
  717.     # 3rd leaf bitmap
  718.     @green_leaf_bitmaps[2] = Bitmap.new(8, 8)
  719.     @green_leaf_bitmaps[2].set_pixel(1, 1, darkGreen)
  720.     @green_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midGreen)
  721.     @green_leaf_bitmaps[2].set_pixel(2, 3, midGreen)
  722.     @green_leaf_bitmaps[2].set_pixel(3, 3, darkGreen)
  723.     @green_leaf_bitmaps[2].set_pixel(4, 3, midGreen)
  724.     @green_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midGreen)
  725.     @green_leaf_bitmaps[2].set_pixel(4, 4, darkGreen)
  726.     @green_leaf_bitmaps[2].set_pixel(5, 4, lightGreen)
  727.     @green_leaf_bitmaps[2].set_pixel(3, 5, midGreen)
  728.     @green_leaf_bitmaps[2].set_pixel(4, 5, darkGreen)
  729.     @green_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, khaki)
  730.     @green_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midGreen)
  731.     @green_leaf_bitmaps[2].set_pixel(6, 6, lightGreen)
  732.     @green_leaf_bitmaps[2].set_pixel(6, 7, khaki)
  733.    
  734.     # 4th leaf bitmap
  735.     @green_leaf_bitmaps[3] = Bitmap.new(8, 8)
  736.     @green_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkGreen)
  737.     @green_leaf_bitmaps[3].set_pixel(1, 4, midGreen)
  738.     @green_leaf_bitmaps[3].set_pixel(2, 4, khaki)
  739.     @green_leaf_bitmaps[3].set_pixel(3, 4, lightGreen)
  740.     @green_leaf_bitmaps[3].set_pixel(4, 4, darkGreen)
  741.     @green_leaf_bitmaps[3].set_pixel(7, 4, midGreen)
  742.     @green_leaf_bitmaps[3].set_pixel(1, 5, darkGreen)
  743.     @green_leaf_bitmaps[3].set_pixel(2, 5, midGreen)
  744.     @green_leaf_bitmaps[3].set_pixel(3, 5, lightGreen)
  745.     @green_leaf_bitmaps[3].set_pixel(4, 5, mint)
  746.     @green_leaf_bitmaps[3].set_pixel(5, 5, lightGreen)
  747.     @green_leaf_bitmaps[3].set_pixel(6, 5, khaki)
  748.     @green_leaf_bitmaps[3].set_pixel(7, 5, midGreen)
  749.     @green_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midGreen)
  750.     @green_leaf_bitmaps[3].set_pixel(4, 6, lightGreen)
  751.     @green_leaf_bitmaps[3].set_pixel(5, 6, khaki)
  752.     @green_leaf_bitmaps[3].set_pixel(6, 6, midGreen)
  753.    
  754.     # 5th leaf bitmap
  755.     @green_leaf_bitmaps[4] = Bitmap.new(8, 8)
  756.     @green_leaf_bitmaps[4].set_pixel(6, 2, midGreen)
  757.     @green_leaf_bitmaps[4].set_pixel(7, 2, darkGreen)
  758.     @green_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midGreen)
  759.     @green_leaf_bitmaps[4].set_pixel(6, 3, khaki)
  760.     @green_leaf_bitmaps[4].set_pixel(2, 4, darkGreen)
  761.     @green_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, khaki)
  762.     @green_leaf_bitmaps[4].set_pixel(5, 4, lightGreen)
  763.     @green_leaf_bitmaps[4].set_pixel(6, 4, khaki)
  764.     @green_leaf_bitmaps[4].set_pixel(1, 5, midGreen)
  765.     @green_leaf_bitmaps[4].set_pixel(2, 5, khaki)
  766.     @green_leaf_bitmaps[4].set_pixel(3, 5, lightGreen)
  767.     @green_leaf_bitmaps[4].set_pixel(4, 5, mint)
  768.     @green_leaf_bitmaps[4].set_pixel(5, 5, midGreen)
  769.     @green_leaf_bitmaps[4].set_pixel(2, 6, darkGreen)
  770.     @green_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midGreen)
  771.    
  772.     # 6th leaf bitmap
  773.     @green_leaf_bitmaps[5] = Bitmap.new(8, 8)
  774.     @green_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midGreen)
  775.     @green_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midGreen)
  776.     @green_leaf_bitmaps[5].set_pixel(6, 3, khaki)
  777.     @green_leaf_bitmaps[5].set_pixel(3, 4, midGreen)
  778.     @green_leaf_bitmaps[5].set_pixel(4, 4, khaki)
  779.     @green_leaf_bitmaps[5].set_pixel(5, 4, lightGreen)
  780.     @green_leaf_bitmaps[5].set_pixel(6, 4, mint)
  781.     @green_leaf_bitmaps[5].set_pixel(1, 5, midGreen)
  782.     @green_leaf_bitmaps[5].set_pixel(2, 5, khaki)
  783.     @green_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, mint)
  784.     @green_leaf_bitmaps[5].set_pixel(5, 5, lightGreen)
  785.     @green_leaf_bitmaps[5].set_pixel(2, 6, midGreen)
  786.     @green_leaf_bitmaps[5].set_pixel(3, 6, khaki)
  787.     @green_leaf_bitmaps[5].set_pixel(4, 6, lightGreen)
  788.    
  789.     # 7th leaf bitmap
  790.     @green_leaf_bitmaps[6] = Bitmap.new(8, 8)
  791.     @green_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midGreen)
  792.     @green_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midGreen)
  793.     @green_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkGreen)
  794.     @green_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midGreen)
  795.     @green_leaf_bitmaps[6].set_pixel(5, 3, khaki)
  796.     @green_leaf_bitmaps[6].set_pixel(2, 4, midGreen)
  797.     @green_leaf_bitmaps[6].set_pixel(3, 4, khaki)
  798.     @green_leaf_bitmaps[6].set_pixel(4, 4, lightGreen)
  799.     @green_leaf_bitmaps[6].set_pixel(5, 4, midGreen)
  800.     @green_leaf_bitmaps[6].set_pixel(1, 5, midGreen)
  801.     @green_leaf_bitmaps[6].set_pixel(2, 5, khaki)
  802.     @green_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midGreen)
  803.     @green_leaf_bitmaps[6].set_pixel(1, 6, darkGreen)
  804.     @green_leaf_bitmaps[6].set_pixel(2, 6, midGreen)
  805.    
  806.     # 8th leaf bitmap
  807.     @green_leaf_bitmaps[7] = Bitmap.new(8, 8)
  808.     @green_leaf_bitmaps[7].set_pixel(6, 1, midGreen)
  809.     @green_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midGreen)
  810.     @green_leaf_bitmaps[7].set_pixel(3, 3, darkGreen)
  811.     @green_leaf_bitmaps[7].set_pixel(2, 4, darkGreen)
  812.     @green_leaf_bitmaps[7].set_pixel(3, 4, midGreen)
  813.     @green_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, khaki)
  814.     @green_leaf_bitmaps[7].set_pixel(1, 5, darkGreen)
  815.     @green_leaf_bitmaps[7].set_pixel(2, 5, midGreen)
  816.     @green_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightGreen)
  817.     @green_leaf_bitmaps[7].set_pixel(2, 6, midGreen)
  818.     @green_leaf_bitmaps[7].set_pixel(3, 6, lightGreen)
  819.    
  820.     # 9th leaf bitmap
  821.     @green_leaf_bitmaps[8] = Bitmap.new(8, 8)
  822.     @green_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midGreen)
  823.     @green_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midGreen)
  824.     @green_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkGreen)
  825.     @green_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midGreen)
  826.     @green_leaf_bitmaps[8].set_pixel(5, 3, khaki)
  827.     @green_leaf_bitmaps[8].set_pixel(2, 4, midGreen)
  828.     @green_leaf_bitmaps[8].set_pixel(3, 4, khaki)
  829.     @green_leaf_bitmaps[8].set_pixel(4, 4, lightGreen)
  830.     @green_leaf_bitmaps[8].set_pixel(5, 4, midGreen)
  831.     @green_leaf_bitmaps[8].set_pixel(1, 5, midGreen)
  832.     @green_leaf_bitmaps[8].set_pixel(2, 5, khaki)
  833.     @green_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midGreen)
  834.     @green_leaf_bitmaps[8].set_pixel(1, 6, darkGreen)
  835.     @green_leaf_bitmaps[8].set_pixel(2, 6, midGreen)
  836.    
  837.     # 10th leaf bitmap
  838.     @green_leaf_bitmaps[9] = Bitmap.new(8, 8)
  839.     @green_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midGreen)
  840.     @green_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midGreen)
  841.     @green_leaf_bitmaps[9].set_pixel(6, 3, khaki)
  842.     @green_leaf_bitmaps[9].set_pixel(3, 4, midGreen)
  843.     @green_leaf_bitmaps[9].set_pixel(4, 4, khaki)
  844.     @green_leaf_bitmaps[9].set_pixel(5, 4, lightGreen)
  845.     @green_leaf_bitmaps[9].set_pixel(6, 4, mint)
  846.     @green_leaf_bitmaps[9].set_pixel(1, 5, midGreen)
  847.     @green_leaf_bitmaps[9].set_pixel(2, 5, khaki)
  848.     @green_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, mint)
  849.     @green_leaf_bitmaps[9].set_pixel(5, 5, lightGreen)
  850.     @green_leaf_bitmaps[9].set_pixel(2, 6, midGreen)
  851.     @green_leaf_bitmaps[9].set_pixel(3, 6, khaki)
  852.     @green_leaf_bitmaps[9].set_pixel(4, 6, lightGreen)
  853.    
  854.     # 11th leaf bitmap
  855.     @green_leaf_bitmaps[10] = Bitmap.new(8, 8)
  856.     @green_leaf_bitmaps[10].set_pixel(6, 2, midGreen)
  857.     @green_leaf_bitmaps[10].set_pixel(7, 2, darkGreen)
  858.     @green_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midGreen)
  859.     @green_leaf_bitmaps[10].set_pixel(6, 3, khaki)
  860.     @green_leaf_bitmaps[10].set_pixel(2, 4, darkGreen)
  861.     @green_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, khaki)
  862.     @green_leaf_bitmaps[10].set_pixel(5, 4, lightGreen)
  863.     @green_leaf_bitmaps[10].set_pixel(6, 4, khaki)
  864.     @green_leaf_bitmaps[10].set_pixel(1, 5, midGreen)
  865.     @green_leaf_bitmaps[10].set_pixel(2, 5, khaki)
  866.     @green_leaf_bitmaps[10].set_pixel(3, 5, lightGreen)
  867.     @green_leaf_bitmaps[10].set_pixel(4, 5, mint)
  868.     @green_leaf_bitmaps[10].set_pixel(5, 5, midGreen)
  869.     @green_leaf_bitmaps[10].set_pixel(2, 6, darkGreen)
  870.     @green_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midGreen)
  871.    
  872.     # 12th leaf bitmap
  873.     @green_leaf_bitmaps[11] = Bitmap.new(8, 8)
  874.     @green_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkGreen)
  875.     @green_leaf_bitmaps[11].set_pixel(1, 4, midGreen)
  876.     @green_leaf_bitmaps[11].set_pixel(2, 4, khaki)
  877.     @green_leaf_bitmaps[11].set_pixel(3, 4, lightGreen)
  878.     @green_leaf_bitmaps[11].set_pixel(4, 4, darkGreen)
  879.     @green_leaf_bitmaps[11].set_pixel(7, 4, midGreen)
  880.     @green_leaf_bitmaps[11].set_pixel(1, 5, darkGreen)
  881.     @green_leaf_bitmaps[11].set_pixel(2, 5, midGreen)
  882.     @green_leaf_bitmaps[11].set_pixel(3, 5, lightGreen)
  883.     @green_leaf_bitmaps[11].set_pixel(4, 5, mint)
  884.     @green_leaf_bitmaps[11].set_pixel(5, 5, lightGreen)
  885.     @green_leaf_bitmaps[11].set_pixel(6, 5, khaki)
  886.     @green_leaf_bitmaps[11].set_pixel(7, 5, midGreen)
  887.     @green_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midGreen)
  888.     @green_leaf_bitmaps[11].set_pixel(4, 6, lightGreen)
  889.     @green_leaf_bitmaps[11].set_pixel(5, 6, khaki)
  890.     @green_leaf_bitmaps[11].set_pixel(6, 6, midGreen)
  891.    
  892.     # 13th leaf bitmap
  893.     @green_leaf_bitmaps[12] = Bitmap.new(8, 8)
  894.     @green_leaf_bitmaps[12].set_pixel(1, 1, darkGreen)
  895.     @green_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midGreen)
  896.     @green_leaf_bitmaps[12].set_pixel(2, 3, midGreen)
  897.     @green_leaf_bitmaps[12].set_pixel(3, 3, darkGreen)
  898.     @green_leaf_bitmaps[12].set_pixel(4, 3, midGreen)
  899.     @green_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midGreen)
  900.     @green_leaf_bitmaps[12].set_pixel(4, 4, darkGreen)
  901.     @green_leaf_bitmaps[12].set_pixel(5, 4, lightGreen)
  902.     @green_leaf_bitmaps[12].set_pixel(3, 5, midGreen)
  903.     @green_leaf_bitmaps[12].set_pixel(4, 5, darkGreen)
  904.     @green_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, khaki)
  905.     @green_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midGreen)
  906.     @green_leaf_bitmaps[12].set_pixel(6, 6, lightGreen)
  907.     @green_leaf_bitmaps[12].set_pixel(6, 7, khaki)
  908.    
  909.     @rose_bitmaps = []
  910.     brightRed = Color.new(255, 0, 0, 255)
  911.     midRed    = Color.new(179, 17, 17, 255)
  912.     darkRed   = Color.new(141, 9, 9, 255)
  913.    
  914.     # 1st rose petal bitmap
  915.     @rose_bitmaps[0] = Bitmap.new(3, 3)
  916.     @rose_bitmaps[0].fill_rect(1, 0, 2, 1, brightRed)
  917.     @rose_bitmaps[0].fill_rect(0, 1, 1, 2, brightRed)
  918.     @rose_bitmaps[0].fill_rect(1, 1, 2, 2, midRed)
  919.     @rose_bitmaps[0].set_pixel(2, 2, darkRed)
  920.    
  921.     # 2nd rose petal bitmap
  922.     @rose_bitmaps[1] = Bitmap.new(3, 3)
  923.     @rose_bitmaps[1].set_pixel(0, 1, midRed)
  924.     @rose_bitmaps[1].set_pixel(1, 1, brightRed)
  925.     @rose_bitmaps[1].fill_rect(1, 2, 1, 2, midRed)
  926.    
  927.     @feather_bitmaps = []
  928.     white = Color.new(255, 255, 255, 255)
  929.    
  930.     # 1st feather bitmap
  931.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  932.     @feather_bitmaps[0].set_pixel(0, 2, white)
  933.     @feather_bitmaps[0].set_pixel(1, 2, grey)
  934.     @feather_bitmaps[0].set_pixel(2, 1, grey)
  935.    
  936.     # 2nd feather bitmap
  937.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  938.     @feather_bitmaps[0].set_pixel(0, 0, white)
  939.     @feather_bitmaps[0].set_pixel(0, 1, grey)
  940.     @feather_bitmaps[0].set_pixel(1, 2, grey)
  941.    
  942.     # 3rd feather bitmap
  943.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  944.     @feather_bitmaps[0].set_pixel(2, 0, white)
  945.     @feather_bitmaps[0].set_pixel(1, 0, grey)
  946.     @feather_bitmaps[0].set_pixel(0, 1, grey)
  947.    
  948.     # 4th feather bitmap
  949.     @feather_bitmaps[0] = Bitmap.new(3, 3)
  950.     @feather_bitmaps[0].set_pixel(2, 2, white)
  951.     @feather_bitmaps[0].set_pixel(2, 1, grey)
  952.     @feather_bitmaps[0].set_pixel(1, 0, grey)
  953.    
  954.     @blood_rain_bitmap = Bitmap.new(7, 56)
  955.     for i in 0..6
  956.       @blood_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkRed)
  957.     end
  958.     @blood_rain_splash = Bitmap.new(8, 5)
  959.     @blood_rain_splash.fill_rect(1, 0, 6, 1, darkRed)
  960.     @blood_rain_splash.fill_rect(1, 4, 6, 1, darkRed)
  961.     @blood_rain_splash.fill_rect(0, 1, 1, 3, darkRed)
  962.     @blood_rain_splash.fill_rect(7, 1, 1, 3, darkRed)
  963.    
  964.     @sparkle_bitmaps = []
  965.    
  966.     lightBlue = Color.new(181, 244, 255, 255)
  967.     midBlue   = Color.new(126, 197, 235, 255)
  968.     darkBlue  = Color.new(77, 136, 225, 255)
  969.    
  970.     # 1st sparkle bitmap
  971.     @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  972.     @sparkle_bitmaps[0].set_pixel(3, 3, darkBlue)
  973.    
  974.     # 2nd sparkle bitmap
  975.     @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  976.     @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, darkBlue)
  977.     @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, darkBlue)
  978.     @sparkle_bitmaps[1].set_pixel(3, 3, midBlue)
  979.    
  980.     # 3rd sparkle bitmap
  981.     @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  982.     @sparkle_bitmaps[2].set_pixel(1, 1, darkBlue)
  983.     @sparkle_bitmaps[2].set_pixel(5, 1, darkBlue)
  984.     @sparkle_bitmaps[2].set_pixel(2, 2, midBlue)
  985.     @sparkle_bitmaps[2].set_pixel(4, 2, midBlue)
  986.     @sparkle_bitmaps[2].set_pixel(3, 3, lightBlue)
  987.     @sparkle_bitmaps[2].set_pixel(2, 4, midBlue)
  988.     @sparkle_bitmaps[2].set_pixel(4, 4, midBlue)
  989.     @sparkle_bitmaps[2].set_pixel(1, 5, darkBlue)
  990.     @sparkle_bitmaps[2].set_pixel(5, 5, darkBlue)
  991.    
  992.     # 4th sparkle bitmap
  993.     @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  994.     @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, darkBlue)
  995.     @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, darkBlue)
  996.     @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, midBlue)
  997.     @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, midBlue)
  998.     @sparkle_bitmaps[3].set_pixel(3, 3, lightBlue)
  999.    
  1000.     # 5th sparkle bitmap
  1001.     @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  1002.     @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, midBlue)
  1003.     @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, darkBlue)
  1004.     @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, darkBlue)
  1005.     @sparkle_bitmaps[4].set_pixel(3, 3, lightBlue)
  1006.     @sparkle_bitmaps[4].set_pixel(1, 1, darkBlue)
  1007.     @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  1008.     @sparkle_bitmaps[4].set_pixel(1, 5, darkBlue)
  1009.     @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  1010.    
  1011.     # 6th sparkle bitmap
  1012.     @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  1013.     @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, darkBlue)
  1014.     @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, darkBlue)
  1015.     @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, midBlue)
  1016.     @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, midBlue)
  1017.     @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, midBlue)
  1018.     @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, lightBlue)
  1019.     @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, lightBlue)
  1020.     @sparkle_bitmaps[5].set_pixel(3, 3, white)
  1021.    
  1022.     # 7th sparkle bitmap
  1023.     @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  1024.     @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, midBlue)
  1025.     @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, midBlue)
  1026.     @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, darkBlue)
  1027.     @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, darkBlue)
  1028.     @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, lightBlue)
  1029.     @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, midBlue)
  1030.     @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, midBlue)
  1031.     @sparkle_bitmaps[6].set_pixel(3, 3, white)
  1032.    
  1033.     # Meteor bitmap
  1034.     @meteor_bitmap = Bitmap.new(14, 12)
  1035.     @meteor_bitmap.fill_rect(0, 8, 5, 4, paleOrange)
  1036.     @meteor_bitmap.fill_rect(1, 7, 6, 4, paleOrange)
  1037.     @meteor_bitmap.set_pixel(7, 8, paleOrange)
  1038.     @meteor_bitmap.fill_rect(1, 8, 2, 2, brightOrange)
  1039.     @meteor_bitmap.set_pixel(2, 7, brightOrange)
  1040.     @meteor_bitmap.fill_rect(3, 6, 2, 1, brightOrange)
  1041.     @meteor_bitmap.set_pixel(3, 8, brightOrange)
  1042.     @meteor_bitmap.set_pixel(3, 10, brightOrange)
  1043.     @meteor_bitmap.set_pixel(4, 9, brightOrange)
  1044.     @meteor_bitmap.fill_rect(5, 5, 1, 5, brightOrange)
  1045.     @meteor_bitmap.fill_rect(6, 4, 1, 5, brightOrange)
  1046.     @meteor_bitmap.fill_rect(7, 3, 1, 5, brightOrange)
  1047.     @meteor_bitmap.fill_rect(8, 6, 1, 2, brightOrange)
  1048.     @meteor_bitmap.set_pixel(9, 5, brightOrange)
  1049.     @meteor_bitmap.set_pixel(3, 8, midRed)
  1050.     @meteor_bitmap.fill_rect(4, 7, 1, 2, midRed)
  1051.     @meteor_bitmap.set_pixel(4, 5, midRed)
  1052.     @meteor_bitmap.set_pixel(5, 4, midRed)
  1053.     @meteor_bitmap.set_pixel(5, 6, midRed)
  1054.     @meteor_bitmap.set_pixel(6, 5, midRed)
  1055.     @meteor_bitmap.set_pixel(6, 7, midRed)
  1056.     @meteor_bitmap.fill_rect(7, 4, 1, 3, midRed)
  1057.     @meteor_bitmap.fill_rect(8, 3, 1, 3, midRed)
  1058.     @meteor_bitmap.fill_rect(9, 2, 1, 3, midRed)
  1059.     @meteor_bitmap.fill_rect(10, 1, 1, 3, midRed)
  1060.     @meteor_bitmap.fill_rect(11, 0, 1, 3, midRed)
  1061.     @meteor_bitmap.fill_rect(12, 0, 1, 2, midRed)
  1062.     @meteor_bitmap.set_pixel(13, 0, midRed)
  1063.    
  1064.     # impact bitmap
  1065.     @impact_bitmap = Bitmap.new(22, 11)
  1066.     @impact_bitmap.fill_rect(0, 5, 1, 2, brightOrange)
  1067.     @impact_bitmap.set_pixel(1, 4, brightOrange)
  1068.     @impact_bitmap.set_pixel(1, 6, brightOrange)
  1069.     @impact_bitmap.set_pixel(2, 3, brightOrange)
  1070.     @impact_bitmap.set_pixel(2, 7, brightOrange)
  1071.     @impact_bitmap.set_pixel(3, 2, midRed)
  1072.     @impact_bitmap.set_pixel(3, 7, midRed)
  1073.     @impact_bitmap.set_pixel(4, 2, brightOrange)
  1074.     @impact_bitmap.set_pixel(4, 8, brightOrange)
  1075.     @impact_bitmap.set_pixel(5, 2, midRed)
  1076.     @impact_bitmap.fill_rect(5, 8, 3, 1, brightOrange)
  1077.     @impact_bitmap.set_pixel(6, 1, midRed)
  1078.     @impact_bitmap.fill_rect(7, 1, 8, 1, brightOrange)
  1079.     @impact_bitmap.fill_rect(7, 9, 8, 1, midRed)
  1080.    
  1081.    
  1082.     # Ash bitmaps
  1083.     @ash_bitmaps = []
  1084.     @ash_bitmaps[0] = Bitmap.new(3, 3)
  1085.     @ash_bitmaps[0].fill_rect(0, 1, 1, 3, lightGrey)
  1086.     @ash_bitmaps[0].fill_rect(1, 0, 3, 1, lightGrey)
  1087.     @ash_bitmaps[0].set_pixel(1, 1, white)
  1088.     @ash_bitmaps[1] = Bitmap.new(3, 3)
  1089.     @ash_bitmaps[1].fill_rect(0, 1, 1, 3, grey)
  1090.     @ash_bitmaps[1].fill_rect(1, 0, 3, 1, grey)
  1091.     @ash_bitmaps[1].set_pixel(1, 1, lightGrey)
  1092.    
  1093.     # Bubble bitmaps
  1094.     @bubble_bitmaps = []
  1095.     darkBlue  = Color.new(77, 136, 225, 160)
  1096.     aqua = Color.new(197, 253, 254, 160)
  1097.     lavender = Color.new(225, 190, 244, 160)
  1098.    
  1099.     # first bubble bitmap
  1100.     @bubble_bitmaps[0] = Bitmap.new(24, 24)
  1101.     @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, darkBlue)
  1102.     @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, darkBlue)
  1103.     @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, darkBlue)
  1104.     @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, darkBlue)
  1105.     @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, darkBlue)
  1106.     @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, darkBlue)
  1107.     @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, darkBlue)
  1108.     @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, darkBlue)
  1109.     @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, aqua)
  1110.     @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, aqua)
  1111.     @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, aqua)
  1112.     @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, aqua)
  1113.     @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, aqua)
  1114.     @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, aqua)
  1115.     @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, lavender)
  1116.     @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, lavender)
  1117.     @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, lavender)
  1118.     @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, lavender)
  1119.     @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, lavender)
  1120.     @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, lavender)
  1121.     @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, lavender)
  1122.     @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, white)
  1123.     @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, white)
  1124.     @bubble_bitmaps[0].set_pixel(17, 6, white)
  1125.    
  1126.     # second bubble bitmap
  1127.     @bubble_bitmaps[1] = Bitmap.new(14, 15)
  1128.     @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, darkBlue)
  1129.     @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, darkBlue)
  1130.     @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, darkBlue)
  1131.     @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, darkBlue)
  1132.     @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, darkBlue)
  1133.     @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  1134.     @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, aqua)
  1135.     @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, aqua)
  1136.     @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, aqua)
  1137.     @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  1138.     @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, lavender)
  1139.     @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, lavender)
  1140.     @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, lavender)
  1141.     @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, white)
  1142.     @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, white)
  1143.     @bubble_bitmaps[1].set_pixel(7, 4, white)
  1144.     @bubble_bitmaps[1].set_pixel(8, 5, white)
  1145.    
  1146.     # Other option for bubbles
  1147.     @bubble2_bitmaps = Array.new
  1148.     darkSteelGray = Color.new(145, 150, 155, 160)
  1149.     midSteelGray = Color.new(180, 180, 185, 160)
  1150.     lightSteelGray = Color.new(225, 225, 235, 160)
  1151.     steelBlue = Color.new(145, 145, 165, 160)
  1152.     lightSteelBlue = Color.new(165, 170, 180, 160)
  1153.     transparentWhite = Color.new(255, 255, 255, 160)
  1154.    
  1155.     # first bubble 2 bitmap
  1156.     @bubble2_bitmaps[0] = Bitmap.new(6, 6)
  1157.     @bubble2_bitmaps[0].fill_rect(0, 0, 6, 6, darkSteelGray)
  1158.     @bubble2_bitmaps[0].fill_rect(0, 2, 6, 2, midSteelGray)
  1159.     @bubble2_bitmaps[0].fill_rect(2, 0, 2, 6, midSteelGray)
  1160.     @bubble2_bitmaps[0].fill_rect(2, 2, 2, 2, lightSteelGray)
  1161.    
  1162.     # second bubble 2 bitmap
  1163.     @bubble2_bitmaps[1] = Bitmap.new(8, 8)
  1164.     @bubble2_bitmaps[1].fill_rect(0, 2, 2, 4, steelBlue)
  1165.     @bubble2_bitmaps[1].fill_rect(2, 0, 4, 2, darkSteelGray)
  1166.     @bubble2_bitmaps[1].fill_rect(6, 2, 2, 2, darkSteelGray)
  1167.     @bubble2_bitmaps[1].fill_rect(2, 6, 2, 2, darkSteelGray)
  1168.     @bubble2_bitmaps[1].fill_rect(6, 4, 2, 2, midSteelGray)
  1169.     @bubble2_bitmaps[1].fill_rect(4, 6, 2, 2, midSteelGray)
  1170.     @bubble2_bitmaps[1].fill_rect(4, 4, 2, 2, lightSteelBlue)
  1171.     @bubble2_bitmaps[1].fill_rect(2, 4, 2, 2, lightSteelGray)
  1172.     @bubble2_bitmaps[1].fill_rect(4, 2, 2, 2, lightSteelGray)
  1173.     @bubble2_bitmaps[1].fill_rect(2, 2, 2, 2, transparentWhite)
  1174.    
  1175.     # third bubble 2 bitmap
  1176.     @bubble2_bitmaps[2] = Bitmap.new(8, 10)
  1177.     @bubble2_bitmaps[2].fill_rect(8, 2, 2, 4, steelBlue)
  1178.     @bubble2_bitmaps[2].fill_rect(2, 0, 8, 2, darkSteelGray)
  1179.     @bubble2_bitmaps[2].fill_rect(2, 6, 8, 2, darkSteelGray)
  1180.     @bubble2_bitmaps[2].fill_rect(4, 0, 2, 2, midSteelGray)
  1181.     @bubble2_bitmaps[2].fill_rect(4, 6, 2, 2, midSteelGray)
  1182.     @bubble2_bitmaps[2].fill_rect(0, 2, 2, 2, midSteelGray)
  1183.     @bubble2_bitmaps[2].fill_rect(0, 4, 2, 2, lightSteelBlue)
  1184.     @bubble2_bitmaps[2].fill_rect(2, 2, 6, 4, lightSteelGray)
  1185.     @bubble2_bitmaps[2].fill_rect(2, 2, 4, 2, transparentWhite)
  1186.     @bubble2_bitmaps[2].fill_rect(4, 4, 2, 2, transparentWhite)
  1187.    
  1188.     # fourth bubble 2 bitmap
  1189.     @bubble2_bitmaps[3] = Bitmap.new(14, 14)
  1190.     @bubble2_bitmaps[3].fill_rect(4, 0, 4, 2, steelBlue)
  1191.     @bubble2_bitmaps[3].fill_rect(0, 4, 2, 4, steelBlue)
  1192.     @bubble2_bitmaps[3].fill_rect(12, 4, 2, 4, steelBlue)
  1193.     @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  1194.     @bubble2_bitmaps[3].fill_rect(0, 6, 2, 2, darkSteelGray)
  1195.     @bubble2_bitmaps[3].fill_rect(12, 6, 2, 2, darkSteelGray)
  1196.     @bubble2_bitmaps[3].fill_rect(4, 12, 6, 2, darkSteelGray)
  1197.     @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  1198.     @bubble2_bitmaps[3].fill_rect(2, 2, 10, 10, midSteelGray)
  1199.     @bubble2_bitmaps[3].fill_rect(6, 12, 2, 2, midSteelGray)
  1200.     @bubble2_bitmaps[3].fill_rect(2, 4, 10, 6, lightSteelGray)
  1201.     @bubble2_bitmaps[3].fill_rect(4, 2, 2, 2, lightSteelGray)
  1202.     @bubble2_bitmaps[3].fill_rect(6, 10, 4, 2, lightSteelGray)
  1203.     @bubble2_bitmaps[3].fill_rect(6, 4, 2, 2, transparentWhite)
  1204.     @bubble2_bitmaps[3].fill_rect(4, 6, 2, 2, transparentWhite)
  1205.    
  1206.     @user_bitmaps = []
  1207.     update_user_defined
  1208.   end
  1209.   
  1210.   def update_user_defined
  1211.     for image in @user_bitmaps
  1212.       image.dispose
  1213.     end
  1214.    
  1215.     #user-defined bitmaps
  1216.     for name in $WEATHER_IMAGES
  1217.       @user_bitmaps.push(RPG::Cache.picture(name))
  1218.     end
  1219.     for sprite in @sprites
  1220.       sprite.bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  1221.     end
  1222.   end
  1223. end
复制代码
截图

点评

从截图上没看出来有什么效果,囧。  发表于 2012-4-16 13:01
对于这个脚本的作用如果有一些必要的说明就好了~  发表于 2012-4-16 13:00

评分

参与人数 1星屑 +40 收起 理由
无双sxa + 40 感谢分享:)

查看全部评分


                 无从有中来,有从无中生。

Lv1.梦旅人

派大星

梦石
0
星屑
195
在线时间
2133 小时
注册时间
2011-9-18
帖子
2652
2
发表于 2012-4-16 18:15:06 | 只看该作者
本帖最后由 无双sxa 于 2012-4-16 19:23 编辑

偶老麻烦别人也不是那么回事,还是趁自己有空试试就ok了,别以后感到抱怨和遗憾,小安总是愚钝的,原来扩张意思是可以显示各种天气。我这图片不行,但这个脚本的实际效果只有自己去实践才知道,所以大家别吐槽这系统不好,应该吐槽我。

点评

这 雨怎么是棕红色的啊?没有白色的吗?  发表于 2014-1-10 12:27
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2816
在线时间
1051 小时
注册时间
2011-8-2
帖子
300
3
发表于 2012-4-16 19:13:47 | 只看该作者
本帖最后由 小凡哥 于 2012-4-16 19:14 编辑
无双sxa 发表于 2012-4-16 18:15
偶老麻烦别人也不是那么回事,还是趁自己有空试试就ok了,别以后感到抱怨和遗憾,小安总是愚钝的,原来扩张 ...


还是看不懂
指的是图

点评

那么用法应该是是会了,图是天气效果.血雨和雪,我这图效果不好而已.  发表于 2012-4-16 19:22
就是按照楼主的说明输入那个数字,就会有相应的天气的效果,不行待会我发个图上来行不:)  发表于 2012-4-16 19:14
为方便新人,建议大家一同换上此签名(当然我没指最下面的宣传……)
RM各版本下载链接
RMXP:http://pan.baidu.com/s/1qWLZjIW
RMVX:http://pan.baidu.com/s/1sjBhM2L
以上链接由妖精蕾贝卡 提供
--------------------------------------------------------------------------------
RMVA:http://pan.baidu.com/s/1jG1mDUY
以上链接由VIPArcher 提供
——————————————————————————
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
8 小时
注册时间
2006-11-19
帖子
35
4
发表于 2013-7-20 17:45:07 | 只看该作者
太棒! 一直很喜欢天气效果,可以丰富游戏画面感! 感谢楼主
某天一觉睡醒,有了一种错觉:我会不会已经死了,只是自己还不知道,以为还活着... 好奇怪哦~~ 有些人我而言可以说只是一堆网络数据! 因为基本上没交流过!只是每天都会看到他们的发表的内容!但是,当我看不见他们时,我居然会莫名的很想念他们,甚至会猜想他们为什么会不在.... 你……你……为什么不等我啊~~? 就这么走了
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
125
在线时间
62 小时
注册时间
2013-12-19
帖子
187
5
发表于 2014-1-9 14:39:27 | 只看该作者
哇~好不错啊!谢谢LZ分享

点评

那个天气系统雨的颜色是我在脚本里改过的啊,那样效果明显一点,其实那个脚本直接用就好了,当然也可以像我那样自己改颜色的  发表于 2014-1-10 12:44
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1439
在线时间
1592 小时
注册时间
2010-11-6
帖子
3193

贵宾

6
发表于 2014-1-9 19:43:07 手机端发表。 | 只看该作者
本帖最后由 yychchhh 于 2014-1-9 19:52 编辑

我错了。。。。。。。。
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
125
在线时间
62 小时
注册时间
2013-12-19
帖子
187
7
发表于 2014-1-10 12:25:03 | 只看该作者
本帖最后由 My笨笨 于 2014-1-9 21:28 编辑

喂喂LZ~有va脚本吗?vx的脚本va可以用吗?@我的米呀  

点评

这个~不行 不过谢谢lz我很喜欢lz原创的  发表于 2014-1-12 17:23
我不用va 所以不是太清楚,目前这个天气脚本没有VA版,但MOG有出过个类似的VA天气脚本,戳这里:http://www.atelier-rgss.com/RGSS/System/ACE_SYS08.html  发表于 2014-1-10 20:04
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-27 06:53

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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