Multiplayer is coming!

Discussion and feedback on Construct 2

Post » Sat Jan 18, 2014 6:34 pm

just watched a good intro movie to webrtc, alot of answers, think its gonna be good

http://www.youtube.com/watch?v=p2HzZkd2A40
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Sat Jan 18, 2014 7:13 pm

@vtrix thanks for sharing this video,I really enjoy the presentation.After watching that,im even more pumped to mess around with WebRTC
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Sat Jan 18, 2014 7:25 pm

There are some examples online already with javascript html in combination with a nodejes using webrtc:

@ashley

If your looking for example code to implement features from:

Here is a huge list of working examples, source:
https://github.com/muaz-khan/WebRTC-Experiment

This dude made video work on canvas using webrtc
http://ericbidelman.tumblr.com/post/31486670538/creating-webm-video-from-getusermedia


:)


Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Sat Jan 18, 2014 7:35 pm

@lennaert
Just to let you know. WebRTC does not require a server. It allows for Peer 2 Peer connection.

I suspect this is the leverage Ashley has been waiting for. Being able to make an UDP orientated serverless simple api.

I'm also going to wager that there will be no syncing. I think most of you are going to disappointed that your still going to need to to 80% of the networking code. But who knows. Maybe Ashley will implemented Input Prediction or Lag Compensation.

But it's a good base to build off of.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Sat Jan 18, 2014 9:30 pm

[[email protected]] lennaert
Just to let you know. WebRTC does not require a server. It allows for Peer 2 Peer connection.

I suspect this is the leverage Ashley has been waiting for. Being able to make an UDP orientated serverless simple api.

I'm also going to wager that there will be no syncing. I think most of you are going to disappointed that your still going to need to to 80% of the networking code. But who knows. Maybe Ashley will implemented Input Prediction or Lag Compensation.

But it's a good base to build off of.[/QUOTE]

It does require a signalling server, or you have to exchange your adresses with other player over IM or email ....

Otherwise you will not be able to find other players.

some general info

http://blog.vline.com/post/63765098884/webrtc-if-its-p2p-why-do-i-need-a-server

[QUOTE=vline]Connecting across networks? Youll need a server.

WebRTC works brilliantly when connecting browsers within the same local network. But as soon as you start reaching outside your network into a corporate firewall, for example youre going to need a little more, well, firepower.

[/QUOTE]

lennaert2014-01-18 21:33:35
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Sat Jan 18, 2014 9:51 pm

Can't wait to see multiplayer !
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Sat Jan 18, 2014 10:09 pm

I wonder if this is going to be similar to what is used in the PeerJS plugin
B
63
S
12
G
6
Posts: 456
Reputation: 8,981

Post » Sat Jan 18, 2014 11:24 pm

omg YES!!!!!!
B
47
S
10
G
5
Posts: 232
Reputation: 7,561

Post » Sat Jan 18, 2014 11:53 pm

You should be able to make a server out of Node-Webkit, however there are several issues, most notably security.

To get client to client the server would serve up a local list.
The server could handle setting up player to player, but probably not a pipeline between the two.
Image ImageImage
B
169
S
50
G
173
Posts: 8,313
Reputation: 110,270

Post » Sun Jan 19, 2014 12:06 am

This is great news. If it works over wi-fi, great for some MP action at home or work! ;)

B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests