Class: Game
Implements
Constructors
new Game()
new Game(
options
):Game
The base class for all games. New games should extend this class.
Parameters
• options: GameOptions
Returns
Defined in
Game.ts:136
Properties
_canvasKit?
optional
_canvasKit:CanvasKit
Defined in
Game.ts:95
additionalParameters?
optional
additionalParameters:unknown
Additional activity parameters that were set.
Implementation of
Defined in
Game.ts:119
beginIso8601Timestamp
beginIso8601Timestamp:
string
=""
The value of new Date().toISOString() immediately before the activity begins
Implementation of
Activity
.beginIso8601Timestamp
Defined in
Game.ts:107
beginTimestamp
beginTimestamp:
number
=NaN
The value of performance.now() immediately before the activity begins
Implementation of
Defined in
Game.ts:106
canvasCssHeight
canvasCssHeight:
number
=0
Defined in
Game.ts:858
canvasCssWidth
canvasCssWidth:
number
=0
Defined in
Game.ts:857
canvasKitWasmVersion
readonly
canvasKitWasmVersion:"__CANVASKITWASM_VERSION__"
="__CANVASKITWASM_VERSION__"
Defined in
Game.ts:104
currentScene?
optional
currentScene:Scene
Defined in
Game.ts:844
data
data:
GameData
Defined in
Game.ts:834
entryScene?
optional
entryScene:string
|Scene
The scene, or its name as a string, to be presented when the game is started. If this is undefined, the game will start with the first scene that has been added
Defined in
Game.ts:833
eventStore
eventStore:
EventStore
Defined in
Game.ts:125
freeNodesScene
freeNodesScene:
Scene
Defined in
Game.ts:861
i18n?
optional
i18n:I18n
Defined in
Game.ts:114
id
id:
string
Short identifier of this activity
Implementation of
Defined in
Game.ts:99
manifest?
optional
manifest:Manifest
Defined in
Game.ts:124
materializedNodes
materializedNodes:
M2Node
[]
Nodes created during event replay
Defined in
Game.ts:129
moduleMetadata
moduleMetadata:
ModuleMetadata
Defined in
Game.ts:103
name
name:
string
Human-friendly name of this activity
Implementation of
Defined in
Game.ts:98
options
options:
GameOptions
Defined in
Game.ts:105
publishUuid
publishUuid:
string
=""
Persistent unique identifier (UUID) of the activity. Required for games. Optional or empty string if a survey.
Implementation of
Defined in
Game.ts:100
scenes
scenes:
Scene
[]
Defined in
Game.ts:860
sessionUuid
sessionUuid:
string
=""
The activity's parent session unique identifier. This is newly generated each session.
Implementation of
Defined in
Game.ts:96
snapshots
snapshots:
Image
[]
Defined in
Game.ts:2515
staticTrialSchema
staticTrialSchema:
object
Index Signature
[key
: string
]: JsonSchemaDataTypeScriptTypes
Defined in
Game.ts:120
studyId?
optional
studyId:string
The ID of the study (protocol, experiment, or other aggregate) that contains the repeated administrations of this activity. The ID should be short, url-friendly, human-readable text (no spaces, special characters, or slashes), e.g., nyc-aging-cohort
.