4 ms·
My game http://crashgiants.io/ http://crashgiants.io/ is WEbGL + Webrtc multiplayer and has very fun to build because of all the features you mentioned
by Vekz 7y ago
My game http://crashgiants.io/ http://crashgiants.io/ is WEbGL + Webrtc multiplayer and has very fun to build because of all the features you mentioned
- strbean 7y agoI need to check that out! I've been watching WebRTC since 2011, excited to have some equivalent of a TCP socket. It took them SOOOOOOO long to add data channels. Are you using it for P2P, or making the 'peer' be a central server?
- ermir 7y agoI did not make the game you are asking about, but WebRTC has an even better feature than TCP, which is unreliable datagrams (essentially UDP). Very few people have done anything with it, since server support for WebRTC data channels is very limited. Still, you can use dirty hacks such as leveraging Puppeteer as a WebRTC endpoint and make true lag-free experiences for the web. Last I checked a few months ago this library was working for WebRTC data channels on node.js. Check it out, but it might not work properly: https://github.com/node-webrtc/node-webrtc https://github.com/node-webrtc/node-webrtc