TORONTO KIDS COMPUTER CLUB | Tuesday Python Homework 18:30 – 22.02.02.
20293
post-template-default,single,single-post,postid-20293,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Tuesday Python Homework 18:30 – 22.02.02.

04 Feb Tuesday Python Homework 18:30 – 22.02.02.

Question:

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)

please use one of the following images as ememy:

No Comments

Sorry, the comment form is closed at this time.