Cocos2d-x: possible to use HTML (UIWebView)?

痞子三分冷 提交于 2019-12-04 10:35:55

You can use CCXWebview for that with Cocos2d-x. This extension is based on Cocos2d-x 2.0.4 and it seems to work also on Cocos2d-x 2.x with some modification.

However, if you want to use Cocos2d-x 3.0 for Android, you cannot use it because Cocos2d-x 3.0 uses NativeActivity, thus you cannot combine Android WebView on the Cocos2d-x screen.

EDITED

only problem is that I have little knowledge of Java or C++ ... It would take me years to figure the Java and C++ things out :)

So why are you sticking to use Cocos2d-x??? Why don't you use Cocos2d-html5? It has same functionality as Cocos2d-x JavaScript binding and it uses HTML5 Canvas, so you can use DOM with it.

https://twitter.com/hyperandroid/status/311534580962295809 :

Cocoonjs can run Cocos2d-html5 games too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!