ゲーム中の全てのシーンのスーパークラスです。
- C
- D
- F
- M
- P
- R
- S
- T
- U
ゲームオーバー判定
パーティが全滅状態ならゲームオーバー画面へ遷移する。
Source: show
# File Scene_Base.rb, line 144 def check_gameover SceneManager.goto(Scene_Gameover) if $game_party.all_dead? end
ビューポートの作成
Source: show
# File Scene_Base.rb, line 88 def create_main_viewport @viewport = Viewport.new @viewport.z = 200 end
全ウィンドウの解放
Source: show
# File Scene_Base.rb, line 113 def dispose_all_windows instance_variables.each do |varname| ivar = instance_variable_get(varname) ivar.dispose if ivar.is_a?(Window) end end
ビューポートの解放
Source: show
# File Scene_Base.rb, line 96 def dispose_main_viewport @viewport.dispose end
各種サウンドとグラフィックの一括フェードアウト
Source: show
# File Scene_Base.rb, line 130 def fadeout_all(time = 1000) RPG::BGM.fade(time) RPG::BGS.fade(time) RPG::ME.fade(time) Graphics.fadeout(time * Graphics.frame_rate / 1000) RPG::BGM.stop RPG::BGS.stop RPG::ME.stop end
メイン
Source: show
# File Scene_Base.rb, line 10 def main start post_start update until scene_changing? pre_terminate terminate end
トランジション実行
Source: show
# File Scene_Base.rb, line 74 def perform_transition Graphics.transition(transition_speed) end
開始後処理
Source: show
# File Scene_Base.rb, line 28 def post_start perform_transition Input.update end
呼び出し元のシーンへ戻る
Source: show
# File Scene_Base.rb, line 123 def return_scene SceneManager.return end
シーン変更中判定
Source: show
# File Scene_Base.rb, line 36 def scene_changing? SceneManager.scene != self end
終了処理
Source: show
# File Scene_Base.rb, line 65 def terminate Graphics.freeze dispose_all_windows dispose_main_viewport end
トランジション速度の取得
Source: show
# File Scene_Base.rb, line 81 def transition_speed return 10 end