Create a project folder username_a09
. Place all your tasks inside
one python file t01.py
inside this folder. Upon
completing your tasks, export your project folder to username_a09.zip
file, and submit it to the dropbox by the due date.
Write a code to import the pygame module and to initialize it to a module accepting all the elements of your assignment. Set the display size to a width=600 and height= 338, and give a display title "FIFA World Cup 2022". Then, download the images: ball6.png and stadium2.png.
Open the display , set the stadium2.png image as a background and the ball6.png in the center of the screen. The Display may look like:
Adjust the speed and moving trajectory of the ball to start moving to the left as 3 and up as 8.
Check the ball movement if hits on of the sides as follows:
Upon completing these tasks, test your assignment and submit it to A9 dropbox.