Bevy Jornet

Jornet logo

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.

rust app.add_plugins(JornetPlugin::with_leaderboard(id, key));

You can then create a new player to send scores, or retrieve the current leaderboard:

``rust 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.

leaderboard