Class: ScreenSprite

ScreenSprite()

new ScreenSprite()

The sprite which covers the entire game screen.
Properties:
Name Type Description
YEPWarned Boolean [static]
opacity Number The opacity of the sprite (0 to 255).
anchor Point
blendMode Number
_graphics PIXI.Graphics
_red Number
_green Number
_blue Number
_colorText String

Extends

  • PIXI.Container

Methods

(static) warnYep()

initialize()

setBlack()

Sets black to the color of the screen sprite.

setColor(r, g, b)

Sets the color of the screen sprite by values.
Parameters:
Name Type Description
r Number The red value in the range (0, 255)
g Number The green value in the range (0, 255)
b Number The blue value in the range (0, 255)

setWhite()

Sets white to the color of the screen sprite.