https://github.com/flaxengine/networksample
Multiplayer sample with players lobby and chat in Flax Engine
https://github.com/flaxengine/networksample
csharp flax flax-engine multiplayer networking
Last synced: 5 months ago
JSON representation
Multiplayer sample with players lobby and chat in Flax Engine
- Host: GitHub
- URL: https://github.com/flaxengine/networksample
- Owner: FlaxEngine
- License: mit
- Created: 2021-07-12T15:24:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-17T15:59:04.000Z (11 months ago)
- Last Synced: 2025-07-02T12:56:02.404Z (9 months ago)
- Topics: csharp, flax, flax-engine, multiplayer, networking
- Language: C#
- Homepage:
- Size: 1.86 MB
- Stars: 21
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Network Sample

[Network Sample](https://github.com/FlaxEngine/NetworkSample) is an open-source sample project that contains multiplayer game lobby implementation with player synchronization and chat. It can be used as a foundation for multiplayer projects using Flax low-level networking transportation layer.
Minimum supported Flax version: `1.2`.
## Guide
1. Download project from [Github](https://github.com/FlaxEngine/NetworkSample) (as Zip or clone with Git)
2. Open project
3. Open `Menu` scene and Play!
4. In the main menu, you can specify the player nickname, server IP, and port
5. Start a server with Host button or use Connect button to connect running server
You can also use Game Cooker to build game into a standalone application to run multiple instances of clients and a server.
## Screenshots


## Overview
Main types overview:
* **Player** - player information container (Name, ID, Actor, etc.)
* **GameSession** - game service with players list including local player
* **NetworkSession** - game service with packets and network connections handling
* **Game/Network/Packets...** - various types of network packets used by the sample (implementations of `NetworkPacket`)
## License
Project is released under **MIT License**.