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

Project1

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

[已经过期] 天气脚本的z值如何更改?

[复制链接]

Lv2.观梦者

梦石
0
星屑
324
在线时间
890 小时
注册时间
2009-10-12
帖子
1829
跳转到指定楼层
1
发表于 2014-4-25 09:55:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
用了天气脚本如下,想要让天气显示在图片上面。。在哪里更改z?84行的精灵的z我更改成9999,opacity改成255,visible改成true也无效=~=
RUBY 代码复制
  1. #
  2. # 项目名称:Global Weather System Script 全球天气系统脚本.
  3. # 创建时间: 2009-12-9, 18:53:27
  4. # 项目类型:RGSS Develop template
  5. # 开发工具:Aptana RadRails 1.0
  6. # 源文件名:Global weather system Script.rb
  7. # 版本:1.0
  8. # by Goldencolor .
  9. #  
  10. #==============================================================================
  11. #  ▲Global Weather System Script   全球天气系统脚本.
  12. #------------------------------------------------------------------------------
  13. #
  14. #  by Kitty and Mr.DJ With Goldencolor(GDC)
  15. #  RPGXP适用。
  16. #==============================================================================
  17. # 使用方法:
  18. #     $game_screen.weather(type, power, transition)
  19. # 天气类型(type):
  20. #      1- 雨                                          
  21. #      2- 暴风雨                                       
  22. #      3- 雪                                          
  23. #      4- 冰雹                                             
  24. #      5- 雨+雷+闪电               
  25. #      6- 落下的树叶 (秋天)                           
  26. #      7- 吹制留下 (秋天)
  27. #      8- 摇晃树叶 (秋天)
  28. #      9- 树叶 (绿色的)
  29. #      10- 樱花花瓣(日本)
  30. #      11- 玫瑰花瓣
  31. #      12- 羽毛
  32. #      13- 血雨
  33. #      14- 闪耀
  34. #      15- 自定义(用户)
  35. #      16- 吹制雪
  36. #      17- 流星雨
  37. #      18- 灰烬
  38. #      19- 泡沫
  39. # 天气强度(power):  
  40. #  标准(0..40)  每一点强度等于10个精灵 40=400。超过40以后后果很严重- -!!b
  41. # 过渡帧(Transition):
  42. #   帧数.(0..50)
  43. #
  44. #------------------------------------------------------------------------------
  45. $Goldencolor ={} if $GDCRGSS.nil?
  46. $Goldencolor['Weather'] = true
  47. #==============================================================================
  48. #  用户自定义天气配置:
  49. #==============================================================================
  50. module ConfigWeather
  51.   $WEATHER_UPDATE = false   # $WEATHER_IMAGES图片如果改变,是否更新
  52.   $WEATHER_IMAGES =[]   # 用户自定义天气图片
  53.   $WEATHER_X = 0            # 图像Y方向移动(positive = right, negative = left)
  54.   $WEATHER_Y = 0            # 图像Y方向移动(positive = down, negative = up)
  55.   $WEATHER_FADE = 0         # 褪色(0..255)
  56.   $WEATHER_ANIMATED = false # 是否循环一直自定义图片
  57. end
  58. #定义
  59.  
  60. module RPG
  61.   #==============================================================================
  62.   #  ■ Weather
  63.   #------------------------------------------------------------------------------
  64.   #  处理天气的类。
  65.   #==============================================================================  
  66.   class Weather
  67.     include ConfigWeather
  68.     #--------------------------------------------------------------------------
  69.     # ● 初始化对象
  70.     #--------------------------------------------------------------------------   
  71.     def initialize(viewport = nil)
  72.       @type = 0
  73.       @ox = 0
  74.       @oy = 0
  75.       @count = 0
  76.       @current_pose = []
  77.       @info = []
  78.       @countarray = []
  79.       #创造位图
  80.       make_bitmaps
  81.       #循环精灵
  82.       for i in 1..500
  83.         sprite = Sprite.new(viewport)
  84.         sprite.z = 1000
  85.         sprite.visible = false
  86.         sprite.opacity = 0
  87.         @sprites.push(sprite)
  88.         @current_pose.push(0)
  89.         @info.push(rand(50))
  90.         @countarray.push(rand(15))
  91.       end
  92.     end
  93.     #===========================================================================
  94.     # ● 释放
  95.     #===========================================================================
  96.     def dispose
  97.       for sprite in @sprites
  98.         sprite.dispose
  99.       end
  100.       @rain_bitmap.dispose
  101.       @storm_bitmap.dispose
  102.       @snow_bitmap.dispose
  103.       @hail_bitmap.dispose
  104.       @petal_bitmap.dispose
  105.       @blood_rain_bitmap.dispose
  106.       for image in @autumn_leaf_bitmaps
  107.         image.dispose
  108.       end
  109.       for image in @green_leaf_bitmaps
  110.         image.dispose
  111.       end
  112.       for image in @rose_bitmaps
  113.         image.dispose
  114.       end
  115.       for image in @feather_bitmaps
  116.         image.dispose
  117.       end
  118.       for image in @sparkle_bitmaps
  119.         image.dispose
  120.       end
  121.       for image in @user_bitmaps
  122.         image.dispose
  123.       end
  124.       $WEATHER_UPDATE = true
  125.     end
  126.   #--------------------------------------------------------------------------
  127.   # ● 分歧类型
  128.   #--------------------------------------------------------------------------
  129.     def type=(type)
  130.       return if @type == type
  131.       @type = type
  132.       case @type
  133.         when 1 # 雨
  134.         bitmap = @rain_bitmap
  135.         when 2 # 暴风雨
  136.         bitmap = @storm_bitmap
  137.         when 3 # 雪
  138.         bitmap = @snow_bitmap
  139.         when 4 # 冰雹
  140.         bitmap = @hail_bitmap
  141.         when 5 # 雨+雷+闪电
  142.         bitmap = @rain_bitmap
  143.         when 6 # 落下的树叶 (秋天)
  144.         bitmap = @autumn_leaf_bitmaps[0]
  145.         when 7 # 吹花瓣(秋天)
  146.         bitmap = @autumn_leaf_bitmaps[0]
  147.         when 8 #摇晃树叶 (秋天)
  148.         bitmap = @autumn_leaf_bitmaps[0]
  149.         when 9 #树叶 (绿色的)
  150.         bitmap = @green_leaf_bitmaps[0]
  151.         when 10 # 樱花花瓣(日本)
  152.         bitmap = @petal_bitmap
  153.         when 11 # 玫瑰花瓣
  154.         bitmap = @rose_bitmaps[0]
  155.         when 12 # 羽毛
  156.         bitmap = @feather_bitmaps[0]
  157.         when 13 # 血雨
  158.         bitmap = @blood_rain_bitmap
  159.         when 14 # 闪耀
  160.         bitmap = @sparkle_bitmaps[0]
  161.         when 15 # 自定义(用户)
  162.         bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  163.         when 16 # 吹制雪
  164.         bitmap = @snow_bitmap
  165.         when 17 # 流星雨
  166.         bitmap = @meteor_bitmap
  167.         when 18 # 落下灰
  168.         bitmap = @ash_bitmaps[rand(@ash_bitmaps.size)]
  169.         when 19 # 泡沫
  170.         bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  171.       else
  172.         bitmap = nil
  173.       end
  174.       if @type != 5
  175.         [url=home.php?mod=space&uid=34616]@thunder[/url] = false
  176.       end
  177.       for i in 1..500
  178.         sprite = @sprites[i]
  179.         if sprite != nil
  180.           sprite.visible = (i <= @max)
  181.           if @type == 19
  182.             sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  183.           else
  184.             sprite.bitmap = bitmap
  185.           end
  186.         end
  187.       end
  188.     end
  189.     def ox=(ox)
  190.       return if @ox == ox;
  191.       @ox = ox
  192.       for sprite in @sprites
  193.         sprite.ox = @ox
  194.       end
  195.     end
  196.     def oy=(oy)
  197.       return if @oy == oy;
  198.       @oy = oy
  199.       for sprite in @sprites
  200.         sprite.oy = @oy
  201.       end
  202.     end
  203.     def max=(max)
  204.       return if [url=home.php?mod=space&uid=25307]@Max[/url] == max;
  205.       @max = [[max, 0].max, 500].min
  206.       for i in 1..500
  207.         sprite = @sprites[i]
  208.         if sprite != nil
  209.           sprite.visible = (i <= @max)
  210.         end
  211.       end
  212.     end
  213.     #--------------------------------------------------------------------------
  214.     # ● 刷新
  215.     #--------------------------------------------------------------------------
  216.     def update
  217.       return if @type == 0
  218.       for i in 1..@max
  219.         sprite = @sprites[i]
  220.         if sprite == nil
  221.           break
  222.         end
  223.         if @type == 1 or @type == 5 or @type == 13 # 雨
  224.           sprite.x -= 2
  225.           sprite.y += 16
  226.           sprite.opacity -= 8
  227.           if @thunder and (rand(8000 - @max) == 0)
  228.             $game_screen.start_flash(Color.new(255, 255, 255, 255), 5)
  229.             Audio.se_play("Audio/SE/061-Thunderclap01")
  230.           end
  231.         end
  232.         if @type == 2 # 暴风雨
  233.           sprite.x -= 8
  234.           sprite.y += 16
  235.           sprite.opacity -= 12
  236.         end
  237.         if @type == 3 # 雪
  238.           sprite.x -= 2
  239.           sprite.y += 8
  240.           sprite.opacity -= 8
  241.         end
  242.         if @type == 4 # 冰雹
  243.           sprite.x -= 1
  244.           sprite.y += 18
  245.           sprite.opacity -= 15
  246.         end
  247.         if @type == 6 # 落下的树叶 (秋天)
  248.           @count = rand(20)
  249.           if @count == 0
  250.             sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  251.             @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  252.           end
  253.           sprite.x -= 1
  254.           sprite.y += 1
  255.         end
  256.         if @type == 7 # 吹花瓣(秋天)
  257.           @count = rand(20)
  258.           if @count == 0
  259.             sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  260.             @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  261.           end
  262.           sprite.x -= 10
  263.           sprite.y += (rand(4) - 2)
  264.         end
  265.         if @type == 8 #摇晃树叶 (秋天)
  266.           @count = rand(20)
  267.           if @count == 0
  268.             sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  269.             @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  270.           end
  271.           if @info[i] != 0
  272.             if @info[i] >= 1 and @info[i] <= 10
  273.               sprite.x -= 3
  274.               sprite.y -= 1
  275.             elsif @info[i] >= 11 and @info[i] <= 16
  276.               sprite.x -= 1
  277.               sprite.y -= 2
  278.             elsif @info[i] >= 17 and @info[i] <= 20
  279.               sprite.y -= 3
  280.             elsif @info[i] >= 21 and @info[i] <= 30
  281.               sprite.y -= 2
  282.               sprite.x += 1
  283.             elsif @info[i] >= 31 and @info[i] <= 36
  284.               sprite.y -= 1
  285.               sprite.x += 3
  286.             elsif @info[i] >= 37 and @info[i] <= 40
  287.               sprite.x += 5
  288.             elsif @info[i] >= 41 and @info[i] <= 46
  289.               sprite.y += 1
  290.               sprite.x += 3
  291.             elsif @info[i] >= 47 and @info[i] <= 58
  292.               sprite.y += 2
  293.               sprite.x += 1
  294.             elsif @info[i] >= 59 and @info[i] <= 64
  295.               sprite.y += 3
  296.             elsif @info[i] >= 65 and @info[i] <= 70
  297.               sprite.x -= 1
  298.               sprite.y += 2
  299.             elsif @info[i] >= 71 and @info[i] <= 81
  300.               sprite.x -= 3
  301.               sprite.y += 1
  302.             elsif @info[i] >= 82 and @info[i] <= 87
  303.               sprite.x -= 5
  304.             end
  305.             @info[i] = (@info[i] + 1) % 88
  306.           else
  307.             if rand(200) == 0
  308.               @info[i] = 1
  309.             end
  310.             sprite.x -= 5
  311.             sprite.y += 1
  312.           end
  313.         end
  314.         if @type == 9 # 落下的树叶 (绿色的)
  315.           if @countarray[i] == 0
  316.             @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  317.             sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  318.             @countarray[i] = rand(15)
  319.           end
  320.           @countarray[i] = (@countarray[i] + 1) % 15
  321.           sprite.y += 1
  322.         end
  323.         if @type == 10 # 樱桃花 (sakura) 花瓣
  324.           if @info[i] < 25
  325.             sprite.x -= 1
  326.           else
  327.             sprite.x += 1
  328.           end
  329.           @info[i] = (@info[i] + 1) % 50
  330.           sprite.y += 1
  331.         end
  332.         if @type == 11 # 玫瑰花的花瓣
  333.           @count = rand(20)
  334.           if @count == 0
  335.             sprite.bitmap = @rose_bitmaps[@current_pose[i]]
  336.             @current_pose[i] = (@current_pose[i] + 1) % @rose_bitmaps.size
  337.           end
  338.           if @info[i] % 2 == 0
  339.             if @info[i] < 10
  340.               sprite.x -= 1
  341.             elsif
  342.               sprite.x += 1
  343.             end
  344.           end
  345.           sprite.y += 1
  346.         end
  347.         if @type == 12 # 羽毛
  348.           if @countarray[i] == 0
  349.             @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  350.             sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  351.           end
  352.           @countarray[i] = (@countarray[i] + 1) % 15
  353.           if rand(100) == 0
  354.             sprite.x -= 1
  355.           end
  356.           if rand(100) == 0
  357.             sprite.y -= 1
  358.           end
  359.           if @info[i] < 50
  360.             if rand(2) == 0
  361.               sprite.x -= 1
  362.             else
  363.               sprite.y -= 1
  364.             end
  365.           else
  366.             if rand(2) == 0
  367.               sprite.x += 1
  368.             else
  369.               sprite.y += 1
  370.             end
  371.           end
  372.           @info[i] = (@info[i] + 1) % 100
  373.         end
  374.         if @type == 14 # 闪耀(火花)
  375.           if @countarray[i] == 0
  376.             @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  377.             sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  378.           end
  379.           @countarray[i] = (@countarray[i] + 1) % 15
  380.           sprite.y += 1
  381.           sprite.opacity -= 1
  382.         end
  383.         if @type == 15 # 自定义(用户)
  384.           if $WEATHER_UPDATE
  385.             update_user_defined
  386.             $WEATHER_UPDATE = false
  387.           end
  388.           if $WEATHER_ANIMATED and @countarray[i] == 0
  389.             @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  390.             sprite.bitmap = @user_bitmaps[@current_pose[i]]
  391.           end
  392.           sprite.x += $WEATHER_X
  393.           sprite.y += $WEATHER_Y
  394.           sprite.opacity -= $WEATHER_FADE
  395.         end
  396.         if @type == 16 #吹制雪
  397.           sprite.x -= 10
  398.           sprite.y += 6
  399.           sprite.opacity -= 4
  400.         end
  401.         if @type == 17 # 流星雨
  402.           if @countarray[i] > 0
  403.             if rand(20) == 0
  404.               sprite.bitmap = @impact_bitmap
  405.               @countarray[i] = -5
  406.             else
  407.               sprite.x -= 6
  408.               sprite.y += 10
  409.             end
  410.           else
  411.             @countarray[i] += 1
  412.             if @countarray[i] == 0
  413.               sprite.bitmap = @meteor_bitmap
  414.               sprite.opacity = 0
  415.               @count_array = 1
  416.             end
  417.           end
  418.         end
  419.         if @type == 18 # 灰
  420.           sprite.y += 2
  421.           case @countarray[i] % 3
  422.             when 0
  423.             sprite.x -= 1
  424.             when 1
  425.             sprite.x += 1
  426.           end
  427.         end
  428.         if @type == 19 # 泡沫
  429.           switch = rand(75) + rand(75) + 1
  430.           if @info[i] < switch / 2
  431.             sprite.x -= 1
  432.           else
  433.             sprite.x += 1
  434.           end
  435.           @info[i] = (@info[i] + 1) % switch
  436.           sprite.y -= 1
  437.           if switch % 2 == 0
  438.             sprite.opacity -= 1
  439.           end
  440.         end
  441.         x = sprite.x - @ox
  442.         y = sprite.y - @oy
  443.         if sprite.opacity < 64 or x < -50 or x > 750 or y < -300 or y > 500
  444.           sprite.x = rand(800) - 50 + @ox
  445.           sprite.y = rand(800) - 200 + @oy
  446.           sprite.opacity = 255
  447.         end
  448.       end
  449.     end
  450.     #创造位图
  451.     def make_bitmaps
  452.       #定义颜色
  453.       color1 = Color.new(255, 255, 255, 255)
  454.       color2 = Color.new(255, 255, 255, 128)
  455.       @rain_bitmap = Bitmap.new(7, 56)
  456.       for i in 0..6
  457.         @rain_bitmap.fill_rect(6-i, i*8, 1, 8, color1)
  458.       end
  459.       @storm_bitmap = Bitmap.new(34, 64)
  460.       for i in 0..31
  461.         @storm_bitmap.fill_rect(33-i, i*2, 1, 2, color2)
  462.         @storm_bitmap.fill_rect(32-i, i*2, 1, 2, color1)
  463.         @storm_bitmap.fill_rect(31-i, i*2, 1, 2, color2)
  464.       end
  465.       @snow_bitmap = Bitmap.new(6, 6)
  466.       @snow_bitmap.fill_rect(0, 1, 6, 4, color2)
  467.       @snow_bitmap.fill_rect(1, 0, 4, 6, color2)
  468.       @snow_bitmap.fill_rect(1, 2, 4, 2, color1)
  469.       @snow_bitmap.fill_rect(2, 1, 2, 4, color1)
  470.       @sprites = []
  471.       blueGrey  = Color.new(215, 227, 227, 150)
  472.       grey      = Color.new(214, 217, 217, 150)
  473.       lightGrey = Color.new(233, 233, 233, 250)
  474.       lightBlue = Color.new(222, 239, 243, 250)
  475.       @hail_bitmap = Bitmap.new(4, 4)
  476.       @hail_bitmap.fill_rect(1, 0, 2, 1, blueGrey)
  477.       @hail_bitmap.fill_rect(0, 1, 1, 2, blueGrey)
  478.       @hail_bitmap.fill_rect(3, 1, 1, 2, grey)
  479.       @hail_bitmap.fill_rect(1, 3, 2, 1, grey)
  480.       @hail_bitmap.fill_rect(1, 1, 2, 2, lightGrey)
  481.       @hail_bitmap.set_pixel(1, 1, lightBlue)
  482.       color3 = Color.new(255, 167, 192, 255)  
  483.       color4 = Color.new(213, 106, 136, 255)
  484.       @petal_bitmap = Bitmap.new(4, 4)
  485.       @petal_bitmap.fill_rect(0, 3, 1, 1, color3)
  486.       @petal_bitmap.fill_rect(1, 2, 1, 1, color3)
  487.       @petal_bitmap.fill_rect(2, 1, 1, 1, color3)
  488.       @petal_bitmap.fill_rect(3, 0, 1, 1, color3)
  489.       @petal_bitmap.fill_rect(1, 3, 1, 1, color4)
  490.       @petal_bitmap.fill_rect(2, 2, 1, 1, color4)
  491.       @petal_bitmap.fill_rect(3, 1, 1, 1, color4)
  492.       #定义部分颜色
  493.       brightOrange = Color.new(248, 88, 0, 255)   
  494.       orangeBrown  = Color.new(144, 80, 56, 255)
  495.       burntRed     = Color.new(152, 0, 0, 255)
  496.       paleOrange   = Color.new(232, 160, 128, 255)
  497.       darkBrown    = Color.new(72, 40, 0, 255)
  498.       @autumn_leaf_bitmaps = []
  499.       @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  500.       @autumn_leaf_bitmaps[0].set_pixel(5, 1, orangeBrown)
  501.       @autumn_leaf_bitmaps[0].set_pixel(6, 1, brightOrange)
  502.       @autumn_leaf_bitmaps[0].set_pixel(7, 1, paleOrange)
  503.       @autumn_leaf_bitmaps[0].set_pixel(3, 2, orangeBrown)
  504.       @autumn_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightOrange)
  505.       @autumn_leaf_bitmaps[0].set_pixel(6, 2, paleOrange)
  506.       @autumn_leaf_bitmaps[0].set_pixel(2, 3, orangeBrown)
  507.       @autumn_leaf_bitmaps[0].set_pixel(3, 3, brightOrange)
  508.       @autumn_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, paleOrange)
  509.       @autumn_leaf_bitmaps[0].set_pixel(1, 4, orangeBrown)
  510.       @autumn_leaf_bitmaps[0].set_pixel(2, 4, brightOrange)
  511.       @autumn_leaf_bitmaps[0].set_pixel(3, 4, paleOrange)
  512.       @autumn_leaf_bitmaps[0].set_pixel(1, 5, brightOrange)
  513.       @autumn_leaf_bitmaps[0].set_pixel(2, 5, paleOrange)
  514.       @autumn_leaf_bitmaps[0].set_pixel(0, 6, orangeBrown)
  515.       @autumn_leaf_bitmaps[0].set_pixel(1, 6, paleOrange)
  516.       @autumn_leaf_bitmaps[0].set_pixel(0, 7, paleOrange)
  517.       @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  518.       @autumn_leaf_bitmaps[1].set_pixel(3, 0, brightOrange)
  519.       @autumn_leaf_bitmaps[1].set_pixel(7, 0, brightOrange)
  520.       @autumn_leaf_bitmaps[1].set_pixel(3, 1, orangeBrown)
  521.       @autumn_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  522.       @autumn_leaf_bitmaps[1].set_pixel(6, 1, brightOrange)
  523.       @autumn_leaf_bitmaps[1].set_pixel(0, 2, paleOrange)
  524.       @autumn_leaf_bitmaps[1].set_pixel(1, 2, brightOrange)
  525.       @autumn_leaf_bitmaps[1].set_pixel(2, 2, orangeBrown)
  526.       @autumn_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  527.       @autumn_leaf_bitmaps[1].set_pixel(4, 2, orangeBrown)
  528.       @autumn_leaf_bitmaps[1].set_pixel(5, 2, brightOrange)
  529.       @autumn_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, orangeBrown)
  530.       @autumn_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightOrange)
  531.       @autumn_leaf_bitmaps[1].set_pixel(6, 3, orangeBrown)
  532.       @autumn_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  533.       @autumn_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightOrange)
  534.       @autumn_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  535.       @autumn_leaf_bitmaps[1].set_pixel(7, 4, darkBrown)
  536.       @autumn_leaf_bitmaps[1].set_pixel(1, 5, orangeBrown)
  537.       @autumn_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightOrange)
  538.       @autumn_leaf_bitmaps[1].set_pixel(4, 5, orangeBrown)
  539.       @autumn_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  540.       @autumn_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightOrange)
  541.       @autumn_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  542.       @autumn_leaf_bitmaps[1].set_pixel(0, 7, brightOrange)
  543.       @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkBrown)
  544.       @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  545.       @autumn_leaf_bitmaps[2].set_pixel(7, 1, paleOrange)
  546.       @autumn_leaf_bitmaps[2].set_pixel(6, 2, paleOrange)
  547.       @autumn_leaf_bitmaps[2].set_pixel(7, 2, orangeBrown)
  548.       @autumn_leaf_bitmaps[2].set_pixel(5, 3, paleOrange)
  549.       @autumn_leaf_bitmaps[2].set_pixel(6, 3, brightOrange)
  550.       @autumn_leaf_bitmaps[2].set_pixel(4, 4, paleOrange)
  551.       @autumn_leaf_bitmaps[2].set_pixel(5, 4, brightOrange)
  552.       @autumn_leaf_bitmaps[2].set_pixel(6, 4, orangeBrown)
  553.       @autumn_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, paleOrange)
  554.       @autumn_leaf_bitmaps[2].set_pixel(4, 5, brightOrange)
  555.       @autumn_leaf_bitmaps[2].set_pixel(5, 5, orangeBrown)
  556.       @autumn_leaf_bitmaps[2].set_pixel(1, 6, paleOrange)
  557.       @autumn_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightOrange)
  558.       @autumn_leaf_bitmaps[2].set_pixel(4, 6, orangeBrown)
  559.       @autumn_leaf_bitmaps[2].set_pixel(0, 7, paleOrange)
  560.       @autumn_leaf_bitmaps[2].set_pixel(1, 7, brightOrange)
  561.       @autumn_leaf_bitmaps[2].set_pixel(2, 7, orangeBrown)
  562.       @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  563.       @autumn_leaf_bitmaps[3].set_pixel(3, 0, brightOrange)
  564.       @autumn_leaf_bitmaps[3].set_pixel(7, 0, brightOrange)
  565.       @autumn_leaf_bitmaps[3].set_pixel(3, 1, orangeBrown)
  566.       @autumn_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  567.       @autumn_leaf_bitmaps[3].set_pixel(6, 1, brightOrange)
  568.       @autumn_leaf_bitmaps[3].set_pixel(0, 2, paleOrange)
  569.       @autumn_leaf_bitmaps[3].set_pixel(1, 2, brightOrange)
  570.       @autumn_leaf_bitmaps[3].set_pixel(2, 2, orangeBrown)
  571.       @autumn_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  572.       @autumn_leaf_bitmaps[3].set_pixel(4, 2, orangeBrown)
  573.       @autumn_leaf_bitmaps[3].set_pixel(5, 2, brightOrange)
  574.       @autumn_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, orangeBrown)
  575.       @autumn_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightOrange)
  576.       @autumn_leaf_bitmaps[3].set_pixel(6, 3, orangeBrown)
  577.       @autumn_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  578.       @autumn_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightOrange)
  579.       @autumn_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  580.       @autumn_leaf_bitmaps[3].set_pixel(7, 4, darkBrown)
  581.       @autumn_leaf_bitmaps[3].set_pixel(1, 5, orangeBrown)
  582.       @autumn_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightOrange)
  583.       @autumn_leaf_bitmaps[3].set_pixel(4, 5, orangeBrown)
  584.       @autumn_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  585.       @autumn_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightOrange)
  586.       @autumn_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  587.       @autumn_leaf_bitmaps[3].set_pixel(0, 7, brightOrange)
  588.       @autumn_leaf_bitmaps[3].set_pixel(5, 7, darkBrown)
  589.       @green_leaf_bitmaps = []
  590.       darkGreen  = Color.new(62, 76, 31, 255)
  591.       midGreen   = Color.new(76, 91, 43, 255)
  592.       khaki      = Color.new(105, 114, 66, 255)
  593.       lightGreen = Color.new(128, 136, 88, 255)
  594.       mint       = Color.new(146, 154, 106, 255)
  595.       @green_leaf_bitmaps[0] = Bitmap.new(8, 8)
  596.       @green_leaf_bitmaps[0].set_pixel(1, 0, darkGreen)
  597.       @green_leaf_bitmaps[0].set_pixel(1, 1, midGreen)
  598.       @green_leaf_bitmaps[0].set_pixel(2, 1, darkGreen)
  599.       @green_leaf_bitmaps[0].set_pixel(2, 2, khaki)
  600.       @green_leaf_bitmaps[0].set_pixel(3, 2, darkGreen)
  601.       @green_leaf_bitmaps[0].set_pixel(4, 2, khaki)
  602.       @green_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midGreen)
  603.       @green_leaf_bitmaps[0].set_pixel(5, 3, khaki)
  604.       @green_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midGreen)
  605.       @green_leaf_bitmaps[0].set_pixel(4, 4, darkGreen)
  606.       @green_leaf_bitmaps[0].set_pixel(5, 4, lightGreen)
  607.       @green_leaf_bitmaps[0].set_pixel(6, 4, khaki)
  608.       @green_leaf_bitmaps[0].set_pixel(3, 5, midGreen)
  609.       @green_leaf_bitmaps[0].set_pixel(4, 5, darkGreen)
  610.       @green_leaf_bitmaps[0].set_pixel(5, 5, khaki)
  611.       @green_leaf_bitmaps[0].set_pixel(6, 5, lightGreen)
  612.       @green_leaf_bitmaps[0].set_pixel(4, 6, midGreen)
  613.       @green_leaf_bitmaps[0].set_pixel(5, 6, darkGreen)
  614.       @green_leaf_bitmaps[0].set_pixel(6, 6, lightGreen)
  615.       @green_leaf_bitmaps[0].set_pixel(6, 7, khaki)
  616.       @green_leaf_bitmaps[1] = Bitmap.new(8, 8)
  617.       @green_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midGreen)
  618.       @green_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, khaki)
  619.       @green_leaf_bitmaps[1].set_pixel(4, 2, lightGreen)
  620.       @green_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkGreen)
  621.       @green_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightGreen)
  622.       @green_leaf_bitmaps[1].set_pixel(2, 4, midGreen)
  623.       @green_leaf_bitmaps[1].set_pixel(3, 4, darkGreen)
  624.       @green_leaf_bitmaps[1].set_pixel(4, 4, khaki)
  625.       @green_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightGreen)
  626.       @green_leaf_bitmaps[1].set_pixel(3, 5, midGreen)
  627.       @green_leaf_bitmaps[1].set_pixel(4, 5, darkGreen)
  628.       @green_leaf_bitmaps[1].set_pixel(5, 5, khaki)
  629.       @green_leaf_bitmaps[1].set_pixel(6, 5, lightGreen)
  630.       @green_leaf_bitmaps[1].set_pixel(5, 6, darkGreen)
  631.       @green_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, khaki)
  632.       @green_leaf_bitmaps[2] = Bitmap.new(8, 8)
  633.       @green_leaf_bitmaps[2].set_pixel(1, 1, darkGreen)
  634.       @green_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midGreen)
  635.       @green_leaf_bitmaps[2].set_pixel(2, 3, midGreen)
  636.       @green_leaf_bitmaps[2].set_pixel(3, 3, darkGreen)
  637.       @green_leaf_bitmaps[2].set_pixel(4, 3, midGreen)
  638.       @green_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midGreen)
  639.       @green_leaf_bitmaps[2].set_pixel(4, 4, darkGreen)
  640.       @green_leaf_bitmaps[2].set_pixel(5, 4, lightGreen)
  641.       @green_leaf_bitmaps[2].set_pixel(3, 5, midGreen)
  642.       @green_leaf_bitmaps[2].set_pixel(4, 5, darkGreen)
  643.       @green_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, khaki)
  644.       @green_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midGreen)
  645.       @green_leaf_bitmaps[2].set_pixel(6, 6, lightGreen)
  646.       @green_leaf_bitmaps[2].set_pixel(6, 7, khaki)
  647.       @green_leaf_bitmaps[3] = Bitmap.new(8, 8)
  648.       @green_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkGreen)
  649.       @green_leaf_bitmaps[3].set_pixel(1, 4, midGreen)
  650.       @green_leaf_bitmaps[3].set_pixel(2, 4, khaki)
  651.       @green_leaf_bitmaps[3].set_pixel(3, 4, lightGreen)
  652.       @green_leaf_bitmaps[3].set_pixel(4, 4, darkGreen)
  653.       @green_leaf_bitmaps[3].set_pixel(7, 4, midGreen)
  654.       @green_leaf_bitmaps[3].set_pixel(1, 5, darkGreen)
  655.       @green_leaf_bitmaps[3].set_pixel(2, 5, midGreen)
  656.       @green_leaf_bitmaps[3].set_pixel(3, 5, lightGreen)
  657.       @green_leaf_bitmaps[3].set_pixel(4, 5, mint)
  658.       @green_leaf_bitmaps[3].set_pixel(5, 5, lightGreen)
  659.       @green_leaf_bitmaps[3].set_pixel(6, 5, khaki)
  660.       @green_leaf_bitmaps[3].set_pixel(7, 5, midGreen)
  661.       @green_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midGreen)
  662.       @green_leaf_bitmaps[3].set_pixel(4, 6, lightGreen)
  663.       @green_leaf_bitmaps[3].set_pixel(5, 6, khaki)
  664.       @green_leaf_bitmaps[3].set_pixel(6, 6, midGreen)
  665.       @green_leaf_bitmaps[4] = Bitmap.new(8, 8)
  666.       @green_leaf_bitmaps[4].set_pixel(6, 2, midGreen)
  667.       @green_leaf_bitmaps[4].set_pixel(7, 2, darkGreen)
  668.       @green_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midGreen)
  669.       @green_leaf_bitmaps[4].set_pixel(6, 3, khaki)
  670.       @green_leaf_bitmaps[4].set_pixel(2, 4, darkGreen)
  671.       @green_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, khaki)
  672.       @green_leaf_bitmaps[4].set_pixel(5, 4, lightGreen)
  673.       @green_leaf_bitmaps[4].set_pixel(6, 4, khaki)
  674.       @green_leaf_bitmaps[4].set_pixel(1, 5, midGreen)
  675.       @green_leaf_bitmaps[4].set_pixel(2, 5, khaki)
  676.       @green_leaf_bitmaps[4].set_pixel(3, 5, lightGreen)
  677.       @green_leaf_bitmaps[4].set_pixel(4, 5, mint)
  678.       @green_leaf_bitmaps[4].set_pixel(5, 5, midGreen)
  679.       @green_leaf_bitmaps[4].set_pixel(2, 6, darkGreen)
  680.       @green_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midGreen)
  681.       @green_leaf_bitmaps[5] = Bitmap.new(8, 8)
  682.       @green_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midGreen)
  683.       @green_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midGreen)
  684.       @green_leaf_bitmaps[5].set_pixel(6, 3, khaki)
  685.       @green_leaf_bitmaps[5].set_pixel(3, 4, midGreen)
  686.       @green_leaf_bitmaps[5].set_pixel(4, 4, khaki)
  687.       @green_leaf_bitmaps[5].set_pixel(5, 4, lightGreen)
  688.       @green_leaf_bitmaps[5].set_pixel(6, 4, mint)
  689.       @green_leaf_bitmaps[5].set_pixel(1, 5, midGreen)
  690.       @green_leaf_bitmaps[5].set_pixel(2, 5, khaki)
  691.       @green_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, mint)
  692.       @green_leaf_bitmaps[5].set_pixel(5, 5, lightGreen)
  693.       @green_leaf_bitmaps[5].set_pixel(2, 6, midGreen)
  694.       @green_leaf_bitmaps[5].set_pixel(3, 6, khaki)
  695.       @green_leaf_bitmaps[5].set_pixel(4, 6, lightGreen)
  696.       @green_leaf_bitmaps[6] = Bitmap.new(8, 8)
  697.       @green_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midGreen)
  698.       @green_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midGreen)
  699.       @green_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkGreen)
  700.       @green_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midGreen)
  701.       @green_leaf_bitmaps[6].set_pixel(5, 3, khaki)
  702.       @green_leaf_bitmaps[6].set_pixel(2, 4, midGreen)
  703.       @green_leaf_bitmaps[6].set_pixel(3, 4, khaki)
  704.       @green_leaf_bitmaps[6].set_pixel(4, 4, lightGreen)
  705.       @green_leaf_bitmaps[6].set_pixel(5, 4, midGreen)
  706.       @green_leaf_bitmaps[6].set_pixel(1, 5, midGreen)
  707.       @green_leaf_bitmaps[6].set_pixel(2, 5, khaki)
  708.       @green_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midGreen)
  709.       @green_leaf_bitmaps[6].set_pixel(1, 6, darkGreen)
  710.       @green_leaf_bitmaps[6].set_pixel(2, 6, midGreen)
  711.       @green_leaf_bitmaps[7] = Bitmap.new(8, 8)
  712.       @green_leaf_bitmaps[7].set_pixel(6, 1, midGreen)
  713.       @green_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midGreen)
  714.       @green_leaf_bitmaps[7].set_pixel(3, 3, darkGreen)
  715.       @green_leaf_bitmaps[7].set_pixel(2, 4, darkGreen)
  716.       @green_leaf_bitmaps[7].set_pixel(3, 4, midGreen)
  717.       @green_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, khaki)
  718.       @green_leaf_bitmaps[7].set_pixel(1, 5, darkGreen)
  719.       @green_leaf_bitmaps[7].set_pixel(2, 5, midGreen)
  720.       @green_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightGreen)
  721.       @green_leaf_bitmaps[7].set_pixel(2, 6, midGreen)
  722.       @green_leaf_bitmaps[7].set_pixel(3, 6, lightGreen)
  723.       @green_leaf_bitmaps[8] = Bitmap.new(8, 8)
  724.       @green_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midGreen)
  725.       @green_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midGreen)
  726.       @green_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkGreen)
  727.       @green_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midGreen)
  728.       @green_leaf_bitmaps[8].set_pixel(5, 3, khaki)
  729.       @green_leaf_bitmaps[8].set_pixel(2, 4, midGreen)
  730.       @green_leaf_bitmaps[8].set_pixel(3, 4, khaki)
  731.       @green_leaf_bitmaps[8].set_pixel(4, 4, lightGreen)
  732.       @green_leaf_bitmaps[8].set_pixel(5, 4, midGreen)
  733.       @green_leaf_bitmaps[8].set_pixel(1, 5, midGreen)
  734.       @green_leaf_bitmaps[8].set_pixel(2, 5, khaki)
  735.       @green_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midGreen)
  736.       @green_leaf_bitmaps[8].set_pixel(1, 6, darkGreen)
  737.       @green_leaf_bitmaps[8].set_pixel(2, 6, midGreen)
  738.       @green_leaf_bitmaps[9] = Bitmap.new(8, 8)
  739.       @green_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midGreen)
  740.       @green_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midGreen)
  741.       @green_leaf_bitmaps[9].set_pixel(6, 3, khaki)
  742.       @green_leaf_bitmaps[9].set_pixel(3, 4, midGreen)
  743.       @green_leaf_bitmaps[9].set_pixel(4, 4, khaki)
  744.       @green_leaf_bitmaps[9].set_pixel(5, 4, lightGreen)
  745.       @green_leaf_bitmaps[9].set_pixel(6, 4, mint)
  746.       @green_leaf_bitmaps[9].set_pixel(1, 5, midGreen)
  747.       @green_leaf_bitmaps[9].set_pixel(2, 5, khaki)
  748.       @green_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, mint)
  749.       @green_leaf_bitmaps[9].set_pixel(5, 5, lightGreen)
  750.       @green_leaf_bitmaps[9].set_pixel(2, 6, midGreen)
  751.       @green_leaf_bitmaps[9].set_pixel(3, 6, khaki)
  752.       @green_leaf_bitmaps[9].set_pixel(4, 6, lightGreen)
  753.       @green_leaf_bitmaps[10] = Bitmap.new(8, 8)
  754.       @green_leaf_bitmaps[10].set_pixel(6, 2, midGreen)
  755.       @green_leaf_bitmaps[10].set_pixel(7, 2, darkGreen)
  756.       @green_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midGreen)
  757.       @green_leaf_bitmaps[10].set_pixel(6, 3, khaki)
  758.       @green_leaf_bitmaps[10].set_pixel(2, 4, darkGreen)
  759.       @green_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, khaki)
  760.       @green_leaf_bitmaps[10].set_pixel(5, 4, lightGreen)
  761.       @green_leaf_bitmaps[10].set_pixel(6, 4, khaki)
  762.       @green_leaf_bitmaps[10].set_pixel(1, 5, midGreen)
  763.       @green_leaf_bitmaps[10].set_pixel(2, 5, khaki)
  764.       @green_leaf_bitmaps[10].set_pixel(3, 5, lightGreen)
  765.       @green_leaf_bitmaps[10].set_pixel(4, 5, mint)
  766.       @green_leaf_bitmaps[10].set_pixel(5, 5, midGreen)
  767.       @green_leaf_bitmaps[10].set_pixel(2, 6, darkGreen)
  768.       @green_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midGreen)
  769.       @green_leaf_bitmaps[11] = Bitmap.new(8, 8)
  770.       @green_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkGreen)
  771.       @green_leaf_bitmaps[11].set_pixel(1, 4, midGreen)
  772.       @green_leaf_bitmaps[11].set_pixel(2, 4, khaki)
  773.       @green_leaf_bitmaps[11].set_pixel(3, 4, lightGreen)
  774.       @green_leaf_bitmaps[11].set_pixel(4, 4, darkGreen)
  775.       @green_leaf_bitmaps[11].set_pixel(7, 4, midGreen)
  776.       @green_leaf_bitmaps[11].set_pixel(1, 5, darkGreen)
  777.       @green_leaf_bitmaps[11].set_pixel(2, 5, midGreen)
  778.       @green_leaf_bitmaps[11].set_pixel(3, 5, lightGreen)
  779.       @green_leaf_bitmaps[11].set_pixel(4, 5, mint)
  780.       @green_leaf_bitmaps[11].set_pixel(5, 5, lightGreen)
  781.       @green_leaf_bitmaps[11].set_pixel(6, 5, khaki)
  782.       @green_leaf_bitmaps[11].set_pixel(7, 5, midGreen)
  783.       @green_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midGreen)
  784.       @green_leaf_bitmaps[11].set_pixel(4, 6, lightGreen)
  785.       @green_leaf_bitmaps[11].set_pixel(5, 6, khaki)
  786.       @green_leaf_bitmaps[11].set_pixel(6, 6, midGreen)
  787.       @green_leaf_bitmaps[12] = Bitmap.new(8, 8)
  788.       @green_leaf_bitmaps[12].set_pixel(1, 1, darkGreen)
  789.       @green_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midGreen)
  790.       @green_leaf_bitmaps[12].set_pixel(2, 3, midGreen)
  791.       @green_leaf_bitmaps[12].set_pixel(3, 3, darkGreen)
  792.       @green_leaf_bitmaps[12].set_pixel(4, 3, midGreen)
  793.       @green_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midGreen)
  794.       @green_leaf_bitmaps[12].set_pixel(4, 4, darkGreen)
  795.       @green_leaf_bitmaps[12].set_pixel(5, 4, lightGreen)
  796.       @green_leaf_bitmaps[12].set_pixel(3, 5, midGreen)
  797.       @green_leaf_bitmaps[12].set_pixel(4, 5, darkGreen)
  798.       @green_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, khaki)
  799.       @green_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midGreen)
  800.       @green_leaf_bitmaps[12].set_pixel(6, 6, lightGreen)
  801.       @green_leaf_bitmaps[12].set_pixel(6, 7, khaki)
  802.       @rose_bitmaps = []
  803.       brightRed = Color.new(255, 0, 0, 255)
  804.       midRed    = Color.new(179, 17, 17, 255)
  805.       darkRed   = Color.new(141, 9, 9, 255)
  806.       @rose_bitmaps[0] = Bitmap.new(3, 3)
  807.       @rose_bitmaps[0].fill_rect(1, 0, 2, 1, brightRed)
  808.       @rose_bitmaps[0].fill_rect(0, 1, 1, 2, brightRed)
  809.       @rose_bitmaps[0].fill_rect(1, 1, 2, 2, midRed)
  810.       @rose_bitmaps[0].set_pixel(2, 2, darkRed)
  811.       @rose_bitmaps[1] = Bitmap.new(3, 3)
  812.       @rose_bitmaps[1].set_pixel(0, 1, midRed)
  813.       @rose_bitmaps[1].set_pixel(1, 1, brightRed)
  814.       @rose_bitmaps[1].fill_rect(1, 2, 1, 2, midRed)
  815.       @feather_bitmaps = []
  816.       white = Color.new(255, 255, 255, 255)
  817.       @feather_bitmaps[0] = Bitmap.new(3, 3)
  818.       @feather_bitmaps[0].set_pixel(0, 2, white)
  819.       @feather_bitmaps[0].set_pixel(1, 2, grey)
  820.       @feather_bitmaps[0].set_pixel(2, 1, grey)
  821.       @feather_bitmaps[0] = Bitmap.new(3, 3)
  822.       @feather_bitmaps[0].set_pixel(0, 0, white)
  823.       @feather_bitmaps[0].set_pixel(0, 1, grey)
  824.       @feather_bitmaps[0].set_pixel(1, 2, grey)
  825.       @feather_bitmaps[0] = Bitmap.new(3, 3)
  826.       @feather_bitmaps[0].set_pixel(2, 0, white)
  827.       @feather_bitmaps[0].set_pixel(1, 0, grey)
  828.       @feather_bitmaps[0].set_pixel(0, 1, grey)
  829.       @feather_bitmaps[0] = Bitmap.new(3, 3)
  830.       @feather_bitmaps[0].set_pixel(2, 2, white)
  831.       @feather_bitmaps[0].set_pixel(2, 1, grey)
  832.       @feather_bitmaps[0].set_pixel(1, 0, grey)
  833.       @blood_rain_bitmap = Bitmap.new(7, 56)
  834.       for i in 0..6
  835.         @blood_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkRed)
  836.       end
  837.       @sparkle_bitmaps = []
  838.       lightBlue = Color.new(181, 244, 255, 255)
  839.       midBlue   = Color.new(126, 197, 235, 255)
  840.       darkBlue  = Color.new(77, 136, 225, 255)
  841.       @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  842.       @sparkle_bitmaps[0].set_pixel(3, 3, darkBlue)
  843.       @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  844.       @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, darkBlue)
  845.       @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, darkBlue)
  846.       @sparkle_bitmaps[1].set_pixel(3, 3, midBlue)
  847.       @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  848.       @sparkle_bitmaps[2].set_pixel(1, 1, darkBlue)
  849.       @sparkle_bitmaps[2].set_pixel(5, 1, darkBlue)
  850.       @sparkle_bitmaps[2].set_pixel(2, 2, midBlue)
  851.       @sparkle_bitmaps[2].set_pixel(4, 2, midBlue)
  852.       @sparkle_bitmaps[2].set_pixel(3, 3, lightBlue)
  853.       @sparkle_bitmaps[2].set_pixel(2, 4, midBlue)
  854.       @sparkle_bitmaps[2].set_pixel(4, 4, midBlue)
  855.       @sparkle_bitmaps[2].set_pixel(1, 5, darkBlue)
  856.       @sparkle_bitmaps[2].set_pixel(5, 5, darkBlue)
  857.       @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  858.       @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, darkBlue)
  859.       @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, darkBlue)
  860.       @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, midBlue)
  861.       @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, midBlue)
  862.       @sparkle_bitmaps[3].set_pixel(3, 3, lightBlue)
  863.       @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  864.       @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, midBlue)
  865.       @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, darkBlue)
  866.       @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, darkBlue)
  867.       @sparkle_bitmaps[4].set_pixel(3, 3, lightBlue)
  868.       @sparkle_bitmaps[4].set_pixel(1, 1, darkBlue)
  869.       @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  870.       @sparkle_bitmaps[4].set_pixel(1, 5, darkBlue)
  871.       @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  872.       @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  873.       @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, darkBlue)
  874.       @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, darkBlue)
  875.       @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, midBlue)
  876.       @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, midBlue)
  877.       @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, midBlue)
  878.       @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, lightBlue)
  879.       @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, lightBlue)
  880.       @sparkle_bitmaps[5].set_pixel(3, 3, white)
  881.       @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  882.       @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, midBlue)
  883.       @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, midBlue)
  884.       @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, darkBlue)
  885.       @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, darkBlue)
  886.       @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, lightBlue)
  887.       @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, midBlue)
  888.       @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, midBlue)
  889.       @sparkle_bitmaps[6].set_pixel(3, 3, white)
  890.       @meteor_bitmap = Bitmap.new(14, 12)
  891.       @meteor_bitmap.fill_rect(0, 8, 5, 4, paleOrange)
  892.       @meteor_bitmap.fill_rect(1, 7, 6, 4, paleOrange)
  893.       @meteor_bitmap.set_pixel(7, 8, paleOrange)
  894.       @meteor_bitmap.fill_rect(1, 8, 2, 2, brightOrange)
  895.       @meteor_bitmap.set_pixel(2, 7, brightOrange)
  896.       @meteor_bitmap.fill_rect(3, 6, 2, 1, brightOrange)
  897.       @meteor_bitmap.set_pixel(3, 8, brightOrange)
  898.       @meteor_bitmap.set_pixel(3, 10, brightOrange)
  899.       @meteor_bitmap.set_pixel(4, 9, brightOrange)
  900.       @meteor_bitmap.fill_rect(5, 5, 1, 5, brightOrange)
  901.       @meteor_bitmap.fill_rect(6, 4, 1, 5, brightOrange)
  902.       @meteor_bitmap.fill_rect(7, 3, 1, 5, brightOrange)
  903.       @meteor_bitmap.fill_rect(8, 6, 1, 2, brightOrange)
  904.       @meteor_bitmap.set_pixel(9, 5, brightOrange)
  905.       @meteor_bitmap.set_pixel(3, 8, midRed)
  906.       @meteor_bitmap.fill_rect(4, 7, 1, 2, midRed)
  907.       @meteor_bitmap.set_pixel(4, 5, midRed)
  908.       @meteor_bitmap.set_pixel(5, 4, midRed)
  909.       @meteor_bitmap.set_pixel(5, 6, midRed)
  910.       @meteor_bitmap.set_pixel(6, 5, midRed)
  911.       @meteor_bitmap.set_pixel(6, 7, midRed)
  912.       @meteor_bitmap.fill_rect(7, 4, 1, 3, midRed)
  913.       @meteor_bitmap.fill_rect(8, 3, 1, 3, midRed)
  914.       @meteor_bitmap.fill_rect(9, 2, 1, 3, midRed)
  915.       @meteor_bitmap.fill_rect(10, 1, 1, 3, midRed)
  916.       @meteor_bitmap.fill_rect(11, 0, 1, 3, midRed)
  917.       @meteor_bitmap.fill_rect(12, 0, 1, 2, midRed)
  918.       @meteor_bitmap.set_pixel(13, 0, midRed)
  919.       @impact_bitmap = Bitmap.new(22, 11)
  920.       @impact_bitmap.fill_rect(0, 5, 1, 2, brightOrange)
  921.       @impact_bitmap.set_pixel(1, 4, brightOrange)
  922.       @impact_bitmap.set_pixel(1, 6, brightOrange)
  923.       @impact_bitmap.set_pixel(2, 3, brightOrange)
  924.       @impact_bitmap.set_pixel(2, 7, brightOrange)
  925.       @impact_bitmap.set_pixel(3, 2, midRed)
  926.       @impact_bitmap.set_pixel(3, 7, midRed)
  927.       @impact_bitmap.set_pixel(4, 2, brightOrange)
  928.       @impact_bitmap.set_pixel(4, 8, brightOrange)
  929.       @impact_bitmap.set_pixel(5, 2, midRed)
  930.       @impact_bitmap.fill_rect(5, 8, 3, 1, brightOrange)
  931.       @impact_bitmap.set_pixel(6, 1, midRed)
  932.       @impact_bitmap.fill_rect(7, 1, 8, 1, brightOrange)
  933.       @impact_bitmap.fill_rect(7, 9, 8, 1, midRed)
  934.       # 灰
  935.       @ash_bitmaps = []
  936.       @ash_bitmaps[0] = Bitmap.new(3, 3)
  937.       @ash_bitmaps[0].fill_rect(0, 1, 1, 3, lightGrey)
  938.       @ash_bitmaps[0].fill_rect(1, 0, 3, 1, lightGrey)
  939.       @ash_bitmaps[0].set_pixel(1, 1, white)
  940.       @ash_bitmaps[1] = Bitmap.new(3, 3)
  941.       @ash_bitmaps[1].fill_rect(0, 1, 1, 3, grey)
  942.       @ash_bitmaps[1].fill_rect(1, 0, 3, 1, grey)
  943.       @ash_bitmaps[1].set_pixel(1, 1, lightGrey)
  944.       # 泡沫位图
  945.       @bubble_bitmaps = []
  946.       darkBlue  = Color.new(77, 136, 225, 160)
  947.       aqua = Color.new(197, 253, 254, 160)
  948.       lavender = Color.new(225, 190, 244, 160)
  949.       # 第一泡沫
  950.       @bubble_bitmaps[0] = Bitmap.new(24, 24)
  951.       @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, darkBlue)
  952.       @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, darkBlue)
  953.       @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, darkBlue)
  954.       @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, darkBlue)
  955.       @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, darkBlue)
  956.       @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, darkBlue)
  957.       @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, darkBlue)
  958.       @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, darkBlue)
  959.       @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, aqua)
  960.       @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, aqua)
  961.       @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, aqua)
  962.       @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, aqua)
  963.       @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, aqua)
  964.       @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, aqua)
  965.       @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, lavender)
  966.       @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, lavender)
  967.       @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, lavender)
  968.       @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, lavender)
  969.       @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, lavender)
  970.       @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, lavender)
  971.       @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, lavender)
  972.       @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, white)
  973.       @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, white)
  974.       @bubble_bitmaps[0].set_pixel(17, 6, white)
  975.       # 第二泡沫
  976.       @bubble_bitmaps[1] = Bitmap.new(14, 15)
  977.       @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, darkBlue)
  978.       @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, darkBlue)
  979.       @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, darkBlue)
  980.       @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, darkBlue)
  981.       @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, darkBlue)
  982.       @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  983.       @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, aqua)
  984.       @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, aqua)
  985.       @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, aqua)
  986.       @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  987.       @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, lavender)
  988.       @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, lavender)
  989.       @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, lavender)
  990.       @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, white)
  991.       @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, white)
  992.       @bubble_bitmaps[1].set_pixel(7, 4, white)
  993.       @bubble_bitmaps[1].set_pixel(8, 5, white)
  994.       #用户位图
  995.       @user_bitmaps = []
  996.       update_user_defined
  997.     end
  998.     #刷新自定义(用户)
  999.     def update_user_defined
  1000.       for image in @user_bitmaps
  1001.         #释放位图
  1002.         image.dispose
  1003.       end
  1004.       #用户自定义位图
  1005.       for name in $WEATHER_IMAGES
  1006.         @user_bitmaps.push(RPG::Cache.picture(name))
  1007.       end
  1008.       #循环精灵
  1009.       for sprite in @sprites
  1010.         sprite.bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  1011.       end
  1012.     end
  1013.     #属性
  1014.     attr_reader :type
  1015.     attr_reader :max
  1016.     attr_reader :ox
  1017.     attr_reader :oy
  1018.   end
  1019. end

