mirror of https://github.com/axmolengine/axmol.git
particle test: uses texturecache
This commit is contained in:
parent
fe3880f0a6
commit
7e0c16c53d
|
@ -47,7 +47,7 @@ scenes['test_manual'] = function () {
|
||||||
|
|
||||||
scene.addChild(p1);
|
scene.addChild(p1);
|
||||||
|
|
||||||
// p1.texture = cocos.TextureCache.sharedTextureCache.addImage( "stars2.png" );
|
p1.texture = cocos.TextureCache.sharedTextureCache().addImage( "stars2.png" );
|
||||||
|
|
||||||
p1.duration = 3;
|
p1.duration = 3;
|
||||||
|
|
||||||
|
|
|
@ -342,20 +342,6 @@ bool CCParticleSystem::initWithTotalParticles(unsigned int numberOfParticles)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pTexture = CCTextureCache::sharedTextureCache()->addImage( "stars2.png" );
|
|
||||||
m_pTexture->retain();
|
|
||||||
|
|
||||||
m_tStartColor.r = 0.5;
|
|
||||||
m_tStartColor.g = 0.5;
|
|
||||||
m_tStartColor.b = 0.5;
|
|
||||||
m_tStartColor.a = 0.5;
|
|
||||||
|
|
||||||
m_tEndColor.r = 1.0;
|
|
||||||
m_tEndColor.g = 0.0;
|
|
||||||
m_tEndColor.b = 0.0;
|
|
||||||
m_tEndColor.a = 1.0;
|
|
||||||
|
|
||||||
|
|
||||||
// default, active
|
// default, active
|
||||||
m_bIsActive = true;
|
m_bIsActive = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue