pending rapier update to bevy 0.16
This commit is contained in:
2025-05-04 19:28:04 -04:00
commit cb70c85bea
7 changed files with 7993 additions and 0 deletions

35
src/main.rs Normal file
View File

@@ -0,0 +1,35 @@
mod plugins;
use bevy::{prelude::*, window::PresentMode};
use bevy_inspector_egui::{bevy_egui::EguiPlugin, quick::WorldInspectorPlugin};
use plugins::game::GamePlugin;
fn main() {
App::new()
.add_plugins((
DefaultPlugins
.set(WindowPlugin {
primary_window: Some(Window {
title: "Phos".into(),
name: Some("phos".into()),
#[cfg(debug_assertions)]
resolution: (1920., 1080.).into(),
present_mode: PresentMode::AutoNoVsync,
#[cfg(not(debug_assertions))]
mode: bevy::window::WindowMode::BorderlessFullscreen,
..default()
}),
..default()
})
.set(AssetPlugin {
#[cfg(not(debug_assertions))]
watch_for_changes_override: Some(true),
..Default::default()
}),
EguiPlugin {
enable_multipass_for_primary_context: true,
},
WorldInspectorPlugin::new(),
GamePlugin::default(),
))
.run();
}