13 unstable releases (6 breaking)

0.7.0 Feb 19, 2024
0.6.0 Nov 5, 2023
0.5.2 Oct 18, 2023
0.5.1 Jul 10, 2023
0.1.4 Aug 28, 2022

#1586 in Game dev

Download history 225/week @ 2024-02-16 83/week @ 2024-02-23 43/week @ 2024-03-01 76/week @ 2024-03-08 79/week @ 2024-03-15 26/week @ 2024-03-22 68/week @ 2024-03-29 83/week @ 2024-04-05 88/week @ 2024-04-12 80/week @ 2024-04-19 84/week @ 2024-04-26 76/week @ 2024-05-03 73/week @ 2024-05-10 63/week @ 2024-05-17

312 downloads per month

MIT/Apache

31KB
272 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_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.

leaderboard


lib.rs:

Jornet logo

Bevy Plugin to integrate with Jornet

  • save high scores
  • get a leaderboard

Dependencies

~18–48MB
~773K SLoC