TORONTO KIDS COMPUTER CLUB | Saturday 13:00 Python Practice – 23.02.18.
21771
post-template-default,single,single-post,postid-21771,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 13:00 Python Practice – 23.02.18.

19 Feb Saturday 13:00 Python Practice – 23.02.18.

Question:
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, the energy will bounce in the window with x speed of randint(-3, 3) and y speed of randint(1, 2)
  • use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase
No Comments

Sorry, the comment form is closed at this time.