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.main
parent
ada96ccdc8
commit
054a99cf6c
Loading…
Reference in New Issue