Phonegap + Construct 2

Discussion and feedback on Construct 2

Post » Wed Nov 02, 2011 3:19 pm

Update: sound - Ogg this time - works with a few glitches in FireFox for Android.

So for webapps, the problem is kinda already solved; kind of, because the glitches are really annoying, and with the current beta of FireFox for Android it isn't better.

Now for native Android, a wizard could use fennec source code to build an Android wrapper for c2 games, but I fear not to be that one...
Ashley?
B
10
G
2
Posts: 15
Reputation: 1,325

Post » Wed Nov 02, 2011 4:06 pm

Is there a way to make adhocs with phoneGap?
B
69
S
11
G
6
Posts: 324
Reputation: 8,321

Post » Thu Nov 03, 2011 9:34 pm

@mammoth: a simple google search would lead you to http://community.phonegap.com/nitobi/topics/phonegap_build_ios_ad_hoc?from_gsfn=true

Besides that, I have some news:

-The recent release of the HTML5-oriented MobiUs browser (advertised as a "web app browser") for iOS made me full of hope that it would work at least as good as Firefox for Android with C2 games - that is, support sound, even if not perfectly - but still no luck; didn't try my mp3 workaround there, as I doubt it would change anything...

-It will be quite difficult to use Fennec as a wrapper to make a sound-enabled native Android app from a C2 project, as there is no xulrunner (Mozilla's thing to enable such things easily) available for Android (yet).
So for now, a web-app requiring the user to install Firefox is the only realistic option for providing sound to Android users.

Let's hope that the current situation will improve soon!
B
10
G
2
Posts: 15
Reputation: 1,325

Post » Thu Nov 03, 2011 11:01 pm

The next build will use the PhoneGap API (i.e. not a part of HTML5) to play audio for PhoneGap-built apps. However, there's a hardware limitation that you can only play one sound at a time... so it's still going to be super basic.

I think since the PhoneGap API uses the native audio engine rather than a browser, you should be able to get OGG playing on Android and AAC on iOS. So, still no need for MP3 if that's the case.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Fri Nov 04, 2011 5:50 am

I can't wait for the next release. It would be very awesome and useful for mobile development
B
17
S
3
G
3
Posts: 109
Reputation: 2,747

Post » Fri Nov 04, 2011 12:53 pm

The sound thing is a somewhat big deal. What would really be awesome is open feint, game center and in app purchases. I know that this is a start up but these features are essential. If you guys did this you would be the only visual programming engine to do it. You would be ahead of game salad and game maker.

If you guys implemented these people would flock to the engine. The only other engine that you can use is the Corona SDK. But coding in lua is somewhat annoying.
B
69
S
11
G
6
Posts: 324
Reputation: 8,321

Post » Fri Nov 04, 2011 3:39 pm

@Ashley: Nice, and sorry for pressing you a little on this issue, but sound is really essential for a game to be successful, especially when designed for small children who obviously cannot read text, which is the case of the game I'm developing!

One sound at a time should be more than enough for most simple games, provided a new sound correctly replaces another if an event launches it while the first sound hasn't yet finished playing.

Regarding sound formats, Ogg doesn't play yet natively on Android (at least not on 2.3.4), but m4a files do play natively when renamed to aac or mp4 (*), which are the "proper" (**) extension names for this type of files.
So basically, it should work on Android too with minor tweaking; else we'll still have Firefox mobile for sound-enabled Android HTML5 webapps and/or mp3 as a last resort.


*though the latter is recognized as video even if it only contains sound
**non-Apple specificstiepan2011-11-04 16:39:28
B
10
G
2
Posts: 15
Reputation: 1,325

Post » Sat Nov 05, 2011 1:24 pm

Has anybody got sound to work at all on iphone and iPad?
B
69
S
11
G
6
Posts: 324
Reputation: 8,321

Post » Sat Nov 05, 2011 2:42 pm

Best wait for the next build which uses the PhoneGap API and see if that works for you.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Sat Nov 05, 2011 7:03 pm

Does anybody know when the next phoneGap API is released?
B
69
S
11
G
6
Posts: 324
Reputation: 8,321

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests