In this activity you will create a mini golf game. To do so, complete the following steps:
Add a ball sprite. The ball should initially be located near an edge of the screen. When the user swipes the sprite, it should move in the direction of the swipe and slowly slow down until it stops. Each time the user swipes, they should lose a life.
Add obstacles that the ball bounces off of. The obstacles should be in an interesting pattern and should contain the ball so that it can not leave the screen.
Add a hole sprite. When the ball overlaps with the hole, the game should reset, display a congratulatory message, and increase the user’s score.
Submission
Please show your source code and run your scripts for the instructor or lab assistant.