Skip to content

Scene_Map ⇐ Scene_Base

Kind: global class
Extends: Scene_Base

  • Scene_Map ⇐ Scene_Base
    • new Scene_Map()
    • .initialize() ⇒ void
    • .create() ⇒ void
    • .isReady() ⇒ boolean
    • .onMapLoaded() ⇒ void
    • .start() ⇒ void
    • .update() ⇒ void
    • .updateMainMultiply() ⇒ void
    • .updateMain() ⇒ void
    • .isFastForward() ⇒ boolean
    • .stop() ⇒ void
    • .isBusy() ⇒ boolean
    • .terminate() ⇒ void
    • .needsFadeIn() ⇒ boolean
    • .needsSlowFadeOut() ⇒ boolean
    • .updateWaitCount() ⇒ boolean
    • .updateDestination() ⇒ void
    • .isMapTouchOk() ⇒ boolean
    • .processMapTouch() ⇒ void
    • .isSceneChangeOk() ⇒ boolean
    • .updateScene() ⇒ void
    • .createDisplayObjects() ⇒ void
    • .createSpriteset() ⇒ void
    • .createAllWindows() ⇒ void
    • .createMapNameWindow() ⇒ void
    • .createMessageWindow() ⇒ void
    • .createScrollTextWindow() ⇒ void
    • .updateTransferPlayer() ⇒ void
    • .updateEncounter() ⇒ void
    • .updateCallMenu() ⇒ void
    • .isMenuEnabled() ⇒ boolean
    • .isMenuCalled() ⇒ boolean
    • .callMenu() ⇒ void
    • .updateCallDebug() ⇒ void
    • .isDebugCalled() ⇒ boolean
    • .fadeInForTransfer() ⇒ void
    • .fadeOutForTransfer() ⇒ void
    • .launchBattle() ⇒ void
    • .stopAudioOnBattleStart() ⇒ void
    • .startEncounterEffect() ⇒ void
    • .updateEncounterEffect() ⇒ void
    • .snapForBattleBackground() ⇒ void
    • .startFlashForEncounter(duration) ⇒ void
    • .encounterEffectSpeed() ⇒ number

new Scene_Map()

游戏地图画面的场景类,处理地图显示、角色移动、事件触发等功能。
The scene class of the game map screen, handling map display, character movement, event triggering and other functions.


Scene_Map.initialize() ⇒ void

初始化地图场景对象,设置各种计数器和状态标志。
Initializes the map scene object, sets up various counters and status flags.

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


Scene_Map.create() ⇒ void

创建地图场景的基础设置,处理地图数据加载。
Creates the basic settings for the map scene, handles map data loading.

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


Scene_Map.isReady() ⇒ boolean

检查地图数据是否加载完成,场景是否准备就绪。
Checks if map data is loaded and if the scene is ready.

Kind: static method of Scene_Map
Returns: boolean - 场景是否准备就绪 Whether the scene is ready


Scene_Map.onMapLoaded() ⇒ void

地图数据加载完成后的处理,创建显示对象。
Processing after map data loading is completed, creates display objects.

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


Scene_Map.start() ⇒ void

开始地图场景,处理传送效果和淡入效果。
Starts the map scene, handles transfer effects and fade-in effects.

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


Scene_Map.update() ⇒ void

更新地图场景的各个组件。
Updates various components of the map scene.

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


Scene_Map.updateMainMultiply() ⇒ void

在一帧内执行两次主更新函数,实现帧率翻倍效果。
Executes the main update function twice in one frame, achieving double frame rate effect.

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


Scene_Map.updateMain() ⇒ void

更新地图、玩家、计时器和屏幕的主要逻辑。
Updates the main logic for map, player, timer and screen.

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


Scene_Map.isFastForward() ⇒ boolean

检查是否满足快进条件(事件运行中且长按确定键)。
Checks if fast forward conditions are met (event running and long press ok button).

Kind: static method of Scene_Map
Returns: boolean - 是否快进 Whether to fast forward


Scene_Map.stop() ⇒ void

停止地图场景,处理场景切换和战斗开始。
Stops the map scene, handles scene switching and battle start.

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


Scene_Map.isBusy() ⇒ boolean

检查场景是否正在处理其他操作(如消息窗口关闭、等待计数等)。
Checks if the scene is processing other operations (such as message window closing, wait count, etc.).

Kind: static method of Scene_Map
Returns: boolean - 场景是否繁忙 Whether the scene is busy


Scene_Map.terminate() ⇒ void

终止地图场景,清理资源并准备场景切换。
Terminates the map scene, cleans up resources and prepares for scene switching.

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


Scene_Map.needsFadeIn() ⇒ boolean

检查是否需要执行淡入效果(从战斗或读档场景返回时)。
Checks if fade-in effect is needed (when returning from battle or load scene).

Kind: static method of Scene_Map
Returns: boolean - 是否需要淡入 Whether fade in is needed


Scene_Map.needsSlowFadeOut() ⇒ boolean

检查是否需要执行缓慢淡出效果(切换到标题或游戏结束画面时)。
Checks if slow fade-out effect is needed (when switching to title or game over screen).

Kind: static method of Scene_Map
Returns: boolean - 是否需要缓慢淡出 Whether slow fade out is needed


Scene_Map.updateWaitCount() ⇒ boolean

