Multiplayer with CocoonJS

Discussion and feedback on Construct 2

Post » Fri Mar 14, 2014 7:16 pm

Tried just a simple test with the multiplayer for CocoonJS. Just adding the object into a game makes it not load when testing with latets CocoonJS launcher. I get an error:

Image

I'll try posting on Ludei site too but I dont seem to ever get help there :?
B
38
S
11
Posts: 193
Reputation: 3,953

Post » Fri Mar 14, 2014 7:40 pm

It's probably not going to work on mobile for a long time. However, you should consider that mobile networks are VERY unreliable, almost useless for real time gaming, so you should probably use websockets instead!
B
36
S
8
G
8
Posts: 532
Reputation: 6,903

Post » Fri Mar 14, 2014 9:03 pm

it does seem to work on Chrome for Android on my device, I wonder if it works with Crosswalk?
B
63
S
12
G
6
Posts: 456
Reputation: 8,969

Post » Fri Mar 14, 2014 11:06 pm

Ill have to look into web socket then :) my game is turn based. I set my game up to work with peerjs then realised that doesn't work in cocoonjs :p oops!
B
38
S
11
Posts: 193
Reputation: 3,953

Post » Fri Mar 14, 2014 11:09 pm

CocoonJS doesn't support WebRTC at the moment (WebRTC is the tech used for the multiplayer object)
Crosswalks should support it (not sure about now, but since chrome for android supports it, crosswalk should have it soon if not now)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Sat Mar 15, 2014 4:41 am

Asked and covered. Thanks Aphrodite. And to confirm WebRTC is on Crosswalk however they have openly said that it's in rudimentary level so performance is not so good. Likely performance will be fine by time any big MP game is out. Since your game is turn base then there is even less worry.

Also Fimbul is wrong. Network gaming on mobile is fine. It's been brought up before and shot down before. There are a handful of active online MMO on mobile devices.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Sat Mar 15, 2014 4:50 pm

I'm been pretty upset with CocoonJS. Sure you can deploy with it, but what about making money? I found a better solution: EJecta and wrote up a tutorial about it today.

https://www.scirra.com/tutorials/907/de ... e-easy-way

Ejecta is extensible and you should be able to call various Objective-C methods from it, so it's very possible to do what you're trying to do with it in XCode + Construct 2.
Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,687


Return to Construct 2 General

Who is online

Users browsing this forum: Cliffu and 2 guests