mirror of https://github.com/axmolengine/axmol.git
parent
b34b5b379e
commit
d15ab525a3
|
@ -139,7 +139,7 @@ void DemoBigFlower::onEnter()
|
|||
|
||||
m_background->addChild(m_emitter, 10);
|
||||
m_emitter->release(); // win32 : use this line or remove this line and use autorelease()
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_star1_scale) );
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_stars1) );
|
||||
|
||||
m_emitter->setDuration(-1);
|
||||
|
||||
|
@ -223,7 +223,7 @@ void DemoRotFlower::onEnter()
|
|||
|
||||
m_background->addChild(m_emitter, 10);
|
||||
m_emitter->release(); // win32 : Remove this line
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_star2_scale) );
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_stars2) );
|
||||
|
||||
// duration
|
||||
m_emitter->setDuration(-1);
|
||||
|
@ -349,7 +349,7 @@ void DemoExplosion::onEnter()
|
|||
m_emitter = CCParticleExplosion::node();
|
||||
m_background->addChild(m_emitter, 10);
|
||||
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_star1_scale) );
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_stars1) );
|
||||
|
||||
m_emitter->setIsAutoRemoveOnFinish(true);
|
||||
|
||||
|
@ -528,7 +528,7 @@ void DemoModernArt::onEnter()
|
|||
m_emitter->setEndSizeVar(8.0f);
|
||||
|
||||
// texture
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_fire_scale) );
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_fire) );
|
||||
|
||||
// additive
|
||||
m_emitter->setIsBlendAdditive(false);
|
||||
|
@ -554,7 +554,7 @@ void DemoRing::onEnter()
|
|||
|
||||
m_background->addChild(m_emitter, 10);
|
||||
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_star1_scale) );
|
||||
m_emitter->setTexture( CCTextureCache::sharedTextureCache()->addImage(s_stars1) );
|
||||
m_emitter->setLifeVar(0);
|
||||
m_emitter->setLife(10);
|
||||
m_emitter->setSpeed(100);
|
||||
|
|
|
@ -15,10 +15,11 @@ static const char s_back1[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Imag
|
|||
static const char s_back2[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/background2.png";
|
||||
static const char s_back3[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/background3.png";
|
||||
static const char s_stars1[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/stars.png";
|
||||
static const char s_stars2[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/stars2.png";
|
||||
static const char s_fire[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/fire.png";
|
||||
static const char s_snow[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/snow.png";
|
||||
static const char s_star1_scale[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/stars.png";
|
||||
static const char s_star2_scale[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/stars2.png";
|
||||
static const char s_fire_scale[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/fire.png";
|
||||
// static const char s_star1_scale[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/stars.png";
|
||||
// static const char s_star2_scale[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/stars2.png";
|
||||
// static const char s_fire_scale[] = "/NEWPLUS/TDA_DATA/Data/cocos2d_tests/Images/fire.png";
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images
|
||||
copy .\Res\Images\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images
|
||||
copy .\Res\Images\fire.png D:\Work7\NEWPLUS\TDA_DATA\UserData
|
||||
copy .\Res\Images\fire.png D:\Work7\NEWPLUS\TDA_DATA\UserData
|
||||
copy .\Res\Images\fps_images.png D:\Work7\NEWPLUS\TDA_DATA\UserData
|
||||
copy .\Res\Images\HelloWorld.png D:\Work7\NEWPLUS\TDA_DATA\UserData
|
Loading…
Reference in New Issue