Compare commits

..

No commits in common. '21afcf0cef89c73a163e14071f377019d5991d4a' and 'e9c9afe2b6b77c8727d1e327c3a0e717541acf58' have entirely different histories.

@ -267,7 +267,7 @@ QueenRed = "QueenRedPieceIdle"
### Animation Settings
######################
[animation]
fast_movement_speed = 1.0
fast_movement_speed = 5.0
fast_text_speed = 999.0
fast_dissolve_speed = 1.0
fast_light_speed = 1.0

@ -311,8 +311,8 @@ fn initialize(mut commands: Commands, board: Res<game::Board>, assets: Res<Asset
start: 0.0,
duration: 12.0,
}, // Marks pieces as dissolving
));
))
.with_children(|parent| {
// Hitboxes
game::tiles().for_each(|(index, tile)| {
let side = Board::side(index).expect("Spawn valid side");
@ -380,6 +380,7 @@ fn initialize(mut commands: Commands, board: Res<game::Board>, assets: Res<Asset
));
});
});
});
}
fn hydrate_camera(
@ -1267,6 +1268,7 @@ fn continue_title(mut next_state: ResMut<NextState<GameState>>) {
fn dissolve_animation(
mut query: Query<(Entity, &Dissolvable, &mut Dissolving, &mut Visibility)>,
children: Query<&Children>,
// Used to create Handle<DissolveMaterial>
mut dissolve_materials: ResMut<Assets<DissolveMaterial>>,
object_materials: Query<(Entity, &Handle<DissolveMaterial>)>,
mut commands: Commands,

@ -100,7 +100,7 @@ fn interactive_button(
while let Some((mut t, mut s)) = ts.fetch_next() {
s.right = Val::Px(0.0);
s.bottom = Val::Px(0.0);
t.sections.iter_mut().for_each(|section| {
t.sections.iter_mut().for_each(|mut section| {
section.style.color = Color::WHITE;
});
}
@ -112,7 +112,7 @@ fn interactive_button(
while let Some((mut t, mut s)) = ts.fetch_next() {
s.right = Val::Px(-2.0);
s.bottom = Val::Px(-1.0);
t.sections.iter_mut().for_each(|section| {
t.sections.iter_mut().for_each(|mut section| {
section.style.color = Color::hex("E8E8E8").unwrap();
});
}
@ -120,6 +120,10 @@ fn interactive_button(
Interaction::Pressed => {
ui_image.texture = depressed_handle.clone();
writer.send(audio::AudioEvent::MenuSelect);
let mut ts = texts.iter_many_mut(children.iter_descendants(entity));
while let Some((_t, mut s)) = ts.fetch_next() {
// TODO: Change text color
}
}
});
}

Loading…
Cancel
Save