bog-dan-ro / spectacol

ZX Spectrum Emulator Based on FUSE with a custom UI made with QML
42 stars 3 forks source link

Network playing #118

Open bog-dan-ro opened 8 years ago

bog-dan-ro commented 8 years ago

Network playing is useful to play games like Xeno (http://www.worldofspectrum.org/infoseekid.cgi?id=0005787) with your friends. Currently I see two ways to do it: I. the game will run only on host, the host sends the screen updates to the client and the client will send only the keys/joystick events. Using some kind of fast compression it might be enough to play the games smoothly.

II. the host sends a snapshot to the client which is used by the client to start from the same position, then all the input events are synchronized between host <--> client.

Personally I'd like to go with the first option ...

hickoki commented 8 years ago

Do you mean network over the internet? Take a look at this opensource p2p library: http://www.naalaa.com/forum/index.php?topic=395.0

bog-dan-ro commented 8 years ago

Yep, also over the internet

hickoki commented 8 years ago

Great!! Btw the above Naalaa code is C and may give you some inspiration. Looking forward to this feature. I don't think there are emulators out there with internet multiplayer..