From 11e4aef80d90b8b6f68f0f5f600cc2a6e458cece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Sat, 9 Mar 2024 14:56:51 +0100 Subject: [PATCH] clarification du main node --- crates/border-wars/src/responsive_scale.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/border-wars/src/responsive_scale.rs b/crates/border-wars/src/responsive_scale.rs index 8a322bf..8f925f3 100644 --- a/crates/border-wars/src/responsive_scale.rs +++ b/crates/border-wars/src/responsive_scale.rs @@ -2,13 +2,13 @@ use bevy::prelude::*; -/// The default width of the main node +/// The default width of the screen const DEFAULT_WIDTH: f32 = 1280.; -/// The default height of the main node +/// The default height of the screen const DEFAULT_HEIGHT: f32 = 720.; -/// Calculates the ui_scale.0 depending on the size of the main node +/// Calculates the ui_scale.0 depending on the default screen size /// in order to make the screen responsive pub fn change_scaling(mut ui_scale: ResMut, window: Query<&Window>) { let window = window.single();