#bevy-plugin #social #bevy #score #leaderboard

bevy_jornet

Bevy plugin for Jornet - a social game server

18 unstable releases (8 breaking)

0.9.0-rc.1 Nov 15, 2024
0.8.0 Jul 4, 2024
0.8.0-rc.4 Jun 30, 2024
0.7.0 Feb 19, 2024
0.3.1 Nov 13, 2022

#1057 in Game dev

Download history 191/week @ 2024-08-02 174/week @ 2024-08-09 196/week @ 2024-08-16 189/week @ 2024-08-23 166/week @ 2024-08-30 34/week @ 2024-09-06 154/week @ 2024-09-13 86/week @ 2024-09-20 154/week @ 2024-09-27 228/week @ 2024-10-04 240/week @ 2024-10-11 221/week @ 2024-10-18 232/week @ 2024-10-25 260/week @ 2024-11-01 218/week @ 2024-11-08 293/week @ 2024-11-15

1,039 downloads per month

MIT/Apache

37KB
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

~23–36MB
~604K SLoC