feat: ✨ wayland native
This commit is contained in:
parent
2b0edc9c50
commit
de29059c13
3 changed files with 262 additions and 3 deletions
14
src/lib.rs
14
src/lib.rs
|
@ -1,6 +1,8 @@
|
|||
use bevy::{
|
||||
app::{App, Startup, Update},
|
||||
app::{App, PluginGroup, Startup, Update},
|
||||
diagnostic::FrameTimeDiagnosticsPlugin,
|
||||
utils::default,
|
||||
window::{PresentMode, Window, WindowPlugin, WindowTheme},
|
||||
DefaultPlugins,
|
||||
};
|
||||
use camera::UserCamera;
|
||||
|
@ -19,7 +21,15 @@ pub const FISHING_AREA_RADIUS: f32 = 100.0;
|
|||
|
||||
pub fn start_game() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_plugins(DefaultPlugins.set(WindowPlugin {
|
||||
primary_window: Some(Window {
|
||||
title: "Fisher ~Tahinli".to_owned(),
|
||||
present_mode: PresentMode::AutoVsync,
|
||||
window_theme: Some(WindowTheme::Dark),
|
||||
..default()
|
||||
}),
|
||||
..default()
|
||||
}))
|
||||
.add_plugins(FrameTimeDiagnosticsPlugin)
|
||||
.add_systems(
|
||||
Startup,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue