Question: Do not modify the cannonball program. Write a Python class definition for the Target objects mentioned as if you were going to include it. Submit

Do not modify the cannonball program. Write a Python class definition for the Target objects mentioned as if you were going to include it. Submit this code as your answer. How would you keep track of multiple targets in this program?
21. Extend the cannonball animation example to include target objects. A target is a randomly sized rectangle that is placed somewhere downrange in the animation. When a target is hit, it disappears and a new target is generated. Further extensions could involve moving targets and keeping track of the number of hits. 21. Extend the cannonball animation example to include target objects. A target is a randomly sized rectangle that is placed somewhere downrange in the animation. When a target is hit, it disappears and a new target is generated. Further extensions could involve moving targets and keeping track of the number of hits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
