赞 | 471 |
VIP | 56 |
好人卡 | 75 |
积分 | 407 |
经验 | 124650 |
最后登录 | 2025-2-19 |
在线时间 | 7542 小时 |
Lv5.捕梦者 (管理员) 老黄鸡
- 梦石
- 0
- 星屑
- 40703
- 在线时间
- 7542 小时
- 注册时间
- 2009-7-6
- 帖子
- 13506
 
|
- :#==============================================================================
- # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
- #==============================================================================
- #--------------------------------------------------------------------------
- # 开始菜单前加入图片
- # 作者 : 擇
- #--------------------------------------------------------------------------
- class Scene_logo
- #--------------------------------------------------------------------------
- # ● 住处理
- #--------------------------------------------------------------------------
- def main
- # 生成标题图形
- @sprite = Sprite.new
- @sprite.bitmap = RPG::Cache.title("Logo")
- # 生成位置为画面中央
- @sprite.x = (640 - @sprite.bitmap.width) / 2
- @sprite.y = (480 - @sprite.bitmap.height) / 2
- # 透明度(0为完全透明)
- @sprite.opacity = 255
- # 执行过渡
- Graphics.transition
- # 主循环
- a = 0
- while a <= 500
- # 刷新游戏画面
- Graphics.update
- # 刷新输入信息
- Input.update
- if Input.repeat?(Input::C)
- a = 1000
- end
- a += 1
- if $scene != self
- break
- end
- end
- # 装备过渡
- Graphics.freeze
- # 释放标题图形
- @sprite.bitmap.dispose
- @sprite.dispose
- $scene = Scene_Title.new
- Audio.se_stop
- end
- #==============================================================================
- # ■ Main
- #------------------------------------------------------------------------------
- # 各定义结束后、从这里开始实际处理。
- #==============================================================================
- begin
- # 准备过渡
- # 设置系统默认字体
- Font.default_name = (["黑体"])
- Graphics.freeze
- # 生成场景对像 (标题画面)
- $scene = Scene_logo.new
- # $scene 为有效的情况下调用 main 过程
- while $scene != nil
- $scene.main
- end
- # 淡入淡出
- Graphics.transition(20)
- rescue Errno::ENOENT
- # 补充 Errn:ENOENT 以外错误
- # 无法打开文件的情况下、显示信息后结束
- filename = $!.message.sub("No such file or directory - ", "")
- print("找不到文件 #{filename}。 ")
- end
- #==============================================================================
- # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
- #==============================================================================
复制代码 |
|