Added back the screen limit size

master
Wynd 2025-01-01 19:01:41 +02:00
parent cb75e8cf8c
commit e942867f8e
1 changed files with 6 additions and 6 deletions

View File

@ -42,11 +42,11 @@ struct GameStartEvent;
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn(Camera2dBundle {
camera: Camera {
// viewport: Some(Viewport {
// physical_position: UVec2::new(0, 0),
// physical_size: UVec2::new(480, 720),
// ..Default::default()
// }),
viewport: Some(Viewport {
physical_position: UVec2::new(0, 0),
physical_size: UVec2::new(480, 720),
..Default::default()
}),
..Default::default()
},
transform: Transform {
@ -74,7 +74,7 @@ fn main() {
primary_window: Some(Window {
title: "Avoid".to_string(),
name: Some("avoid.app".to_string()),
// resizable: false,
resizable: false,
position: WindowPosition::Centered(MonitorSelection::Current),
resolution: WindowResolution::new(
SCREEN_WIDTH as f32,