winit desktop app
This commit is contained in:
parent
6b23727864
commit
7706a9f3ef
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ use bevy::{
|
||||||
color::palettes::tailwind,
|
color::palettes::tailwind,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
sprite::{MaterialMesh2dBundle, Mesh2dHandle},
|
sprite::{MaterialMesh2dBundle, Mesh2dHandle},
|
||||||
|
winit::WinitSettings,
|
||||||
};
|
};
|
||||||
|
|
||||||
// In a vacuum this is just 2, 2 dimenionsal arrays, but I think
|
// In a vacuum this is just 2, 2 dimenionsal arrays, but I think
|
||||||
|
@ -56,6 +57,7 @@ use bevy::{
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
App::new()
|
App::new()
|
||||||
|
.insert_resource(WinitSettings::desktop_app())
|
||||||
.add_plugins(DefaultPlugins)
|
.add_plugins(DefaultPlugins)
|
||||||
.add_systems(Startup, setup)
|
.add_systems(Startup, setup)
|
||||||
.run();
|
.run();
|
||||||
|
|
Loading…
Reference in a new issue