| 
 
| 赞 | 1 |  
| VIP | 146 |  
| 好人卡 | 13 |  
| 积分 | 1 |  
| 经验 | 26479 |  
| 最后登录 | 2018-4-25 |  
| 在线时间 | 5250 小时 |  
 Lv1.梦旅人 
	梦石0 星屑105 在线时间5250 小时注册时间2011-10-7帖子1885  
 | 
| 本帖最后由 凌童鞋 于 2011-11-25 22:39 编辑 
 下面是标题上的要求复制代码#画面闪烁
  def flash
    flashs = Sprite.new
    flashb = Bitmap.new(640,480)
    flashb.fill_rect(0, 0, 640, 480, Color.new( 255, 255, 255, 255))
    flashs.bitmap = flashb
    Graphics.freeze
    Graphics.transition
  end
复制代码#==============================================================================
# ■ Scene_Title
#------------------------------------------------------------------------------
#  处理标题画面的类。
#==============================================================================
class Scene_Title
  #--------------------------------------------------------------------------
  # ● 刷新画面
  #--------------------------------------------------------------------------
  def flash
    flashs = Sprite.new
    flashb = Bitmap.new(640,480)
    flashb.fill_rect(0, 0, 640, 480, Color.new( 255, 255, 255, 255))
    flashs.bitmap = flashb
    Graphics.freeze
    Graphics.transition
  end
  def update
    # 刷新命令窗口
    @command_window.update
    # 按下 C 键的情况下
    if Input.trigger?(Input::C)
    # 命令窗口的光标位置的分支
      case @command_window.index
      when 0  # 新游戏
        flash
        command_new_game
      when 1  # 继续
        flash
        command_continue
      when 2  # 退出
        command_shutdown
      end
    end
  end
end
 | 
 |