o
odinpkg.dev
packages / library / odin-enet-tutorial

odin-enet-tutorial

768f6b3library

No description provided.

No license · updated 2 months ago

odin-enet-tutorial

This is a repository where I walk myself through how to use the ENet library.

If you have any improvements, suggestions and so on, issues and PRs are welcome.

Knowledge was gathered from

Setup

For linux, you need to install

Debian:

sudo apt-get update
sudo apt-get install libenet-dev

Fedora:

sudo dnf install enet-devel

Content:

  • 01_setup:
    • minimal client-server setup
    • practices of events handling
  • 02_chat:
    • simple multiuser chat
    • working with packets (creating, destroying, so on)
    • connect/disconnect
  • 03_realtime_multiplayer:
    • defining a simple binary protocol with CBOR library
    • unreliable channel for player input and world updates
    • reliable channel for chat messages and slot assignment
    • unoptimized world updates messages
    • fixed DT