Change window title, resolution, and enable vsync

This commit is contained in:
Jarrod Doyle 2024-01-26 16:32:56 +00:00
parent c0fe39f56a
commit 4e47cf5aba
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 12 additions and 2 deletions

View File

@ -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();
} }