diff --git a/src/main.rs b/src/main.rs index 82f48c4..d3f92d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,7 +53,15 @@ fn run_app(settings: AppSettings) -> AppExit { App::new() .add_plugins(( - DefaultPlugins, + DefaultPlugins.set(WindowPlugin { + primary_window: Window { + title: "Distributed physics test".into(), + fit_canvas_to_parent: true, + ..default() + } + .into(), + ..default() + }), PhysicsPlugins::default().with_length_unit(50.0), )) .add_systems(Startup, (setup_balls, setup_ui, setup_player, setup_walls)) @@ -89,7 +97,7 @@ fn setup_balls( region: Res, ) { let mut random = rng(); - for _ in 0..20 { + for _ in 0..50 { let circle = Circle::new(random.random_range(BALL_SIZES)); commands.spawn(( Ball,