module SceneManager
#--------------------------------------------------------------------------
# ● 模块的实例变量
#--------------------------------------------------------------------------
[url=home.php?mod=space&uid=420706]@Scene[/url] = nil # 当前场景实例
@stack = [] # 场景切换的记录
@background_bitmap = nil # 背景用的场景截图
#--------------------------------------------------------------------------
# ● 运行
#--------------------------------------------------------------------------
def self.run
DataManager.init
Audio.setup_midi if use_midi?
@scene = first_scene_class.new
@scene.main while @scene
end
#--------------------------------------------------------------------------
# ● 获取最初场景的所属类
#--------------------------------------------------------------------------
def self.first_scene_class
unless $BTEST
DataManager.setup_new_game
end
$BTEST ? Scene_Battle : Scene_Map
end