API Docs for: 1.4.0
Show:

Kiwi.GameManager Class

Defined in: src\Kiwi.ts:308
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:317

The type of object that this is.

Returns:

String:

"GameManager"

register

(
  • game
)
public

Defined in src\Kiwi.ts:336

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:349

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:327

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

CAMERA

Number public static

Defined in src\Kiwi.ts:278

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:228

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

Default: 1

DEBUG_ON

Number public static

Defined in src\Kiwi.ts:218

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

Default: 0

DEVICE

Device public static

Defined in src\Kiwi.ts:238

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:268

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

Default: 3

GROUP

Number public static

Defined in src\Kiwi.ts:258

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:288

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

Default: 5

Log

Kiwi.Utils.Log public static

Defined in src\Kiwi.ts:146

RENDERER_AUTO

Number public static

Defined in src\Kiwi.ts:185

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:165

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

Default: 0

RENDERER_WEBGL

Number public static

Defined in src\Kiwi.ts:175

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

Default: 1

STATE

Number public static

Defined in src\Kiwi.ts:248

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:197

Contains the number associated with the targetting of browsers.

Default: 0

TARGET_COCOON

Number public static

Defined in src\Kiwi.ts:207

Contains the number associated with the targetting of CocoonJS.

Default: 1

TILE_LAYER

Number public static

Defined in src\Kiwi.ts:298

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:155

The version of Kiwi that is currently being used.