API Docs for: 0.1.0
Show:

CG.Screen Class

Extends CG.Class
Module: CG

CG.Screen is a child of CG.Director and a container to collect/group CG.Layers and/or CG.B2DWorld


                        var s = new CG.Screen({
                          name: 'menuscreen'
                        })
                        

Methods

addLayer

(
  • layer
)

add a CG.Layer object to the layer array

Parameters:

  • layer Layer

    to add

draw

()

getLayerByName

(
  • layername
)
Boolean/layer

find CG.Layer by name

Parameters:

  • layername String

    find layer by name

Returns:

Boolean/layer:

init

(
  • options
)

Options: name {string}

Parameters:

Returns:

:

update

()