Hi all,
I think you all know about ludei.com which includes a cloud compilation system in which we can compile the javascript code to native , so we can install it on ios and android. I have seen that they support cocos2d-html5 as their game engine. The only limitation to be compatible with cocoonjs is it should include pure javascript. The documentation says that we can create canvas element as
document.onload = function()
{
var canvas = document.createElement(‘canvas’);
canvas.width = 600;
canvas.height = 400;
canvas.id = ‘gameCanvas’;
document.body.appendChild(canvas);
}
I have included this code in the cocos2d.js at the starting point of the function and made a hello world app ,which runs on browser but it has problems launching android , do you have any ideas?
Please Reply.