diff --git a/Cargo.toml b/Cargo.toml index c5d4d44..920935b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,12 @@ edition = "2021" [dependencies] bevy = "0.14.2" bevy_rapier2d = "0.27.0" + +# Enable a small amount of optimization in the dev profile. +[profile.dev] +opt-level = 1 + +# Enable a large amount of optimization in the dev profile for dependencies. +[profile.dev.package."*"] +opt-level = 3 + diff --git a/src/main.rs b/src/main.rs index e7a11a9..dd3a797 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,13 @@ +use bevy::prelude::*; +use bevy_rapier2d::prelude::*; + +mod player {} + +const METER: f32 = 120.; + fn main() { - println!("Hello, world!"); + App::new() + .add_plugins(DefaultPlugins) + .add_plugins(RapierPhysicsPlugin::::pixels_per_meter(METER)) + .run(); }