8 unstable releases (3 breaking)
0.4.1 | Dec 16, 2022 |
---|---|
0.3.3 | Aug 5, 2022 |
0.3.2 | Jun 18, 2022 |
0.2.2 | May 2, 2022 |
0.1.1 | Apr 17, 2022 |
#404 in Game dev
32 downloads per month
66KB
1K
SLoC
Bevy Discord Presence Plugin
A simplistic bevy plugin for discord presence integration within the bevy game engine
Installation
Add this to your Cargo.toml
:
[dependencies]
bevy-discord-presence = "0.3"
or run:
cargo add bevy-discord-presence
if you have cargo-edit
installed
Example
use bevy::prelude::*;
use bevy_discord_presence::config::{RPCConfig, RPCPlugin};
fn main() {
println!("hello world!");
let mut app = App::new();
app.add_plugins(DefaultPlugins);
app.add_plugin(RPCPlugin(RPCConfig {
app_id: 965125975941709834,
show_time: true,
}));
app.run();
}
More examples can be found in the examples directory.
Changelog
See CHANGELOG.md
Contributions
See CONTRIBUTING.md
Dependencies
~14–50MB
~887K SLoC