Class in reactor_core_display.js

Weather

14 functions in 4 groups · hide internal

The Database: everything Core loads at boot.

Familiar territory. Weather keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

The weather effect which displays rain, storm, or snow.

@class
@extends
PIXI.Container
function Weather()

Quick Reference

Setup & Creation 3

initialize() Sets up a new instance.
_createBitmaps() Creates the bitmaps.
_createDimmer() Creates the dimmer.

Actions 3

destroy() Destroys the weather.
_addSprite() Adds the sprite.
_removeSprite() Removes the sprite.

Updating & Drawing 7

update() Updates the weather for each frame.
_updateDimmer() Updates the dimmer each frame.
_updateAllSprites() Updates the all sprites each frame.
_updateSprite() Updates the sprite each frame.
_updateRainSprite() Updates the rain sprite each frame.
_updateStormSprite() Updates the storm sprite each frame.
_updateSnowSprite() Updates the snow sprite each frame.

Other 1

_rebornSprite() Reborn sprite.

Setup & Creation

initialize

method source
Weather.prototype.initialize()

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

_createBitmaps

method internal source
Weather.prototype._createBitmaps()

Creates the bitmaps. (Same as the RPG Maker MZ method of this name.)

_createDimmer

method internal source
Weather.prototype._createDimmer()

Creates the dimmer. (Same as the RPG Maker MZ method of this name.)

Actions

destroy

method source
Weather.prototype.destroy()

Destroys the weather.

_addSprite

method internal source
Weather.prototype._addSprite()

Adds the sprite. (Same as the RPG Maker MZ method of this name.)

_removeSprite

method internal source
Weather.prototype._removeSprite()

Removes the sprite. (Same as the RPG Maker MZ method of this name.)

Updating & Drawing

update

method source
Weather.prototype.update()

Updates the weather for each frame.

_updateDimmer

method internal source
Weather.prototype._updateDimmer()

Updates the dimmer each frame. (Same as the RPG Maker MZ method of this name.)

_updateAllSprites

method internal source
Weather.prototype._updateAllSprites()

Updates the all sprites each frame. (Same as the RPG Maker MZ method of this name.)

_updateSprite

method internal source
Weather.prototype._updateSprite(sprite)

Updates the sprite each frame. (Same as the RPG Maker MZ method of this name.)

_updateRainSprite

method internal source
Weather.prototype._updateRainSprite(sprite)

Updates the rain sprite each frame. (Same as the RPG Maker MZ method of this name.)

_updateStormSprite

method internal source
Weather.prototype._updateStormSprite(sprite)

Updates the storm sprite each frame. (Same as the RPG Maker MZ method of this name.)

_updateSnowSprite

method internal source
Weather.prototype._updateSnowSprite(sprite)

Updates the snow sprite each frame. (Same as the RPG Maker MZ method of this name.)

Other

_rebornSprite

method internal source
Weather.prototype._rebornSprite(sprite)

Reborn sprite. (Same as the RPG Maker MZ method of this name.)