26 Jun Tuesday 17:00 Python Practice – 22.06.21.
Posted at 20:00h in Uncategorized 0 Comments
Make changes of the program we made in the class, so the enemy spaceship could complete the following tasks:
- the new enemies will appear at the random x position from the top of the screen.
- the enemy can bounce back 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 start to go straight down with acceleration when the distance to the top of the window is greater than 300px.(self.speed will get bigger and bigger)
Sorry, the comment form is closed at this time.