更新并递减等待计数,控制场景操作的时序。
Updates and decrements the wait count, controls the timing of scene operations.

Kind: static method of Scene_Map
Returns: boolean - 是否仍在等待 Whether still waiting


Scene_Map.updateDestination() ⇒ void

更新玩家触摸移动的目的地。
Updates the destination for player touch movement.

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


Scene_Map.isMapTouchOk() ⇒ boolean

检查地图是否处于可触摸状态(场景激活且玩家可以移动)。
Checks if the map is in a touchable state (scene active and player can move).

Kind: static method of Scene_Map
Returns: boolean - 地图是否可以触摸 Whether the map can be touched


Scene_Map.processMapTouch() ⇒ void

处理玩家对地图的触摸操作,设置移动目的地。
Processes player's touch operations on the map, sets movement destination.

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


Scene_Map.isSceneChangeOk() ⇒ boolean

检查是否可以进行场景切换(场景激活且消息系统不繁忙)。
Checks if scene change can be performed (scene active and message system not busy).

Kind: static method of Scene_Map
Returns: boolean - 场景切换是否准备就绪 Whether scene change is ready


Scene_Map.updateScene() ⇒ void

更新场景相关的各种检查(游戏结束、传送、遇敌、菜单等)。
Updates various scene-related checks (game over, transfer, encounter, menu, etc.).

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


Scene_Map.createDisplayObjects() ⇒ void

创建地图场景所需的各种显示对象。
Creates various display objects needed for the map scene.

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


Scene_Map.createSpriteset() ⇒ void

创建地图精灵组,包含地图、角色等各种精灵。
Creates the map spriteset, containing various sprites such as map, characters, etc.

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


Scene_Map.createAllWindows() ⇒ void

创建地图场景需要的所有窗口。
Creates all windows needed for the map scene.

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


Scene_Map.createMapNameWindow() ⇒ void

创建显示地图名称的窗口。
Creates the window for displaying the map name.

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


Scene_Map.createMessageWindow() ⇒ void

创建显示对话和消息的窗口。
Creates the window for displaying dialogue and messages.

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


Scene_Map.createScrollTextWindow() ⇒ void

创建显示滚动文字的窗口。
Creates the window for displaying scrolling text.

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


Scene_Map.updateTransferPlayer() ⇒ void

检查并处理玩家传送请求。
Checks and handles player transfer requests.

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


Scene_Map.updateEncounter() ⇒ void

检查并处理随机遇敌事件。
Checks and handles random encounter events.

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


Scene_Map.updateCallMenu() ⇒ void

检查并处理菜单呼叫请求。
Checks and handles menu call requests.

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


Scene_Map.isMenuEnabled() ⇒ boolean

检查菜单是否可以启用(系统菜单启用且没有事件运行)。
Checks if the menu can be enabled (system menu enabled and no event running).

Kind: static method of Scene_Map
Returns: boolean - 菜单是否启用 Whether the menu is enabled


Scene_Map.isMenuCalled() ⇒ boolean

检查玩家是否按下了菜单键。
Checks if the player pressed the menu button.

Kind: static method of Scene_Map
Returns: boolean - 菜单是否被呼叫 Whether the menu is called


Scene_Map.callMenu() ⇒ void

执行菜单呼叫,打开菜单场景。
Executes menu call, opens the menu scene.

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


Scene_Map.updateCallDebug() ⇒ void

检查并处理调试模式呼叫。
Checks and handles debug mode calls.

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


Scene_Map.isDebugCalled() ⇒ boolean

检查是否按下了调试键(仅在测试模式下有效)。
Checks if the debug button is pressed (only effective in test mode).

Kind: static method of Scene_Map
Returns: boolean - 调试是否被呼叫 Whether debug is called


Scene_Map.fadeInForTransfer() ⇒ void

执行传送时的淡入效果。
Executes fade-in effect for transfer.

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


Scene_Map.fadeOutForTransfer() ⇒ void

执行传送时的淡出效果。
Executes fade-out effect for transfer.

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


Scene_Map.launchBattle() ⇒ void

准备并开始战斗。
Prepares and starts battle.

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


Scene_Map.stopAudioOnBattleStart() ⇒ void

战斗开始时停止背景音乐和音效。
Stops background music and sound effects when battle starts.

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


Scene_Map.startEncounterEffect() ⇒ void

开始遇敌时的视觉效果。
Starts the visual effect when encountering enemies.

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


Scene_Map.updateEncounterEffect() ⇒ void

更新遇敌时的缩放和闪烁效果。
Updates the zoom and flash effects during encounter.

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


Scene_Map.snapForBattleBackground() ⇒ void

为战斗背景拍摄当前地图的快照。
Takes a snapshot of the current map for battle background.

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


Scene_Map.startFlashForEncounter(duration) ⇒ void

开始遇敌时的屏幕闪烁效果。
Starts the screen flash effect for encounter.

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

ParamTypeDescription
durationnumber持续时间 Duration

Scene_Map.encounterEffectSpeed() ⇒ number

获取遇敌效果的持续帧数。
Gets the duration frames for the encounter effect.

Kind: static method of Scene_Map
Returns: number - 遇敌效果速度 Encounter effect speed


贡献者

暂无相关贡献者

页面历史

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