jsnes
jsnes copied to clipboard
Mutiplayer over the web
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.
我试过传输图像和声音到另一台设备,是可以实现两台设备一起玩的。我实现过程中,尽量减少图像帧数,和声音的大小,以保证数据尽量小。我把声音转码成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.