Multiplayer on mobile?

Discussion and feedback on Construct 2

Post » Mon Nov 24, 2014 10:20 am

Hi guys,

Does multiplayer work on mobile apps? If so what wrapper did you use? CJS, Corvdova/Phonegap, Crosswalk?

I've not tried it yet and hoping somebody that has been there and done it can point me in the right direction.

Thanks in advance,
~The Wyrm
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Mon Nov 24, 2014 12:40 pm

@TheWyrm, I think it should work on Android but not on iOS. iOS doesn't yet support WebRTC to my knowledge currently.
For game development / IT services contact - [email protected]

List of published iOS apps -
https://itunes.apple.com/us/artist/ravi ... d693234511
B
84
S
20
G
3
Posts: 337
Reputation: 7,368

Post » Mon Nov 24, 2014 12:46 pm

@kmsravindra thanks.

So according to http://www.webrtc.org/ the browsers that support it are Chrome, Firefox and Opera. So I assume that it will run on Cordova/PhoneGap on Lollipop and Crosswalk, but none of the others.

Has anybody tried multiplayer on Cordova/PhoneGap/Crosswalk?
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Mon Nov 24, 2014 12:49 pm

http://iswebrtcreadyyet.com/ shows that Safari is a bit behind :)
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Mon Nov 24, 2014 3:26 pm

Official webrtc on ios is sometime to come. however because Cordova allows native code to be accessed by JS. All hope is not lost. There is a group out there doing a WebRTC layer for PhoneGap. I'm not sure if they are doing a 1:1 function calling though. If they are then PhoneGap is your access to WebRTC on IOS in the mean time.

However depending on the nature of your online game. You can still use WebSocket for fault and corrective realtime(ie non precision realtime), you can use comet based ajax, or you can even use nodejs websocket or comet commet communication. The only downfall to this is that you need to do more effort on programming your own server side work.

Does MP work on IOS yes, does not the MP WebRTC plugin work on IOS not at this time :(....
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Mon Nov 24, 2014 3:32 pm

It should work on any Chromium-based platform. IIRC it includes:
- Chrome for Android (works on Android 4.0+)
- Crosswalk for Android (works on Android 4.0+)
- Cordova/PhoneGap Build (on Android 5.0+)

Until Android 5.0 is widespread, I'd go with Crosswalk.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,661

Post » Mon Nov 24, 2014 4:47 pm

@jaydeyu That sounds pretty cool. I'll look into that at some point.

@Ashley Cheers for the info.

I'll give it a go at some point when I get a break in my present project. I have idea I want to try out.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Mon Nov 24, 2014 8:52 pm

Hi @TheWyrm
I did multiplayer for my mobile app on Android Touch Bowls. I started it before the multiplayer plugin was out on C2 so I made it with the PeerJS plugin. It works using crosswalk XDK to wrap it. For my next game I will look at using the official plugin as I have got it connecting with XDK / crosswalk. Neither work with CocoonJS.
I have tested my app online and it also works cross play desktop on Chrome browser will connect to Android using crosswalk / XDK =)
B
38
S
11
G
1
Posts: 203
Reputation: 4,473

Post » Mon Nov 24, 2014 10:39 pm

@Mayfly Thanks! That's great to hear. :)
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Sat Feb 07, 2015 11:21 am

@Mayfly it does not work for me black screen :cry: :cry:

but he multiplayer plugin of construct2 works on android or not? :?: :idea:
B
3
Posts: 7
Reputation: 191

Next

Return to Construct 2 General

Who is online

Users browsing this forum: db3344 and 17 guests