CG.Screen Class
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'
})
Item Index
Methods
Methods
addLayer
(
-
layer
add a CG.Layer object to the layer array
Parameters:
-
layer
Layerto add
draw
()
getLayerByName
(
Boolean/layer
-
layername
find CG.Layer by name
Parameters:
-
layername
Stringfind layer by name
Returns:
Boolean/layer: