basics round 1

This commit is contained in:
Schrottkatze 2024-11-22 20:56:29 +01:00
parent 676e67c97d
commit 4d89c05bc0
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
2 changed files with 20 additions and 1 deletions

View file

@ -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

View file

@ -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::<NoUserData>::pixels_per_meter(METER))
.run();
}