Setting up the Server - TheSwerik/Swerver GitHub Wiki

  • If you have not already, create a Console-App Project for your Server. (Any other UI is not supported atm)
  • Either add Swerver.Server with NuGet or download from GitHub
  • Inherit from GameLogic and write your Game-Logic in the Update Method.
  • In your Main-Method Call ServerStarter.Start(gameLogic); with your inherited GameLogic class.
  • For Server sending, write methods that look like ServerSend Welcome and UdpTest.
  • For Server receiving, add methods to the Servers PacketHandlers. Method Examples are ServerHandler's WelcomeReceived and UdpTestReceived.

Next up: Setting up the Client