Change window title, resolution, and enable vsync
This commit is contained in:
parent
c0fe39f56a
commit
4e47cf5aba
14
src/main.rs
14
src/main.rs
|
@ -1,5 +1,15 @@
|
||||||
use bevy::prelude::*;
|
use bevy::{prelude::*, window::PresentMode};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
App::new().add_plugins(DefaultPlugins).run();
|
App::new()
|
||||||
|
.add_plugins(DefaultPlugins.set(WindowPlugin {
|
||||||
|
primary_window: Some(Window {
|
||||||
|
title: "Harenae".into(),
|
||||||
|
resolution: (1280.0, 720.0).into(),
|
||||||
|
present_mode: PresentMode::AutoVsync,
|
||||||
|
..default()
|
||||||
|
}),
|
||||||
|
..default()
|
||||||
|
}))
|
||||||
|
.run();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue