这里把粒子的几种效果粘出来,以便以后使用
原文地址:http://blog.csdn.net/qqmcy/article/details/37511259
//
// IntervalLayer.cpp
// testthirdone
//
// Created by 杜甲 on 14-7-7.
//
//
#include "IntervalLayer.h"
#define SID_STEP1 100
#define SID_STEP2 101
#define SID_STEP3 102
#define IDC_PAUSE 200
bool IntervalLayer::init()
{
return true;
}
IntervalLayer::IntervalLayer()
{
_time0 = _time1 = _time2 = _time3 = _time4 = 0.0f;
auto s = Director::getInstance()->getWinSize();
auto sun = ParticleSun::create();
sun->setTexture(Director::getInstance()->getTextureCache()->addImage("fire.png"));
sun->setPosition(Vec2(s.width / 2 -10