Using PhoneGap with Ejecta?

Discussion and feedback on Construct 2

Post » Mon Jan 27, 2014 7:07 am

Hi all,

Has anyone here used this tool?

From the description: WizCanvas allows a developer to create a ultra-performant native canvas component. The view is based on the Ejecta framework and has WebGL support.

https://github.com/Wizcorp/phonegap-plugin-wizCanvas

Here is the author's presentation from the last PhoneGap event:

http://youtu.be/ldsP6bcQv98?t=11m24s

Is it possible to use it in Android project with PhoneGap to increase the game performance?

I need access to native android features from my game so I choose PhoneGap. Hopefully the above tool can help me fix the performance issue with PhoneGap.

@Ashley

Thanks!
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Mon Jan 27, 2014 12:01 pm

I tried it but couldn't get it to work (even their examples).

Essentially what this is supposed to do is add an accelerated canvas based on ejecta on top of phonegap.
B
32
S
4
Posts: 57
Reputation: 1,550

Post » Mon Jan 27, 2014 12:07 pm

@Gianmichele Thanks! Did you modify the index.html file? I tried the example and the performance is awesome!
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Mon Jan 27, 2014 1:08 pm

Crosswalk supports WebGL and many more other features that Ejecta does not support.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600

Post » Mon Jan 27, 2014 1:29 pm

@Ashley Thanks! I'm considering this option because I need access to more native features and add some tweaks that can only be done in Eclipse.

How should I replace (if possible)

cr_createRuntime("c2canvas")

with

wizCanvas.create(String viewName, JSONObject options, Function success, Function fail)

Thanks!
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Mon Jan 27, 2014 3:45 pm

You can't, you would need to make much deeper changes to the engine. Also these wrappers which aren't real browsers tend to be riddled with annoying compatibility problems. You're much better off using a real browser engine like Crosswalk.Ashley2014-01-27 15:45:17
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600

Post » Mon Jan 27, 2014 4:27 pm

@Ashley Thanks! I'm noticed that there is a Crosswalk - Cordova project on Github. I will try it and see if the performance is good :) Btw, is Cordova Phonegap? Their websites and document pages look very similar
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Mon Jan 27, 2014 11:48 pm

While I agree with you Ashley that a browser based solution is the way to go and preferable, the iOS situation is a bit sad at the moment.

What I'd love to see is for Scirra to take this matter into his own hands, maybe forking Ejecta since it's opensource, and provide a solution for iOS until Apple decides to give proper support.

Crosswalk is proving to be a good solution and should mature very quickly, so the Android front is very well covered.

@tipztv: I'd love to know about your experience and maybe a walkthrough of what you did to get your project working

B
32
S
4
Posts: 57
Reputation: 1,550


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 30 guests