Class:Introcard
Defined in: adventure/Introcard.js, line 5
Description
Introcard can be used to print an introductory screen at the start of the game. Introcard is created automatically by Game. This is an internal class that authors should not need to construct. However, authors can set intro options from their game file as shown below.
Example:
var MyGame = new adventurejs.Game( "MyGame", "GameDisplay" );
MyGame.introcard.set({
});
Private Constructor:
var foo = new adventurejs.Introcard(game)
Parameters:
-
gameGame
A reference to the game instance.
Inherited
Overrides
- Index
- Methods
- Properties
Methods Collapse all |
set
set(props) → {adventurejs.Introcard}
Defined in: adventure/Introcard.js, line 38
Parameters:
-
propsObject
A generic object containing properties to copy to the instance.
Provides a chainable shortcut method for setting a number of properties on the instance.
Returns:
adventurejs.Introcard
Returns the instance the method is called on (useful for chaining calls.)