Class: MarioTrans

nav.MarioTrans

Will close in a telescope/spot light effect as seen in early Mario games.
- Evoked with 'mario' transition ID.
- Optionally overwrite the background colour by using a colon paramer, eg. '`mario:ff3300'.
- Use the scene subclass method Scene#getMarioTransFocusRad to configure the spotlight size.
- Use the scene subclass method Scene#getMarioTransPt to configure the spotlight position.
Source:
Example
nav.openScene(myScene, false, 'mario')

Methods

(static) setDefaultBgCol(defaultBgCol)

Set default background color for the transition.
Parameters:
Name Type Description
defaultBgCol int Color, eg. 0xff3300.
Source:
Example
nav.trans.mario.setDefaultBgCol(0xff3300)