2020-07-20 09:05:56 +00:00
|
|
|
use bevy::prelude::*;
|
2020-08-13 08:47:40 +00:00
|
|
|
use bevy_window::WindowMode;
|
2020-07-20 09:05:56 +00:00
|
|
|
|
2020-07-28 20:43:07 +00:00
|
|
|
/// This example illustrates how to customize the default window settings
|
2020-07-20 09:05:56 +00:00
|
|
|
fn main() {
|
|
|
|
App::build()
|
|
|
|
.add_resource(WindowDescriptor {
|
|
|
|
title: "I am a window!".to_string(),
|
|
|
|
width: 300,
|
|
|
|
height: 300,
|
|
|
|
vsync: true,
|
2020-08-13 08:47:40 +00:00
|
|
|
resizable: false,
|
|
|
|
mode: WindowMode::Fullscreen { use_size: false },
|
|
|
|
..Default::default()
|
2020-07-20 09:05:56 +00:00
|
|
|
})
|
|
|
|
.add_default_plugins()
|
|
|
|
.run();
|
|
|
|
}
|