Classes SceneManager - hikipuro/rpgmakermv_ref GitHub Wiki
SceneManager クラス
[クラス一覧]
(ver.1.6.2)
定義場所: rpg_managers.js
クラスの属性
- Static クラス
フィールド
名前 | 初期値 | 説明 |
---|---|---|
_scene | null | |
_nextScene | null | |
_stack | [] | |
_stopped | false | |
_sceneStarted | false | |
_exiting | false | |
_previousClass | null | |
_backgroundBitmap | null | |
_screenWidth | 816 | |
_screenHeight | 624 | |
_boxWidth | 816 | |
_boxHeight | 624 | |
_deltaTime | 1.0 / 60.0 | |
_currentTime | ||
_accumulator | 0.0 |
メソッド
名前 | 説明 |
---|---|
run | 引数で指定されたシーンを開始する |
initialize | |
initGraphics | |
preferableRendererType | |
shouldUseCanvasRenderer | |
checkWebGL | |
checkFileAccess | |
initAudio | |
initInput | キー入力処理を初期化する |
initNwjs | |
checkPluginErrors | |
setupErrorHandlers | |
requestUpdate | 毎フレーム再描画する処理を開始する |
update | 毎フレーム再描画する処理 |
terminate | |
onError | |
onKeyDown | |
catchException | |
tickStart | 処理時間の計測を開始 |
tickEnd | 処理時間の計測を終了 |
updateInputData | |
updateMain | |
updateManagers | |
changeScene | |
updateScene | |
renderScene | |
onSceneCreate | |
onSceneStart | |
onSceneLoading | |
isSceneChanging | |
isCurrentSceneBusy | |
isCurrentSceneStarted | |
isNextScene | |
isPreviousScene | |
goto | 現在のシーンを停止し、引数で指定されたシーンを次のシーンとする |
push | |
pop | |
exit | ゲームを終了する |
clearStack | |
stop | ゲームを停止する |
prepareNextScene | |
snap | |
snapForBackground | |
backgroundBitmap | |
resume | ゲームを再開する |
_getTimeInMsWithoutMobileSafari | 経過時間をミリ秒で返す |
run
定義: run(sceneClass)
引数で指定されたシーンを開始する
引数 | 型 | 説明 |
---|---|---|
sceneClass | object | Scene_Base から派生しているクラス |
initialize
定義: initialize()
initGraphics
定義: initGraphics()
preferableRendererType
定義: preferableRendererType()
shouldUseCanvasRenderer
定義: shouldUseCanvasRenderer()
checkWebGL
定義: checkWebGL()
checkFileAccess
定義: checkFileAccess()
initAudio
定義: initAudio()
initInput
定義: initInput()
キー入力処理を初期化する
initNwjs
定義: initNwjs()
checkPluginErrors
定義: checkPluginErrors()
setupErrorHandlers
定義: setupErrorHandlers()
requestUpdate
定義: requestUpdate()
毎フレーム再描画する処理を開始する
_stopped フィールドが false の場合のみ、 requestAnimationFrame(this.update.bind(this)) を呼び出す
update
定義: update()
毎フレーム再描画する処理
terminate
定義: terminate()
onError
定義: onError()
onKeyDown
定義: onKeyDown()
catchException
定義: catchException()
tickStart
定義: tickStart()
処理時間の計測を開始
処理時間は FPSMeter (外部ライブラリ) で表示される
tickEnd
定義: tickEnd()
処理時間の計測を終了
処理時間は FPSMeter (外部ライブラリ) で表示される
updateInputData
定義: updateInputData()
updateMain
定義: updateMain()
updateManagers
定義: updateManagers()
changeScene
定義: changeScene()
updateScene
定義: updateScene()
renderScene
定義: renderScene()
onSceneCreate
定義: onSceneCreate()
onSceneStart
定義: onSceneStart()
onSceneLoading
定義: onSceneLoading()
isSceneChanging
定義: isSceneChanging()
isCurrentSceneBusy
定義: isCurrentSceneBusy()
isCurrentSceneStarted
定義: isCurrentSceneStarted()
isNextScene
定義: isNextScene()
isPreviousScene
定義: isPreviousScene()
goto
定義: goto(sceneClass)
現在のシーンを停止し、引数で指定されたシーンを次のシーンとする
_nextScene フィールドに sceneClass 引数のインスタンスがセットされる
引数 | 型 | 説明 |
---|---|---|
sceneClass | object | Scene_Base から派生しているクラス |
push
定義: push()
pop
定義: pop()
exit
定義: exit()
ゲームを終了する
clearStack
定義: clearStack()
stop
定義: stop()
ゲームを停止する
prepareNextScene
定義: prepareNextScene()
snap
定義: snap()
snapForBackground
定義: snapForBackground()
backgroundBitmap
定義: backgroundBitmap()
resume
定義: resume()
ゲームを再開する
_getTimeInMsWithoutMobileSafari
定義: _getTimeInMsWithoutMobileSafari()
経過時間をミリ秒で返す