Home  >  Q&A  >  body text

objective-c - iOS和Android的原生应用中,怎么嵌入Cocos2dx做的游戏?

怪我咯怪我咯2717 days ago324

reply all(3)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:41:58

    cocos2dx can realize communication between java and c++ through jni

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:41:58

    You can just add cocos2dx’s gl view to your view

    For details, please take a look at the methods in AppDelegate.mm and Cocos2dxActivity of cocos2dx

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:41:58

    Wori, no one has given a correct answer, I will give it:

    Integration of UIKit and Cocos2d-x; setting the background of CCEAGLView to be transparent to display the UIView behind it; and solutions to problems encountered during integration

    http://blog.csdn.net/michaeli...

    Demo: https://github.com/michaelin1...
    Project: UIKitCocos2dLuaTest

    Old solution reference: https://www.raywenderlich.com...

    reply
    0
  • Cancelreply