#plugin #bevy #bevygap #request #command #matchmaker #lightyear

bevygap_client_plugin

Plugin for bevy games for use with bevygap matchmaker and lightyear

1 unstable release

new 0.2.3 Dec 19, 2024

#1164 in Game dev

MIT/Apache

63KB
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

~54–95MB
~1.5M SLoC