12 Feb Tuesday Python Homework 18:30 – 22.02.08.
Make changes of the program by creating Enemy class, so we can create an enemy object in the main program, the enemy spaceship could complete the following tasks:
- The enemy could appear at the top of the screen and bounce back and forth when it reaches left or right edge.(You could change the direction of the enemy by changing the first item in self.speed attribute)
- The enemy will move down while bouncing left-right. It will disappear when it reaches the bottom.