basics round 1
This commit is contained in:
parent
676e67c97d
commit
4d89c05bc0
2 changed files with 20 additions and 1 deletions
|
@ -6,3 +6,12 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = "0.14.2"
|
bevy = "0.14.2"
|
||||||
bevy_rapier2d = "0.27.0"
|
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
|
||||||
|
|
||||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -1,3 +1,13 @@
|
||||||
|
use bevy::prelude::*;
|
||||||
|
use bevy_rapier2d::prelude::*;
|
||||||
|
|
||||||
|
mod player {}
|
||||||
|
|
||||||
|
const METER: f32 = 120.;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
App::new()
|
||||||
|
.add_plugins(DefaultPlugins)
|
||||||
|
.add_plugins(RapierPhysicsPlugin::<NoUserData>::pixels_per_meter(METER))
|
||||||
|
.run();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue