Correct-er intro tutorial

main
Elijah C. Voigt 1 year ago
parent 60b73b9889
commit cfe48d8b79

@ -1045,7 +1045,7 @@ fn set_animation_speed(
AnimationSpeed::default()
};
info!("Set animation speeds {:?}", *animation_speed);
debug!("Set animation speeds {:?}", *animation_speed);
}
// When an animation starts, or the animation speed changes, update player speed

@ -519,11 +519,12 @@ struct TutorialStarted;
fn start_tutorial_on_play(
query: Query<Entity, (With<BoardComponent>, With<display3d::Dissolving>)>,
state: Res<State<TutorialState>>,
board: Res<game::Board>,
mut next_state: ResMut<NextState<TutorialState>>,
mut commands: Commands,
) {
if query.iter().len() == 0 || *state.get() != TutorialState::None {
info!("Intro dissolve is done!");
if query.iter().len() == 0 && *state.get() == TutorialState::None && board.current_epoch() <= 1 {
info!("Starting intro tutorial!");
next_state.set(TutorialState::Intro);
commands.insert_resource(TutorialStarted);
}

Loading…
Cancel
Save