Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Unity LiteNetLib Multiplayer Basics and .NET Core Server
Rating: 3.5 out of 5(41 ratings)
136 students

Unity LiteNetLib Multiplayer Basics and .NET Core Server

Learn how to use this library to send , receive and process data on server and clients to have a networked game ! (R)UDP
Last updated 9/2018
English

What you'll learn

  • Server and client connection with LiteNetLib
  • Send and receive data with LiteNetLib
  • Process received data

Course content

1 section9 lectures1h 11m total length
  • Intro0:37

    This is the LiteNetLib , grad the Source Code (.zip) of the Latest Release
    https://github.com/RevenantX/LiteNetLib/releases

    You will also need to install .NET core package in Visual Studio Installer.


    The projects are attached here.



  • Needed Tools and Libraries0:31
  • Setting up the Projects (Client and Server)3:32
  • Creating a simple play scene with player movement4:02
  • First Networking Script on Client5:31
  • Networking Script for Server and first connection of client and server6:55
  • Sending and Receiving Player positions27:55
  • Adding network players on screen and moving them9:39
  • Additional stuff : More efficient code (network)12:45

Requirements

  • Basic usage of Unity
  • Visual Studio
  • .NET Core Package in Visual Studio Installer
  • LiteNetLib Release Source Code

Description

This all may sound hard and difficult but its rather easy once you know how it works.

Just follow me along on this journey to write a basic multiplayer game!

We will write a server that will be a seperate .NET core application which is also using C# , and we will use the same UDP library as for Unity.

The server runs independently from any Unity programs.

Our client will be written in Unity and C# and will contain the player stuff.

Both will be using the same library "LiteNetLib" which is a very competent library for UDP (and also Reliable UDP)


At the end we will have a way to send and receive data and we will be able to join the server with our game clients and see each client on the game and move around and see the movements.

Who this course is for:

  • Game Devs who want to try out networking (UDP)
  • People who want to use LiteNetLib in Unity and .NET Core
  • Is suitable for beginner to intermediate level programmers who want to make an online game.