Class: Weather

Weather()

new Weather()

The weather effect which displays rain, storm, or snow.
Properties:
Name Type Description
type String The type of the weather in ['none', 'rain', 'storm', 'snow'].
power Number The power of the weather in the range (0, 9).
origin Point The origin point of the weather for scrolling.
_width Number
_height Number
_sprites Array.<Sprite>
_rainBitmap Bitmap
_stormBitmap Bitmap
_snowBitmap Bitmap
_dimmerSprite ScreenSprite

Extends

  • PIXI.Container

Methods

initialize()

update()

Updates the weather for each frame.