21 releases
new 0.10.0 | Apr 30, 2025 |
---|---|
0.9.0 | Nov 30, 2024 |
0.8.0 | Jul 4, 2024 |
0.7.0 | Feb 19, 2024 |
0.3.1 | Nov 13, 2022 |
#932 in Game dev
354 downloads per month
38KB
331 lines
Bevy Plugin to integrate with Jornet
- save high scores
- get a leaderboard
Bevy Jornet
Bevy plugin for easy leaderboard integration with Jornet. Works in WASM and native.
Setup
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.
Dependencies
~10–19MB
~280K SLoC