17 unstable releases (7 breaking)

0.8.0 Jul 4, 2024
0.7.0 Feb 19, 2024
0.6.0 Nov 5, 2023
0.5.1 Jul 10, 2023
0.3.1 Nov 13, 2022

#1769 in Game dev

Download history 91/week @ 2024-03-31 83/week @ 2024-04-07 76/week @ 2024-04-14 81/week @ 2024-04-21 86/week @ 2024-04-28 74/week @ 2024-05-05 72/week @ 2024-05-12 80/week @ 2024-05-19 111/week @ 2024-05-26 91/week @ 2024-06-02 191/week @ 2024-06-09 134/week @ 2024-06-16 48/week @ 2024-06-23 289/week @ 2024-06-30 153/week @ 2024-07-07 81/week @ 2024-07-14

626 downloads per month

MIT/Apache

33KB
328 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

~24MB
~447K SLoC