#bevy-plugin #multi-player #lightyear #matchmaking #request #edgegap

bevygap_client_plugin

Plugin for bevy games for use with bevygap matchmaker and lightyear

3 unstable releases

0.3.1 Dec 23, 2024
0.3.0 Dec 22, 2024
0.2.3 Dec 19, 2024

#789 in Game dev

Download history 307/week @ 2024-12-18 61/week @ 2024-12-25 57/week @ 2025-01-01 72/week @ 2025-01-08 8/week @ 2025-01-15 26/week @ 2025-01-22 37/week @ 2025-01-29 75/week @ 2025-02-05 28/week @ 2025-02-12 51/week @ 2025-02-19 34/week @ 2025-02-26 16/week @ 2025-03-05 1/week @ 2025-03-12 7/week @ 2025-03-19

60 downloads per month
Used in lightyear_examples_common

MIT/Apache

65KB
483 lines

Bevygap Client Plugin

Instead of connecting lightyear using commands.connect_client(), this plugin will make a request to the bevygap matchmaker, then modify lightyear's config to set the supplied game server socket address and connect token, then call commands.connect_client() for you.

Read the bevygap book to learn more.

Usage

use bevy_bevygap_client_plugin::prelude::*;

// ...

app.add_plugins(BevygapClientPlugin);

// ...

// trigger the connection by setting state to `BevygapClientState::Request`
// or use this function on Commands:
commands.bevygap_connect_client();

Dependencies

~71–115MB
~2M SLoC