IrisScreenOrganizer

IrisScreenOrganizer

A ScreenOrganizer that uses an iris style transition.


Constructor

new IrisScreenOrganizer(game, screenClasses, screenConfigs)

Parameters:
Name Type Description
game CanvasPbjectContainer

A reference to the CanvasObjectContainer that is holding the whole game.

screenClasses Array

An Array of Classes that this screen organizer will hold. Other CanvasObjectContainers or CanvasObjects that will act as different screens for the game.

screenConfigs Array

An optional Array of methods to call when each screen is initialized.

Members

constructor

Methods

initializeTransition()

Overrriden method of ScreenOrganizer

Returns:

transitionBackward()

Overrriden method of ScreenOrganizer uses coverShape and draws an iris. Returns true when the iris has filled.

Returns:

transitionForward()

Overrriden method of ScreenOrganizer

Returns: