TORONTO KIDS COMPUTER CLUB | Markham Saturday 9:30 Python Homework 20.04.25.
17404
post-template-default,single,single-post,postid-17404,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Markham Saturday 9:30 Python Homework 20.04.25.

28 Apr Markham Saturday 9:30 Python Homework 20.04.25.

Question:

We have learned how to create 5 enemy spaceship at once in the class. Try to modify the game we made in the class:

  • The program will keep creating new enemy spaceship.
  • the new enemy spaceship always shows on the top of the screen but random x position

Hint:
You need create a variable as a counter. The purpose of the counter is keep counting down(or up) until certain number, then the program will create a new enemy and add that new enemy into the enemy group. Do not forget to reset the count after you create the new enemy.

No Comments

Sorry, the comment form is closed at this time.