From 4e47cf5aba6f1e469a754d8cc27e5c00aa253292 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Fri, 26 Jan 2024 16:32:56 +0000 Subject: [PATCH] Change window title, resolution, and enable vsync --- src/main.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5aaacce..00a8e35 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,15 @@ -use bevy::prelude::*; +use bevy::{prelude::*, window::PresentMode}; 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(); }