API Docs for: 0.1.0
Show:

CG.MediaAsset Class

Extends Class
Module: CG

CG.MediaAsset preloader and asset handler.

Methods

addFont

(
  • path
  • name
)

Parameters:

Returns:

:

addImage

(
  • path
  • name
)

Parameters:

Returns:

:

addJson

(
  • path
  • name
)

Parameters:

Returns:

:

addText

(
  • path
  • name
)

Parameters:

Returns:

:

addXml

(
  • path
  • name
)

Parameters:

Returns:

:

getFontByName

(
  • name
)

Parameters:

Returns:

:

getImageByName

(
  • name
)

Parameters:

Returns:

:

getImagesByName

(
  • name
)

Parameters:

Returns:

:

getJsonByName

(
  • name
)

Parameters:

Returns:

:

getTextByName

(
  • name
)

Parameters:

Returns:

:

getXmlByName

(
  • name
)

Parameters:

Returns:

:

init

(
  • obj
)

Parameters:

  • obj Object

    the game object CG.Game

progressScreen

()

render a progress screen to the canvas

startPreLoad

()