Sign in to follow this  

Phonegap FastCanvas support ?

Recommended Posts

Probably not.


Detection of Cordova/PhoneGap is relatively new to Phaser, and I haven't really gotten around to detecting and using various plugins yet.


Looking at the API for FastCanvas, though, changes to use it would have to happen at the Pixi level. (Phaser uses Pixi.js for all its rendering.) And given that, it seems unlikely that it would be integrated any time soon because of the API differences between FastCanvas and Canvas itself.


However, if you, @BobDylan, or anyone else wanted to start work on this, looking Phaser.Canvas is the best place to start. Changing how Phaser creates a canvas and then checking what errors happen afterwards would give you a great starting place to seeing which functions need to be changed and where.

Share this post

Link to post
Share on other sites

Ok thanks. I did this but immediately found out that some important functions, like fillRect()  are not implemented in FastCanvas.

I'm afraid I don't have sufficient knowledge of all canvas functions, so I have no idea how much work this would involve to get it working.


Other options are Ejecta-x, CocoonJS and Crosswalk.

I couldn't get Ejecta-x to work (and it doesn't seem very well maintained) and I just hate the uncertain price model and splash screen of CocoonJS.

Crosswalk (using Intel XDK) seems like a good option, but it doesn't support Android 2.3 and the apk-size is quite big.

I found out about gles.js, which looks promising, but it isn't released yet, I believe.


Maybe I should just concentrate on getting my game finished and hope that in a few months time there will be a good solution to wrap a HTML5 game for Android.

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.