EndGate.GameConfiguration

Description: Defines a GameConfiguration object that is used to represent the current state of a Game object.

Constructors

GameConfiguration (updateRateSetter)
Creates a new instance of the GameConfiguration object.

updateRateSetter: (updateRate: number) => void, initialQuadTreeSize: EndGate.Size2d
A function that updates the rate of "Update" execution.

Fields

DrawOnlyAfterUpdate: boolean
Indicates whether the game will only draw after an update. If there are graphic modifications outside of the game update loop this should be set to 'false' to ensure the latest data is always drawn to the game screen.

UpdateRate: number
Gets or sets the UpdateRate of the game. Update rates are represented as X many updates per second.

CollisionConfiguration: EndGate.Collision.CollisionConfiguration
Gets the CollisionConfiguration of the game. These configurations are used to optimize the collision management performance.

Examples

There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.