Objective: Create a basketball that bounces across the screen. Make it so that you can change its color and speed.
Problem: How can we change the spin of the ball correctly when it bounces off the walls? How can we allow users to change color and speed?
Solution: In order to make sure the rotation of the ball is correct when bouncing off walls, we have to figure out where it’s coming from and then change the direction of its rotation according to that. For user input we can add colored buttons along with a + and - button to allow for speed and color changes. We made sure that the colored buttons represented the color they were changing the basketball to and made sure that they were all big enough to be easily clicked.