Remove resize constraints from base game plugin

main
Elijah Voigt 2 months ago
parent 3d12aebec9
commit 77998a5197

@ -4,11 +4,6 @@ fn main() {
App::new()
.add_plugins(BaseGamePlugin {
target_resolution: (360.0, 640.0).into(),
resize_constraints: WindowResizeConstraints {
max_height: 1080.0,
min_height: 640.0,
..default()
},
..default()
})
.add_systems(Startup, init_window_info)

@ -6,7 +6,6 @@ pub struct BaseGamePlugin {
pub name: String,
pub game_type: GameType,
pub target_resolution: WindowResolution,
pub resize_constraints: WindowResizeConstraints,
}
pub enum GameType {
@ -21,7 +20,6 @@ impl Default for BaseGamePlugin {
name: "mygame".into(),
game_type: GameType::Three,
target_resolution: WindowResolution::default(),
resize_constraints: WindowResizeConstraints::default(),
}
}
}
@ -34,7 +32,6 @@ impl Plugin for BaseGamePlugin {
primary_window: Some(Window {
fit_canvas_to_parent: true,
resolution: self.target_resolution.clone(),
resize_constraints: self.resize_constraints.clone(),
..default()
}),
..default()

Loading…
Cancel
Save