Class cc.Layer

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.Layer is a subclass of cc.Node that implements the TouchEventsDelegate protocol.

Method Summary

Class Detail

cc.Layer()
cc.Layer is a subclass of cc.Node that implements the TouchEventsDelegate protocol.
All features from cc.Node are valid, plus the following new features:
It can receive iPhone Touches
It can receive Accelerometer input

Method Detail

  • <static> {cc.Layer|Null} cc.Layer.create()
    creates a layer
    // Example
    var myLayer = cc.Layer.create();
    //Yes! it's that simple
    Returns:
    {cc.Layer|Null}