Skip to content
/ GNAT_Core Public

๐Ÿ”— | Game Networking API Template - Core Functionality

Notifications You must be signed in to change notification settings

SzyJ/GNAT_Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

65 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GNAT_Banner

To clone

In order to also clone the 3rd party logging library, please remember to update submodules. Without this, the code will not compile.

git clone https://github.com/SzyJ/GNAT_Core
cd GNAT_Core
git submodule init
git submodule update

GNAT-Core Behaviours

Server:

  • Wait for X amount of clients to send msg, save their IP
  • Gain Ping of each client
  • Start Loop that brodcasts state every X Miliseconds

Client:

  • Send Join Message to server
  • Respond to Ping request
  • Receive real state from server and update local values
  • Listen for input from terminal. Send this update to Server

Peer (Session-Host):

  • Listen on one port for X Join Requests
  • Boradcast IP of each Peer along with their starting value

Peer (Normal):

  • Send Join Request
  • Listen for info about each Peer, update local knowledge

Peer:

  • Receive from each client on a different port
  • Listen for terminal input and broadcast this value to all other peers

About

๐Ÿ”— | Game Networking API Template - Core Functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published