赞 | 23 |
VIP | 207 |
好人卡 | 31 |
积分 | 31 |
经验 | 48797 |
最后登录 | 2024-5-11 |
在线时间 | 1535 小时 |
Lv3.寻梦者 孤独守望
- 梦石
- 0
- 星屑
- 3132
- 在线时间
- 1535 小时
- 注册时间
- 2006-10-16
- 帖子
- 4321
|
简洁才是美。- class Scene_Menu
- def main
- s1 = "存档"
- s2 = "读档"
- s3 = "退出游戏"
- @command_window = Window_Command.new(192, [s1, s2, s3])
- @command_window.x = 320 - @command_window.width / 2
- @command_window.y = 240 - @command_window.height / 2
- @sp = Spriteset_Map.new
- Graphics.transition
- loop do
- Graphics.update
- Input.update
- update
- if $scene != self
- break
- end
- end
- Graphics.freeze
- @sp.dispose
- @command_window.dispose
- if $scene.is_a?(Scene_Title)
- Graphics.transition
- Graphics.freeze
- end
- end
- def update
- @command_window.update
- if Input.trigger?(Input::B)
- $game_system.se_play($data_system.cancel_se)
- $scene = Scene_Map.new
- return
- end
- if Input.trigger?(Input::C)
- $game_system.se_play($data_system.decision_se)
- case @command_window.index
- when 0
- $scene = Scene_Save.new
- when 1
- $scene = Scene_Load2.new
- when 2
- $scene = Scene_End.new
- end
- return
- end
- end
- end
- class Scene_Load2 < Scene_Load
- def on_cancel
- $game_system.se_play($data_system.cancel_se)
- $scene = Scene_Menu.new
- end
- end
复制代码 |
评分
-
查看全部评分
|