Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paddle: add a little randomization in the dy speed #797

Merged
merged 1 commit into from
Dec 2, 2021

Commits on Oct 31, 2021

  1. Paddle: add a little randomization in the dy speed

    To make the game a bit more challenging an less predictable add a little
    bit of randomness to the `dy` value. When hitting the right wall add a random
    number (one of [-1, 0, 1]) to the `dy` value.
    
    To keep the difficulty level managable limit the dy value to be in the
    range from -5 to 5.
    NeroBurner committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    4431549 View commit details
    Browse the repository at this point in the history