赞 | 12 |
VIP | 107 |
好人卡 | 6 |
积分 | 4 |
经验 | 31122 |
最后登录 | 2024-6-29 |
在线时间 | 1606 小时 |
Lv2.观梦者 傻♂逼
- 梦石
- 0
- 星屑
- 374
- 在线时间
- 1606 小时
- 注册时间
- 2007-3-13
- 帖子
- 6562
|
失败了(我)
执行不能
因为出现标题太麻烦了
启动后有时连窗口都出不来
- begin
- # 准备过渡
- # 设置系统默认字体
- Font.default_name = (["黑体"])
- Graphics.freeze
- # 生成场景对像 (标题画面)
- File.open("Data/Actors.rxdata", "rb") { |f|
- $data_actors = Marshal.load(f)
- }
- File.open("Data/Classes.rxdata", "rb") { |f|
- $data_skills = Marshal.load(f)
- }
- File.open("Data/Skills.rxdata", "rb") { |f|
- $data_classes = Marshal.load(f)
- }
- File.open("Data/Classes.rxdata", "rb") { |f|
- $data_classes = Marshal.load(f)
- }
- File.open("Data/Items.rxdata", "rb") { |f|
- $data_items = Marshal.load(f)
- }
- File.open("Data/Armors.rxdata", "rb") { |f|
- $data_weapons = Marshal.load(f)
- }
- File.open("Data/Enemies.rxdata", "rb") { |f|
- $data_enemies = Marshal.load(f)
- }
- File.open("Data/Troops.rxdata", "rb") { |f|
- $data_troops = Marshal.load(f)
- }
- File.open("Data/States.rxdata", "rb") { |f|
- $data_states = Marshal.load(f)
- }
- File.open("Data/Animations.rxdata", "rb") { |f|
- $data_animations = Marshal.load(f)
- }
- File.open("Data/Tilesets.rxdata", "rb") { |f|
- $data_tilesets = Marshal.load(f)
- }
- File.open("Data/CommonEvents.rxdata", "rb") { |f|
- $data_common_events = Marshal.load(f)
- }
- File.open("Data/System.rxdata", "rb") { |f|
- $data_system = Marshal.load(f)
- }
- # 生成系统对像
- # 演奏确定 SE
- # $game_system = Game_System.new
- # $game_system.se_play($data_system.decision_se)
- # 停止 BGM
- Audio.bgm_stop
- # 重置测量游戏时间用的画面计数器
- Graphics.frame_count = 0
- # 生成各种游戏对像
- $game_temp = Game_Temp.new
- $game_system = Game_System.new
- $game_switches = Game_Switches.new
- $game_variables = Game_Variables.new
- $game_self_switches = Game_SelfSwitches.new
- $game_screen = Game_Screen.new
- $game_actors = Game_Actors.new
- $game_party = Game_Party.new
- $game_troop = Game_Troop.new
- $game_map = Game_Map.new
- $game_player = Game_Player.new
- # 设置初期同伴位置
- $game_party.setup_starting_members
- # 设置初期位置的地图
- $game_map.setup($data_system.start_map_id)
- # 主角向初期位置移动
- $game_player.moveto($data_system.start_x, $data_system.start_y)
- # 刷新主角
- $game_player.refresh
- # 执行地图设置的 BGM 与 BGS 的自动切换
- $game_map.autoplay
- # 刷新地图 (执行并行事件)
- $game_map.update
- # 切换地图画面
- $scene = Scene_Map.new
- # $scene 为有效的情况下调用 main 过程
- while $scene != nil
- $scene.main
- end
- # 淡入淡出
- Graphics.transition(20)
- rescue
- p $!
- end
复制代码 |
|