Skip to content

Game_Screen

Kind: global class

  • Game_Screen
    • new Game_Screen()
    • .initialize()
    • .clear()
    • .onBattleStart()
    • .brightness() ⇒ number
    • .tone() ⇒ Array
    • .flashColor() ⇒ Array
    • .shake() ⇒ number
    • .zoomX() ⇒ number
    • .zoomY() ⇒ number
    • .zoomScale() ⇒ number
    • .weatherType() ⇒ string
    • .weatherPower() ⇒ number
    • .picture(pictureId) ⇒ Game_Picture
    • .realPictureId(pictureId) ⇒ number
    • .clearFade()
    • .clearTone()
    • .clearFlash()
    • .clearShake()
    • .clearZoom()
    • .clearWeather()
    • .clearPictures()
    • .eraseBattlePictures()
    • .maxPictures() ⇒ number
    • .startFadeOut(duration)
    • .startFadeIn(duration)
    • .startTint(tone, duration)
    • .startFlash(color, duration)
    • .startShake(power, speed, duration)
    • .startZoom(x, y, scale, duration)
    • .setZoom(x, y, scale)
    • .changeWeather(type, power, duration)
    • .update()
    • .updateFadeOut()
    • .updateFadeIn()
    • .updateTone()
    • .updateFlash()
    • .updateShake()
    • .updateZoom()
    • .updateWeather()
    • .updatePictures()
    • .startFlashForDamage()
    • .showPicture(pictureId, name, origin, x, y, scaleX, scaleY, opacity, blendMode)
    • .movePicture(pictureId, origin, x, y, scaleX, scaleY, opacity, blendMode, duration)
    • .rotatePicture(pictureId, speed)
    • .tintPicture(pictureId, tone, duration)
    • .erasePicture(pictureId)

new Game_Screen()

管理各种画面特效,包括淡入淡出、色调调整、闪烁效果、震动效果、缩放、天气和图片显示


game_Screen.initialize()

初始化画面对象并清空所有效果

Kind: instance method of Game_Screen


game_Screen.clear()

清空所有画面效果,重置为初始状态

Kind: instance method of Game_Screen


game_Screen.onBattleStart()

战斗开始时清除特定的画面效果

Kind: instance method of Game_Screen


game_Screen.brightness() ⇒ number

亮度
Get brightness

Kind: instance method of Game_Screen
Returns: number - 当前亮度值


game_Screen.tone() ⇒ Array

色调
Get tone

Kind: instance method of Game_Screen
Returns: Array - 当前色调数组 [红, 绿, 蓝, 灰]


game_Screen.flashColor() ⇒ Array

闪烁颜色
Get flash color

Kind: instance method of Game_Screen
Returns: Array - 当前闪烁颜色数组 [红, 绿, 蓝, 强度]


game_Screen.shake() ⇒ number

震动
Get shake

Kind: instance method of Game_Screen
Returns: number - 当前震动偏移值


game_Screen.zoomX() ⇒ number

缩放 X 坐标
Get zoom X coordinate

Kind: instance method of Game_Screen
Returns: number - 缩放中心 X 坐标


game_Screen.zoomY() ⇒ number

缩放 Y 坐标
Get zoom Y coordinate

Kind: instance method of Game_Screen
Returns: number - 缩放中心 Y 坐标


game_Screen.zoomScale() ⇒ number

缩放比例
Get zoom scale

Kind: instance method of Game_Screen
Returns: number - 当前缩放比例


game_Screen.weatherType() ⇒ string

天气类型
Get weather type

Kind: instance method of Game_Screen
Returns: string - 当前天气类型


game_Screen.weatherPower() ⇒ number

天气强度
Get weather power

Kind: instance method of Game_Screen
Returns: number - 当前天气强度


game_Screen.picture(pictureId) ⇒ Game_Picture

图片
Get picture

Kind: instance method of Game_Screen
Returns: Game_Picture - 指定 ID 的图片对象

ParamTypeDescription
pictureIdnumber图片 ID

game_Screen.realPictureId(pictureId) ⇒ number

真正的图片 ID
Get real picture ID

Kind: instance method of Game_Screen
Returns: number - 实际的图片 ID(战斗中会有偏移)

ParamTypeDescription
pictureIdnumber图片 ID

game_Screen.clearFade()

清除淡入淡出效果

Kind: instance method of Game_Screen


game_Screen.clearTone()

清除色调调整效果

Kind: instance method of Game_Screen


game_Screen.clearFlash()

清除闪烁效果

Kind: instance method of Game_Screen


game_Screen.clearShake()

清除震动效果

Kind: instance method of Game_Screen


game_Screen.clearZoom()

清除缩放效果

Kind: instance method of Game_Screen


game_Screen.clearWeather()

清除天气效果

Kind: instance method of Game_Screen


game_Screen.clearPictures()

清除所有图片

