Crates.io | bevy_jornet |
lib.rs | bevy_jornet |
version | |
source | src |
created_at | 2022-08-18 22:23:37.587109 |
updated_at | 2024-11-30 14:42:20.056591 |
description | Bevy plugin for Jornet - a social game server |
homepage | https://jornet.vleue.com |
repository | https://github.com/vleue/jornet/tree/main/bevy-jornet |
max_upload_size | |
id | 648386 |
Cargo.toml error: | TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Bevy plugin for easy leaderboard integration with Jornet. Works in WASM and native.
Add this crate as a dependency, then add the plugin. You cna get an id
and a key
at https://jornet.vleue.com. The key must remain secret.
app.add_plugins(JornetPlugin::with_leaderboard(id, key));
You can then create a new player to send scores, or retrieve the current leaderboard:
fn leaderboard_setup(mut leaderboard: ResMut<Leaderboard>) {
// `None` will create a new user with a random name
leaderboard.create_player(None);
leaderboard.refresh_leaderboard();
}
See the whac-a-square
example for a complete integration.