Lidgren.Network

From TRCCompSci - AQA Computer Science
Jump to: navigation, search

One skill which could improve your overall project complexity is using networking and multiplayer features. I will therefore just provide the information to use and not give specific examples and tutorials. Lidgren.Network is one method of introducing networking into your game.

Installation

The easiest way to install Lidgren.Network is to create a new MonoGame project. Make sure your project is targeting the .NET 4.6 Framework. To check this double click "Properties" in the Solution Explorer. Then on the Application tab change the Target Framework drop down to 4.6.

Then in the Tools tab, choose NuGet Package Manager. Then choose Manage NuGet Packages for Solution.

Click on browse, and then type Lidgren.Network into the search box. This should find the latest version (currently 1.0.2), click install. Finally in your Game1.cs, add the code below to the using section:

using Lidgren.Network;

Source Code

You can download the source code from this link: GitHub Code

Helpful Links

https://github.com/JonDouglas/MonoGame-Tutorials/tree/master/BasicLidgrenServer

https://github.com/JonDouglas/MonoGame-Tutorials/tree/master/BasicLidgrenClient

https://code.google.com/archive/p/lidgren-network-gen3/

http://genericgamedev.com/tutorials/lidgren-network-an-introduction-to-networking-in-csharp-games/

http://genericgamedev.com/tutorials/lidgren-network-explaining-netdeliverymethod-and-sequence-channels/

Tutorials

Full Game

This tutorial series uses: https://code.google.com/archive/p/multiplayer-example/

Tutorial Series:

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-1/

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-2/

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-3/

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-4/

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-5/

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-6/

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-7/

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-8/

https://dirkkok.wordpress.com/2012/02/20/lets-make-a-multiplayer-game-part-9/