Load HTML Canvas

Load HTML Canvas


Hi !

I have a game code by html 5, now i want load it to screen cocos2d-js.

Anyone can help me do it. Thanks you



As I understand you have some game implemented just in html 5 without cocos2d.
And you want to port it to cocos2d?


Yep. i have game code by js. Now i wana bring to cocos2d-js.


Sad news: you need to port it manually: rewrite UI in coocs2d.
Good news: cocos2d supports js so you can copy many code related to logic.


i have a solution is using webiew to play it. This game is really big, i cant re-code all UI the same.


If you use web view then you don’t need Cocos :smile: