support cutscene camera

This commit is contained in:
2025-03-13 23:50:39 +01:00
parent 7281a46521
commit f8207f69b3
6 changed files with 83 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
use crate::{keys::KeyCollected, movables::TriggerMovableEvent};
use crate::{cutscene::StartCutscene, keys::KeyCollected, movables::TriggerMovableEvent};
use bevy::{prelude::*, utils::hashbrown::HashSet};
#[derive(Resource)]
@@ -20,6 +20,7 @@ fn on_key(
) {
if matches!(*state, GatesState::Init) {
*state = GatesState::GateOpen1;
commands.trigger(StartCutscene("fence_01".to_string()));
//TODO: put into a sound effects system
commands.spawn((