Pandaqi / In-the-Same-Boat

Jackbox-style game where you try to sail a ship together - discovering treasures and battling your friends.
2 stars 0 forks source link

Idea for realtime multiplayer #30

Open Pandaqi opened 4 years ago

Pandaqi commented 4 years ago

This has absolutely nothing to do with this game (In the Same Boat). I just needed to write down the idea somewhere.

I want to experiment with a JackBox-style game, but in realtime, using peer-to-peer.

P2P Stuff This is a fast JavaScript P2P network + option for free server: https://peerjs.com/peerserver.html

This is an implementation of PeerJS + Phaser + Mobile (almost exactly what I need): https://github.com/OmarShehata/I-Spy-A-Ghost

What's the idea? Well, we use P2P to connect all clients (controllers) directly to the computer (monitor). The computer displays the game and is the authority (like the server would be in a client-server model).

Then I'll just make a simple platformer/shooting game to test it, where players have a few buttons on their smartphone screen, which will move the player on the computer.

The biggest issue will be latency. I will need to use some interpolation and extrapolation to make the monitor look fluid and responsive. And I'm also doubting whether the clients should render the game themselves, or only show controls.

But hey, that's just the basic idea.