Class cc.ParticleSun

Class Summary
Constructor Attributes Constructor Name and Description
 
A sun particle system

Method Summary

Class Detail

cc.ParticleSun()
A sun particle system
var emitter = new cc.ParticleSun();

Method Detail

  • <static> {cc.ParticleSun} cc.ParticleSun.create()
    Create a sun particle system
    Deprecated:
    since v3.0 please use new cc.ParticleSun() instead.
    Returns:
    {cc.ParticleSun}
  • ctor()

    The cc.ParticleSun's constructor.
    This function will automatically be invoked when you create a node using new construction: "var node = new cc.ParticleSun()".
    Override it to extend its behavior, remember to call "this._super()" in the extended "ctor" function.

  • {Boolean} initWithTotalParticles(numberOfParticles)
    initialize a sun particle system with number Of Particles
    Parameters:
    {Number} numberOfParticles
    Returns:
    {Boolean}