lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

Can I make a 1vs1 game with lidgren library ? #101

Closed comDeven closed 6 years ago

comDeven commented 6 years ago

I can make multiplayer game but I need multi 1vs1 games :) Like chess for example

Kaladrius2trip commented 6 years ago

Yes you may. But you might need write some mechanism for control of game's rooms with parameters something like "maximum players per room".

dendriel commented 6 years ago

Hello,

you may set the MaximumConnections configuration if using a server; or enable de ConnectionApproval event to accept/deny connection requests accordingly to some rule.

Check NetPeerConfiguration.cs for more info about this settings.

Regards,