Written by Tyler Conklin
Handouts:
Random Generator Reference
Graphics Reference
BonusGraphics: MultipleBalls.java
This is a bonus program! It's meant to be challenging.
Write a program that animates two different balls bouncing around the canvas. If a ball hits off of a wall, it should bounce back in the opposite direciton. The two balls can also bounce off of each other. An example is shown in the below gif.
When computer scientists tackle a large problem, it helps to break it down into smaller steps. One way to break this problem down would be: