API Docs for: 1.2.1
Show:

Kiwi.GameManager Class

Defined in: src/Kiwi.ts:306
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:315

The type of object that this is.

Returns:

String:

"GameManager"

register

(
  • game
)
public

Defined in src/Kiwi.ts:334

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

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

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

CAMERA

Number public static

Defined in src/Kiwi.ts:276

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

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

Default: 1

DEBUG_ON

Number public static

Defined in src/Kiwi.ts:216

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

Default: 0

DEVICE

Device public static

Defined in src/Kiwi.ts:236

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

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

Default: 3

GROUP

Number public static

Defined in src/Kiwi.ts:256

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

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

RENDERER_AUTO

Number public static

Defined in src/Kiwi.ts:183

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

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

Default: 0

RENDERER_WEBGL

Number public static

Defined in src/Kiwi.ts:173

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

Default: 1

STATE

Number public static

Defined in src/Kiwi.ts:246

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

Contains the number associated with the targetting of browsers.

Default: 0

TARGET_COCOON

Number public static

Defined in src/Kiwi.ts:205

Contains the number associated with the targetting of CocoonJS.

Default: 1

TILE_LAYER

Number public static

Defined in src/Kiwi.ts:296

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

The version of Kiwi that is currently being used.