|
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
|
use bevy::prelude::*; |
|
|
|
|
use common::network::*; |
|
|
|
|
|
|
|
|
|
use bevy::asset::AssetMetaCheck; |
|
|
|
|
use bevy::window::WindowResolution; |
|
|
|
|
use lightyear::prelude::server::Started; |
|
|
|
|
|
|
|
|
|
@ -19,7 +20,8 @@ fn main() -> Result { |
|
|
|
|
let cli = Args::parse(); |
|
|
|
|
let mut app = App::new(); |
|
|
|
|
|
|
|
|
|
app.add_plugins(DefaultPlugins.set(WindowPlugin { |
|
|
|
|
app.add_plugins(DefaultPlugins |
|
|
|
|
.set(WindowPlugin { |
|
|
|
|
primary_window: Some(Window { |
|
|
|
|
title: "bevy-bloxel-classic".into(), |
|
|
|
|
// Steam Deck: DPI appears pretty high, causing everything to be scaled up.
|
|
|
|
|
@ -32,6 +34,11 @@ fn main() -> Result { |
|
|
|
|
..default() |
|
|
|
|
}), |
|
|
|
|
..default() |
|
|
|
|
}) |
|
|
|
|
.set(AssetPlugin { |
|
|
|
|
// WEB: Don't check for `.meta` files since we don't use them.
|
|
|
|
|
meta_check: AssetMetaCheck::Never, |
|
|
|
|
..default() |
|
|
|
|
})); |
|
|
|
|
|
|
|
|
|
// Fixes issue on web where the cursor isn't ungrabbed properly.
|
|
|
|
|
|