gun shots (#16)

This commit is contained in:
extrawurst
2025-03-24 16:27:26 +01:00
committed by GitHub
parent 8599fe50e8
commit 594a5a612d
7 changed files with 160 additions and 9 deletions

View File

@@ -26,6 +26,7 @@ use bevy::core_pipeline::tonemapping::Tonemapping;
use bevy::prelude::*;
use bevy::render::view::ColorGrading;
use bevy::scene::SceneInstanceReady;
use bevy_polyline::PolylinePlugin;
use bevy_trenchbroom::prelude::*;
use control::controller::CharacterControllerPlugin;
use physics_layers::GameLayer;
@@ -63,6 +64,8 @@ fn main() {
app.add_plugins(PhysicsPlugins::default());
app.add_plugins(CharacterControllerPlugin);
app.add_plugins(PolylinePlugin);
app.add_plugins(TrenchBroomPlugin(TrenchBroomConfig::new("hedz")));
#[cfg(feature = "dbg")]
{
@@ -102,8 +105,6 @@ fn main() {
});
app.insert_resource(ClearColor(Color::BLACK));
app.add_plugins(TrenchBroomPlugin(TrenchBroomConfig::new("hedz")));
app.add_systems(Startup, (write_trenchbroom_config, music));
app.add_systems(PostStartup, setup_scene);
app.add_systems(Update, (set_materials_unlit, set_tonemapping, set_shadows));