将 Cocos2d 项目的一部分移动到另一个项目中
我来自法国,所以请原谅我糟糕的英语。
所以我有一个项目不使用 cocos 2d 和一个移动的球,我还有另一个项目,但使用 cocos 2D,其中有粒子。
我想做的是将cocos 2d项目中带有粒子的部分带入我真实的带有球的项目中。
首先因为我不喜欢我的项目是用 cocos 2d 制作的,其次我已经在我的真实项目中完成了所有工作,我必须带上粒子。
请问我该怎么做?
I'm from France so excuse my poor english.
So I have a project which don't use cocos 2d with a ball which is mooving, and I have another project but with cocos 2D where there are particles.
What I want to do is to bring the part of the cocos 2d project with particles into my real project with the ball.
First because I don't like the fact that my project is made with cocos 2d and second I have done everything on my real project and I must bring the particles.
How can I do this please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议你做的是:
现在你已经有了框架源代码,只需将其添加到视图控制器中即可需要它。检查 Cocos2d 示例附带的 AttachDemo 测试,了解如何执行此操作。
what i recommend you to do is to:
Now that you have the framework source code in there, it is just a matter of adding it to a viewcontroller that needs it. Check the AttachDemo test that comes with the Cocos2d examples to see how to do this.
我建议您做的是,
我认为这应该可以完成工作。
what i recommend you to do is ,
i think this should do the job.