jsnes icon indicating copy to clipboard operation
jsnes copied to clipboard

Mutiplayer over the web

Open ericmaster opened this issue 2 years ago • 1 comments

This is a great project. Probably a long shot but I was wondering if some multiplayer over the web could be added. I would really love to host a game session I can play with family and friends living abroad and I can just tell them to open the browser.

ericmaster avatar Nov 30 '21 16:11 ericmaster

我试过传输图像和声音到另一台设备,是可以实现两台设备一起玩的。我实现过程中,尽量减少图像帧数,和声音的大小,以保证数据尽量小。我把声音转码成mp3,因为mp3的压缩率比较高。但是整体的数据量还是很大,通过websocket中转,还是不太现实,支持不了几个玩家。

谷歌翻译: I have tried transferring images and sound to another device, and it is possible to play with both devices. During my implementation, I try to reduce the number of image frames and the size of the sound to keep the data as small as possible. I transcoded the sound to mp3 because mp3 has a higher compression rate. However, the overall amount of data is still very large, and it is not realistic to transfer through websocket, and it cannot support a few players.

allowing avatar Nov 07 '22 12:11 allowing