What are the limits to rendering non canvas html elements?

0 favourites
  • 8 posts
From the Asset Store
Get ready to dive into a sea of endless excitement with "Dolphin Jump," the thrilling new game that puts you in control
  • Is it possible to use JQuery to create a few divs and instantiate another library? So for example, including some sort of calendar widget normally meant for webpages, or perhaps even using html form elements and jquery animations.

    If it is possible, what are the limitations? I'm a little unclear on how the crosscompilers work in terms of what's available in the "browser"

    Thanks!

    Edit, here's a much more realistic example, embedding a facebook feed widget. Is this possible?

  • Yes, it is possible. Pode had made plugins for some other HTML elements already.

  • All the form control plugins do is create a HTML element and float it above the canvas. In theory you can create any HTML content and float it above the canvas in the same way. Take a look at the implementation to those plugins to see how it's done.

  • The only issue would be with the CocoonJS compiler. I use DIV's for my Facebook plugin with both web apps and Phonegap apps sucessfully.

  • I create an entire webGL canvas above the construct window for my Q3D plugin, and perform lots of complicated rendering. Not sure how well it works on mobile, but it works fine in nodewebkit.

  • Thanks for the answers everyone

    So far it seems like crosswalk android and nodewebkit apps are literally just an embedded browser with all of the browser's normal javascript API available. That's pretty awesome. It seems the only limitation is to be careful that your elements are responsive to window size.

    Whats the issue with cocoonJS? I read it's being deprecated for C2. Never used it, but the performance on crosswalk is awesome so far.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • CocoonJS and Ejecta are not real browser engines and basically don't support a DOM, so you can't create any HTML elements. We've officially dropped support for CocoonJS and will likely drop Ejecta in future as well, largely because of the many limitations that come from working with non-browser engines.

  • Hello everyone,

    As Ashley has already said, Canvas+ (previously known as CocoonJS) is not a complete browser. It is designed for high performance on canvas and WebGL based projects. In order to support DOM and other HTML elements, CocoonJS offers other runtime choices like Webview and Webview+. And we are also working on integrating Crosswalk and other runtimes. That should provide you with the right tool for the job in all kind of projects.

    Regards,

    Ludei team.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)