Jump to content

[YES OR NO] Pixi.js + Require.js + PhoneGap


neonwarge04
 Share

Recommended Posts

Would this work? I think I am giving up with this HTML5 JavaScript mobile development. THis is such pain in the a$$ to work with. I am forced to use this anyway. I could have used something else but I can't. Is there a way for me to make this work through phone gap? I've been rejected using Cocoon.js. All I get is smirk faces as Cocoon.js is infected with ebola. I am stuck with PhoneGap. Have you tried pixi.js app to work with PhoneGap? If so, how?

Link to comment
Share on other sites

Pixi works fine with PhoneGap, as do most other client JS solutions.

 

I think there were some concerns over canvas performance in some native wrappers (dont think it was PhoneGap though) so you'll want to check carefully if your app is perf critical.

 

Also, personally I'd ditch require.js, AMD is (and always has been) rubbish, conceptually its good but practically its a mess. Plus, native modules are on their way to the front end (ironically the delivery could be fairly similar to AMD but it requires changes to how the web and browsers work, in short, it gets complicated but from an end users point its easy) and they'll be basically commonJS style, so use something like browserify or webpack and you'll be good to go from native day 1, plus, you get the bonus of using a module system that works fairly well.

Link to comment
Share on other sites

hi. ludei..

do you have plan to optimize webgl?

 

when i used cocoon with pixi.js

 

always it crashed after run game... with webview and webview+ and too slow

 

canvas+ mode can't use because of resolution problems

 

 

 

this topic wanna be discussed more and more .

 

thx

Link to comment
Share on other sites

  • 3 weeks later...

Hello GBear,

 

If you create a game in pixi.js I won't recommend to use Webview or Webview+. Webview is the native webview of the device so it may not even implement WebGL in the first place, and Webview+ is the Crosswalk Webview in Android (lately their WebGL wasn't the best) or the WebviewKT in iOS (this WebGL is actually very good).

 

I'm more interested in your resolution problems with Canvas+. That's something we can (and we should) fix.

 

Do you have a testcase of the problem?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...