Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0

Defined in: adventure/Introcard.js, line 5

Framework class

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:

  • game Game
    A reference to the game instance.
Inherited Overrides

Index

Methods:

Properties:

Methods Collapse all  |  Expand all

set
set(props) → {adventurejs.Introcard}

Defined in: adventure/Introcard.js, line 38

Parameters:

  • props Object
    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.)

Properties  |