Skip to content

Commit

Permalink
Solitaire: Minor tweaks to animation x_velocity and bouncyness
Browse files Browse the repository at this point in the history
  • Loading branch information
tlmrgvf authored and awesomekling committed Mar 13, 2020
1 parent 62422ee commit 3e25c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Games/Solitaire/SolitaireWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3e25c58

Please sign in to comment.