Now you have all the tools to make a game!
But let's just practice using them for now.
- What variable do you change to make the ball fall faster? Try it!
- What variable can you change to make the ball fall further?
- Let's give our ball horizontal motion!
- Create a global var horizontalSpeed, assign it the value 1.
- Within the move function body, make another variable called previousLeft, assign it ball.offset().left.
- Then use offset() to change the ball's left offset.