Skip to content

Scene_Base ⇐ Stage ​

Kind: global class
Extends: Stage

  • Scene_Base ⇐ Stage
    • new Scene_Base()
    • .initialize() ⇒ void
    • .attachReservation() ⇒ void
    • .detachReservation() ⇒ void
    • .create() ⇒ void
    • .isActive() ⇒ Boolean
    • .isReady() ⇒ Boolean
    • .start() ⇒ void
    • .update() ⇒ void
    • .stop() ⇒ void
    • .isBusy() ⇒ Boolean
    • .terminate() ⇒ void
    • .createWindowLayer() ⇒ void
    • .addWindow(window)
    • .startFadeIn([duration], [white])
    • .startFadeOut([duration], [white])
    • .createFadeSprite(white)
    • .updateFade() ⇒ void
    • .updateChildren() ⇒ void
    • .popScene() ⇒ void
    • .checkGameover() ⇒ void
    • .fadeOutAll() ⇒ void
    • .fadeSpeed() ⇒ Number
    • .slowFadeSpeed() ⇒ Number

new Scene_Base() ​

游戏中所有场景的父类,提供基本的场景管理功能。
The superclass of all scenes within the game, providing basic scene management functionality.


Scene_Base.initialize() ⇒ void ​

初始化场景基类,设置默认属性和图像预留ID。
Initializes the scene base, sets default properties and image reservation ID.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.attachReservation() ⇒ void ​

将图像预留ID附加到默认预留队列。
Attaches the image reservation ID to the default reservation queue.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.detachReservation() ⇒ void ​

从预留队列中移除图像预留ID。
Removes the image reservation ID from the reservation queue.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.create() ⇒ void ​

创建场景的组件并添加到渲染流程中,由子类重写实现。
Creates scene components and adds them to the rendering process, overridden by subclasses.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.isActive() ⇒ Boolean ​

检查场景是否活动
Check if scene is active

Kind: static method of Scene_Base
Returns: Boolean - 如果场景活动则返回true - Returns true if scene is active


Scene_Base.isReady() ⇒ Boolean ​

检查场景是否准备就绪
Check if scene is ready to start

Kind: static method of Scene_Base
Returns: Boolean - 如果场景准备就绪则返回true - Returns true if scene is ready to start


Scene_Base.start() ⇒ void ​

开始场景处理,将场景设置为激活状态。
Starts scene processing, sets the scene to active state.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.update() ⇒ void ​

每帧更新场景处理,包括淡化效果和子元素更新。
Updates scene processing each frame, including fade effects and children updates.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.stop() ⇒ void ​

停止场景处理,将场景设置为非激活状态。
Stops scene processing, sets the scene to inactive state.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.isBusy() ⇒ Boolean ​

检查场景是否繁忙
Check if scene is busy

Kind: static method of Scene_Base
Returns: Boolean - 如果场景繁忙则返回true - Returns true if scene is busy


Scene_Base.terminate() ⇒ void ​

终止场景处理,由子类重写实现。
Terminates scene processing, overridden by subclasses.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.createWindowLayer() ⇒ void ​

创建窗口图层并添加到场景中。
Creates the window layer and adds it to the scene.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.addWindow(window) ​

添加窗口到窗口图层
Add window to window layer

Kind: static method of Scene_Base

ParamTypeDescription
windowWindow窗口对象 - Window object

Scene_Base.startFadeIn([duration], [white]) ​

开始淡入效果
Start fade in effect

Kind: static method of Scene_Base

ParamTypeDefaultDescription
[duration]Number30淡入时间 - Fade in duration
[white]Booleanfalse是否使用白色 - Whether to use white color

Scene_Base.startFadeOut([duration], [white]) ​

开始淡出效果
Start fade out effect

Kind: static method of Scene_Base

ParamTypeDefaultDescription
[duration]Number30淡出时间 - Fade out duration
[white]Booleanfalse是否使用白色 - Whether to use white color

Scene_Base.createFadeSprite(white) ​

创建淡化精灵
Create fade sprite

Kind: static method of Scene_Base

ParamTypeDescription
whiteBoolean是否使用白色 - Whether to use white color

Scene_Base.updateFade() ⇒ void ​

更新淡化效果的透明度。
Updates the opacity of the fade effect.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.updateChildren() ⇒ void ​

更新所有子元素的每一帧处理。
Updates the frame processing of all child elements.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.popScene() ⇒ void ​

弹出当前场景,返回到上一个场景。
Pops the current scene and returns to the previous scene.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.checkGameover() ⇒ void ​

检查游戏是否结束,如果所有角色死亡则跳转到游戏结束场景。
Checks whether the game is over, if all characters are dead, jumps to game over scene.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.fadeOutAll() ⇒ void ​

淡出所有音频和视频内容。
Fades out all audio and visual content.

Kind: static method of Scene_Base
Returns: void - 无返回值 No return value


Scene_Base.fadeSpeed() ⇒ Number ​

获取淡化速度
Get fade speed

Kind: static method of Scene_Base
Returns: Number - 淡化速度 - Fade speed value


Scene_Base.slowFadeSpeed() ⇒ Number ​

获取慢速淡化速度
Get slow fade speed

Kind: static method of Scene_Base
Returns: Number - 慢速淡化速度 - Slow fade speed value


贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新