Skip to content

Scene_Base ⇐ Stage

Scene_Base

Kind: global class
Extends: Stage

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

new Scene_Base()

场景基类
Scene base class


Scene_Base.initialize()

初始化场景基类
Initialize scene base

Kind: static method of Scene_Base


Scene_Base.attachReservation()

附加预留到预留队列
Attach reservation to reserve queue

Kind: static method of Scene_Base


Scene_Base.detachReservation()

从预留队列移除预留
Remove reservation from reserve queue

Kind: static method of Scene_Base


Scene_Base.create()

创建组件并添加到渲染流程
Create components and add to rendering process

Kind: static method of Scene_Base


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()

开始场景处理
Start scene processing

Kind: static method of Scene_Base


Scene_Base.update()

更新场景处理
Update scene processing

Kind: static method of Scene_Base


Scene_Base.stop()

停止场景处理
Stop scene processing

Kind: static method of Scene_Base


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()

终止场景处理
Terminate scene processing

Kind: static method of Scene_Base


Scene_Base.createWindowLayer()

创建窗口图层
Create window layer

Kind: static method of Scene_Base


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()

更新淡化效果
Update fade effect

Kind: static method of Scene_Base


Scene_Base.updateChildren()

更新子元素
Update children elements

Kind: static method of Scene_Base


Scene_Base.popScene()

弹出场景
Pop scene

Kind: static method of Scene_Base


Scene_Base.checkGameover()

检查游戏结束
Check game over

Kind: static method of Scene_Base


Scene_Base.fadeOutAll()

淡出所有内容
Fade out all content

Kind: static method of Scene_Base


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


贡献者

暂无相关贡献者

页面历史

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