From 44541e16e18d2ab2379307124c6992c22f2e1351 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Mon, 31 Mar 2025 22:31:26 -0400 Subject: [PATCH] Give the window a title --- src/main.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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,