Kind: instance method of Game_Screen


game_Screen.eraseBattlePictures()

清除战斗中显示的图片

Kind: instance method of Game_Screen


game_Screen.maxPictures() ⇒ number

最大图片数
Get max pictures

Kind: instance method of Game_Screen
Returns: number - 最大图片数量


game_Screen.startFadeOut(duration)

开始淡出
Start fade out

Kind: instance method of Game_Screen

ParamTypeDescription
durationnumber淡出持续时间(帧数)

game_Screen.startFadeIn(duration)

开始淡入
Start fade in

Kind: instance method of Game_Screen

ParamTypeDescription
durationnumber淡入持续时间(帧数)

game_Screen.startTint(tone, duration)

开始着色
Start tint

Kind: instance method of Game_Screen

ParamTypeDescription
toneArray目标色调 [红, 绿, 蓝, 灰]
durationnumber变化持续时间(帧数)

game_Screen.startFlash(color, duration)

开始闪烁
Start flash

Kind: instance method of Game_Screen

ParamTypeDescription
colorArray闪烁颜色 [红, 绿, 蓝, 强度]
durationnumber闪烁持续时间(帧数)

game_Screen.startShake(power, speed, duration)

开始震动
Start shake

Kind: instance method of Game_Screen

ParamTypeDescription
powernumber震动强度
speednumber震动速度
durationnumber震动持续时间(帧数)

game_Screen.startZoom(x, y, scale, duration)

开始缩放
Start zoom

Kind: instance method of Game_Screen

ParamTypeDescription
xnumber缩放中心 X 坐标
ynumber缩放中心 Y 坐标
scalenumber目标缩放比例
durationnumber缩放持续时间(帧数)

game_Screen.setZoom(x, y, scale)

设置缩放
Set zoom

Kind: instance method of Game_Screen

ParamTypeDescription
xnumber缩放中心 X 坐标
ynumber缩放中心 Y 坐标
scalenumber缩放比例

game_Screen.changeWeather(type, power, duration)

改变天气
Change weather

Kind: instance method of Game_Screen

ParamTypeDescription
typestring天气类型
powernumber天气强度
durationnumber变化持续时间(帧数)

game_Screen.update()

每帧更新所有画面效果

Kind: instance method of Game_Screen


game_Screen.updateFadeOut()

更新淡出效果

Kind: instance method of Game_Screen


game_Screen.updateFadeIn()

更新淡入效果

Kind: instance method of Game_Screen


game_Screen.updateTone()

更新色调调整效果

Kind: instance method of Game_Screen


game_Screen.updateFlash()

更新闪烁效果

Kind: instance method of Game_Screen


game_Screen.updateShake()

更新震动效果

Kind: instance method of Game_Screen


game_Screen.updateZoom()

更新缩放效果

Kind: instance method of Game_Screen


game_Screen.updateWeather()

更新天气效果

Kind: instance method of Game_Screen


game_Screen.updatePictures()

更新所有图片对象

Kind: instance method of Game_Screen


game_Screen.startFlashForDamage()

开始受伤时的红色闪烁效果

Kind: instance method of Game_Screen


game_Screen.showPicture(pictureId, name, origin, x, y, scaleX, scaleY, opacity, blendMode)

显示图片
Show picture

Kind: instance method of Game_Screen

ParamTypeDescription
pictureIdnumber图片 ID
namestring图片文件名
originnumber原点(0:左上角 1:中心)
xnumberX 坐标
ynumberY 坐标
scaleXnumberX 轴缩放
scaleYnumberY 轴缩放
opacitynumber不透明度
blendModenumber混合模式

game_Screen.movePicture(pictureId, origin, x, y, scaleX, scaleY, opacity, blendMode, duration)

移动图片
Move picture

Kind: instance method of Game_Screen

ParamTypeDescription
pictureIdnumber图片 ID
originnumber原点
xnumber目标 X 坐标
ynumber目标 Y 坐标
scaleXnumber目标 X 轴缩放
scaleYnumber目标 Y 轴缩放
opacitynumber目标不透明度
blendModenumber混合模式
durationnumber移动持续时间(帧数)

game_Screen.rotatePicture(pictureId, speed)

旋转图片
Rotate picture

Kind: instance method of Game_Screen

ParamTypeDescription
pictureIdnumber图片 ID
speednumber旋转速度

game_Screen.tintPicture(pictureId, tone, duration)

着色图片
Tint picture

Kind: instance method of Game_Screen

ParamTypeDescription
pictureIdnumber图片 ID
toneArray色调 [红, 绿, 蓝, 灰]
durationnumber着色持续时间(帧数)

game_Screen.erasePicture(pictureId)

消除图片
Erase picture

Kind: instance method of Game_Screen

ParamTypeDescription
pictureIdnumber图片 ID

贡献者

暂无相关贡献者

页面历史

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