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