Lv5.捕梦者

梦石
0
星屑
33131
在线时间
5105 小时
注册时间
2012-11-19
帖子
4878

开拓者

2
发表于 2014-4-27 11:10:04 | 只看该作者
本帖最后由 芯☆淡茹水 于 2014-4-27 11:15 编辑

貌似不是在这里面修改。
修改其 Z 值,应该修改其显示端口的 Z 值。
看看脚本 Spriteset_Map 里面。
  1. # 生成天气
  2.     @weather = RPG::Weather.new(@viewport1)
  3.     # 生成图片
  4.     @picture_sprites = []
  5.     for i in 1..50
  6.       @picture_sprites.push(Sprite_Picture.new(@viewport2,
  7.         $game_screen.pictures[i]))
  8.     end
复制代码
天气是 @viewport1
图片是 @viewport2
  1. # 生成显示端口
  2.     @viewport1 = Viewport.new(0, 0, 640, 480)
  3.     @viewport2 = Viewport.new(0, 0, 640, 480)
  4.     @viewport3 = Viewport.new(0, 0, 640, 480)
  5.     @viewport2.z = 200
  6.     @viewport3.z = 5000
复制代码
端口 @viewport1 的 Z 值为 0
端口 @viewport2 的 Z 值为 200

所以无论在 天气 的内部怎么改,其显示端口就限制了其 Z 值。
So~,建议把天气的端口改成 @viewport3 。(不知道这样行不行,没试过)
xp vx va mv  va mz 各类型脚本/插件定制
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-30 19:34

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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