Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Lidgren Network

$
0
0

@Harag wrote:

Hi all

MG: 3.5

I've recently been looking at the Lidgren Network library and all the examples I've seen has a "client / server" setup where the server is a separate "console" application. A little "game" I was messing around with last year is either one player or two players (using the same keyboard/monitor when in 2p mode) - I would like to turn this into a network game for 2 players so the 2nd player can use their own keyboard/monitor (and not be in the same room of course).

I know it must be possible but can the game it self also be the server for the other player - is this a wise way to do it rather than have a separate console application to run as a server for both players?

If so - Does anyone have any examples of this - I'm not that up on threading etc so wouldn't know how the "game update()" method would work to update player one AND to also send out information to player 2, as well as also receiving the information (from a player 2 point of view).

Hope that's not too confusing.

Thanks

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles