8 unstable releases (3 breaking)

0.4.0 Mar 7, 2023
0.3.1 Nov 13, 2022
0.2.0 Aug 28, 2022
0.1.4 Aug 28, 2022

#398 in Game dev

Download history 8/week @ 2023-02-02 10/week @ 2023-02-09 26/week @ 2023-02-16 10/week @ 2023-02-23 24/week @ 2023-03-02 10/week @ 2023-03-09 48/week @ 2023-03-16 15/week @ 2023-03-23 23/week @ 2023-03-30 56/week @ 2023-04-06 20/week @ 2023-04-13 16/week @ 2023-04-20 14/week @ 2023-04-27 25/week @ 2023-05-04 27/week @ 2023-05-11 17/week @ 2023-05-18

87 downloads per month

MIT/Apache

27KB
271 lines

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.

app.add_plugin(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.

leaderboard


lib.rs:

Jornet logo

Bevy Plugin to integrate with Jornet

  • save high scores
  • get a leaderboard

Dependencies

~14–52MB
~1M SLoC