Added back the screen limit size
parent
cb75e8cf8c
commit
e942867f8e
12
src/main.rs
12
src/main.rs
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue