diff options
author | Reinhold Gschweicher <pyro4hell@gmail.com> | 2021-10-30 22:25:42 +0200 |
---|---|---|
committer | JF <JF002@users.noreply.github.com> | 2021-12-02 21:46:36 +0100 |
commit | 054a99cf6c6a8eff181724ceebd5cd3539c62743 (patch) | |
tree | 00a46a0442e9d7abd9cfd18a242917fbabb7b9de /src/libs/mynewt-nimble/porting/nimble/include/hal | |
parent | ada96ccdc8b725825f571a57bf7b23752c88bc92 (diff) |
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.
Diffstat (limited to 'src/libs/mynewt-nimble/porting/nimble/include/hal')
0 files changed, 0 insertions, 0 deletions