winit desktop app

This commit is contained in:
Zynh Ludwig 2024-08-20 10:24:53 -07:00
parent 6b23727864
commit 7706a9f3ef

View file

@ -2,6 +2,7 @@ use bevy::{
color::palettes::tailwind,
prelude::*,
sprite::{MaterialMesh2dBundle, Mesh2dHandle},
winit::WinitSettings,
};
// In a vacuum this is just 2, 2 dimenionsal arrays, but I think
@ -56,6 +57,7 @@ use bevy::{
fn main() {
App::new()
.insert_resource(WinitSettings::desktop_app())
.add_plugins(DefaultPlugins)
.add_systems(Startup, setup)
.run();