Class:Introcard
Defined in: Adventure/Introcard.js, line 5
Description
Introcard is a repository for properties 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", "GameContainer" );
MyGame.introcard.set({
});
Private Constructor:
var foo = new AdventureJS.Introcard(game)
Parameters:
-
gameGame
A reference to the game instance.
- Index
- Methods
- Properties
Index
Methods Collapse all |
set
set(props) → {Object}
Defined in: Adventure/Introcard.js, line 137
Parameters:
-
propsObject
A generic object containing properties to copy to the instance.
Returns:
Object
Returns the instance the method is called on (useful for chaining calls.)
show
show()
Defined in: Adventure/Introcard.js, line 97
Properties |
clear_on_continue
clear_on_continue :Boolean
Defined in: Adventure/Introcard.js, line 52
Default value: false
hide_statusbar
hide_statusbar :Boolean
Defined in: Adventure/Introcard.js, line 59
Default value: false
hide_titlebar
hide_titlebar :Boolean
Defined in: Adventure/Introcard.js, line 74
Default value: false
is_shown
is_shown :Boolean
Defined in: Adventure/Introcard.js, line 89
Default value: true
prompt_text
prompt_text :String
Defined in: Adventure/Introcard.js, line 38
Default value: ""
prompt_to_continue
prompt_to_continue :boolean
Defined in: Adventure/Introcard.js, line 45
Default value: false
show_statusbar_on_continue
show_statusbar_on_continue :Boolean
Defined in: Adventure/Introcard.js, line 66
Default value: true
show_statusbar_on_continue
show_statusbar_on_continue :Boolean
Defined in: Adventure/Outrocard.js, line 87
Default value: true
show_titlebar_on_continue
show_titlebar_on_continue :Boolean
Defined in: Adventure/Introcard.js, line 81
Default value: true
text
text :String
Defined in: Adventure/Introcard.js, line 31
Default value: ""