class Scene_Xuexi
def main
@xuexi_window = Window_Xuexi.new
@xuexi_window.x = 0
@xuexi_window.y = 0
@xuexi_window.opacity = 160
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@xuexi_windows.dispose
end
def update
@xuexi_windows.update
if Input.trigger?(Input::B)
# 演奏取消 SE
$game_system.se_play($data_system.cancel_se)
# 切换的地图画面
$scene = Scene_Map.new
return
end
end
end