mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Solitaire: Minor tweaks to animation x_velocity and bouncyness
This commit is contained in:
parent
62422eecdc
commit
3e25c58755
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ void SolitaireWidget::create_new_animation_card()
|
|||
card->set_position({ rand() % (SolitaireWidget::width - Card::width), rand() % (SolitaireWidget::height / 8) });
|
||||
|
||||
int x_sgn = card->position().x() > (SolitaireWidget::width / 2) ? -1 : 1;
|
||||
m_animation = Animation(card, rand_float() + .4, x_sgn * ((rand() % 3) + 3), .4 + rand_float() * .6);
|
||||
m_animation = Animation(card, rand_float() + .4, x_sgn * ((rand() % 3) + 2), .6 + rand_float() * .4);
|
||||
}
|
||||
|
||||
void SolitaireWidget::start_game_over_animation()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue