当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - cannot see particle (cocos2d-x 3.5 with Particle Designer2)

问题描述:

Development environment:

xcode 6.3

cocos2d-x 3.5

Particle Designer 2

I've create a particle in PD2, and save the project named as StarOcean.pdproject.

Following is the code:

auto p_StarOcean = ParticleSystemQuad::create("StarOcean.pdproject");

p_StarOcean->setPosition(size.width/2, size.height/2);

this->addChild(p_StarOcean);

Xcode can compile and run it in my iPhone, but I see nothing in the screen.

From the book, it told me that the file created by PD2 should with *.plist naming format, but what I created is *.pdproject format.

Any body could help to solve the problem?

分享给朋友:
您可能感兴趣的文章:
随机阅读: