<i id='oevMJ'><tr id='oevMJ'><dt id='oevMJ'><q id='oevMJ'><span id='oevMJ'><b id='oevMJ'><form id='oevMJ'><ins id='oevMJ'></ins><ul id='oevMJ'></ul><sub id='oevMJ'></sub></form><legend id='oevMJ'></legend><bdo id='oevMJ'><pre id='oevMJ'><center id='oevMJ'></center></pre></bdo></b><th id='oevMJ'></th></span></q></dt></tr></i><div id='oevMJ'><tfoot id='oevMJ'></tfoot><dl id='oevMJ'><fieldset id='oevMJ'></fieldset></dl></div>

      <bdo id='oevMJ'></bdo><ul id='oevMJ'></ul>

    1. <small id='oevMJ'></small><noframes id='oevMJ'>

      <tfoot id='oevMJ'></tfoot>
      <legend id='oevMJ'><style id='oevMJ'><dir id='oevMJ'><q id='oevMJ'></q></dir></style></legend>
    2. 如何实现 Cocos2D?

      时间:2024-08-12
        <tbody id='BeiQe'></tbody>
      <i id='BeiQe'><tr id='BeiQe'><dt id='BeiQe'><q id='BeiQe'><span id='BeiQe'><b id='BeiQe'><form id='BeiQe'><ins id='BeiQe'></ins><ul id='BeiQe'></ul><sub id='BeiQe'></sub></form><legend id='BeiQe'></legend><bdo id='BeiQe'><pre id='BeiQe'><center id='BeiQe'></center></pre></bdo></b><th id='BeiQe'></th></span></q></dt></tr></i><div id='BeiQe'><tfoot id='BeiQe'></tfoot><dl id='BeiQe'><fieldset id='BeiQe'></fieldset></dl></div>
      • <bdo id='BeiQe'></bdo><ul id='BeiQe'></ul>

            <small id='BeiQe'></small><noframes id='BeiQe'>

            <legend id='BeiQe'><style id='BeiQe'><dir id='BeiQe'><q id='BeiQe'></q></dir></style></legend>

                <tfoot id='BeiQe'></tfoot>
                本文介绍了如何实现 Cocos2D?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                I have downloaded the latest cocos2d from their site, and I have unzipped it. Now I am confused exactly how to implement it into an already existing project. What files do I drag over and is there anything else I have to do besides that?

                Thanks!

                解决方案

                You can link cocos2d into your project as shown here. He uses a special version that supports arc, but it works in exactly the same way with the original version. Then in a next step make sure that you import all the important libraries:

                • QuartzCore.framework
                • OpenGLES.framework
                • AVFoundation.framework
                • UIKit.framework
                • Foundation.framework
                • CoreGraphics.framework

                If you use sound you also will need:

                • OpenAL.framework
                • AudioToolbox.framework
                • libcocosDenshion.a

                Now you need to set up a rootview that supports OpenGL. Look at the Hello World example how they did this there. You should now be able to implement and display Cocos2d scenes on screen.

                这篇关于如何实现 Cocos2D?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Cocos2D 场景内存管理 下一篇:Cocos2d:CCSprite 子类中的 CCSprite initWithFile 崩溃

                相关文章

              • <small id='HbfqG'></small><noframes id='HbfqG'>

                • <bdo id='HbfqG'></bdo><ul id='HbfqG'></ul>

                    <i id='HbfqG'><tr id='HbfqG'><dt id='HbfqG'><q id='HbfqG'><span id='HbfqG'><b id='HbfqG'><form id='HbfqG'><ins id='HbfqG'></ins><ul id='HbfqG'></ul><sub id='HbfqG'></sub></form><legend id='HbfqG'></legend><bdo id='HbfqG'><pre id='HbfqG'><center id='HbfqG'></center></pre></bdo></b><th id='HbfqG'></th></span></q></dt></tr></i><div id='HbfqG'><tfoot id='HbfqG'></tfoot><dl id='HbfqG'><fieldset id='HbfqG'></fieldset></dl></div>

                    <tfoot id='HbfqG'></tfoot><legend id='HbfqG'><style id='HbfqG'><dir id='HbfqG'><q id='HbfqG'></q></dir></style></legend>