objective-c - iOS和Android的原生应用中,怎么嵌入Cocos2dx做的游戏?
怪我咯
怪我咯 2017-04-17 16:39:58
0
3
316
怪我咯
怪我咯

走同样的路,发现不同的人生

Antworte allen(3)
伊谢尔伦

cocos2dx 可以通过jni实现java和c++的通信

Ty80

你把cocos2dx的gl的view加到你的view里不就得了

具体你看看cocos2dx的AppDelegate.mm和Cocos2dxActivity里的做法

Ty80

沃日,没人给一个正确答案,我来给:

UIKit和Cocos2d-x的整合使用;设置CCEAGLView背景为透明,来显示背后的UIView; 以及整合中遇到的问题的解决方案

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

Demo: https://github.com/michaelin1...
工程:UIKitCocos2dLuaTest

老的方案参考:https://www.raywenderlich.com...

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!