enemy can drop key

This commit is contained in:
2025-03-13 11:05:56 +01:00
parent 8946289ac2
commit c358108c56
7 changed files with 104 additions and 16 deletions

View File

@@ -5,6 +5,7 @@ mod camera;
mod cash;
mod gates;
mod heads_ui;
mod keys;
mod movables;
mod npc;
mod platforms;
@@ -61,12 +62,14 @@ fn main() {
// });
app.add_plugins(PhysicsPlugins::default());
// app.add_plugins(PhysicsDebugPlugin::default());
app.add_plugins((
TnuaControllerPlugin::new(FixedUpdate),
TnuaAvian3dPlugin::new(FixedUpdate),
));
// app.add_plugins(PhysicsDebugPlugin::default());
// app.add_plugins(bevy_inspector_egui::quick::WorldInspectorPlugin::default());
app.add_systems(Update, Dolly::<MainCamera>::update_active);
app.add_plugins(alien::plugin);
@@ -80,12 +83,12 @@ fn main() {
app.add_plugins(aim::plugin);
app.add_plugins(shooting::plugin);
app.add_plugins(npc::plugin);
app.add_plugins(keys::plugin);
app.insert_resource(AmbientLight {
color: Color::WHITE,
brightness: 400.,
});
app.add_plugins(bevy_inspector_egui::quick::WorldInspectorPlugin::default());
app.add_plugins(TrenchBroomPlugin(TrenchBroomConfig::new("hedz")));