TORONTO KIDS COMPUTER CLUB | Saturday 16:30 Python Practice – 22.12.10.
21551
post-template-default,single,single-post,postid-21551,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

Saturday 16:30 Python Practice – 22.12.10.

14 Dec Saturday 16:30 Python Practice – 22.12.10.

Question 1:
Continue modify the program we made in the class:

  • create Energy class. A new energy crystal object  will be created when the enemy spaceship explode
  • use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase

Question 2:

Modify the program we made in the class. Create a Boss Class

  • the __init__() method will take three parameters (imgFile, location and speed)
  • the update() method will move the object, if the top of the object reaches the bottom of the screen, it will disappear be deleted from the memory
  • please use one of the following images in the program

No Comments

Sorry, the comment form is closed at this time.