Skip to content

Commit

Permalink
feat: Updated minimal bevy app to 0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
jmetz committed Dec 29, 2024
1 parent 0a883eb commit d1896f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion templates/apps/bevy-demo/src/lib.rs.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use bevy::window::{WindowMode, MonitorSelection};
use bevy::{color::palettes::css::PURPLE, prelude::*};
use winit::event_loop::EventLoop;
Expand Down
6 changes: 3 additions & 3 deletions templates/apps/bevy/src/lib.rs.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bevy::window::WindowMode;
use bevy::window::{WindowMode, MonitorSelection};
use bevy::prelude::*;

#[bevy_main]
Expand All @@ -8,7 +8,7 @@ fn main() {
primary_window: Some(Window {
name: Some("{{app.stylized-name}}".to_string()),
resizable: false,
mode: WindowMode::BorderlessFullscreen,
mode: WindowMode::BorderlessFullscreen(MonitorSelection::Primary),
..default()
}),
..default()
Expand All @@ -23,5 +23,5 @@ fn setup(
) {
let texture_handle = asset_server.load("branding/icon.png");
commands.spawn(Camera2dBundle::default());
commands.spawn(SpriteBundle {texture: texture_handle, ..Default::default()});
commands.spawn(Sprite {image: texture_handle, ..Default::default()});
}

0 comments on commit d1896f4

Please sign in to comment.