<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?

      How to implement Cocos2D?(如何实现 Cocos2D?)
        <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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                Resume game cocos2d(恢复游戏 cocos2d)
                Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)
              • <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>
                            <tbody id='HbfqG'></tbody>

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