API Docs for: 1.1.0
Show:

Kiwi.GameManager Class

Defined in: src\Kiwi.ts:296
Module: Kiwi

The GameManager is used to maintain mulitple instances of Kiwi games within a single document.

Item Index

Properties

Methods

objType

() String public

Defined in src\Kiwi.ts:305

The type of object that this is.

Returns:

String:

register

(
  • game
)
public

Defined in src\Kiwi.ts:324

Used to register a new Game with this manager. Returns the new number of games that have been registered.

Parameters:

  • game Game

    The game you are wanting to register.

Returns:

{Number] The new number of games registered.

total

() Number public

Defined in src\Kiwi.ts:337

Returns the total number of game that are currently registered with this GameManager.

Returns:

Number:

Total number of registered games.

Properties

_games

Game private static

Defined in src\Kiwi.ts:315

A list of all of the games that are currently on this document.

CAMERA

Number public static

Defined in src\Kiwi.ts:265

Contains a number that is used to identify objects that are a Camera.

Default: 4

DEBUG_OFF

Number public static

Defined in src\Kiwi.ts:215

Contains the number that is used to turn the Debug options off.

Default: 1

DEBUG_ON

Number public static

Defined in src\Kiwi.ts:205

Contains the number that is used to turn the Debug options on.

Default: 0

DEVICE

Device public static

Defined in src\Kiwi.ts:225

Contains the Device class that is used to determine which features are supported by the users browser.

ENTITY

Number public static

Defined in src\Kiwi.ts:255

Contains a number that is used to identify objects that are a Entity.

Default: 3

GROUP

Number public static

Defined in src\Kiwi.ts:245

Contains a number that is used to identify objects that are a Group.

Default: 2

HUD_WIDGET

Number public static

Defined in src\Kiwi.ts:275

Contains a number that is used to identify objects that are a HUD Widget.

Default: 5

RENDERER_AUTO

Number public static

Defined in src\Kiwi.ts:172

Available since 1.1.0

A Static property that contains the number associated with RENDERER AUTODETECTION

Default: 2

RENDERER_CANVAS

Number public static

Defined in src\Kiwi.ts:152

A Static property that contains the number associated with the CANVAS RENDERER.

Default: 0

RENDERER_WEBGL

Number public static

Defined in src\Kiwi.ts:162

A Static property that contains the number associated with the WEBGL RENDERER.

Default: 1

STATE

Number public static

Defined in src\Kiwi.ts:235

Contains a number that is used to identify objects that are a State.

Default: 0

TARGET_BROWSER

Number public static

Defined in src\Kiwi.ts:184

Contains the number associated with the targetting of browsers.

Default: 0

TARGET_COCOON

Number public static

Defined in src\Kiwi.ts:194

Contains the number associated with the targetting of CocoonJS.

Default: 1

TILE_LAYER

Number public static

Defined in src\Kiwi.ts:285

Contains a number that is used to identify objects that are a TILE_LAYER.

Default: 6

VERSION

String public static

Defined in src\Kiwi.ts:142

The version of Kiwi that is currently being used.