TORONTO KIDS COMPUTER CLUB | PMCA Saturday 17:00 Python Homework 21.11.13.
20078
post-template-default,single,single-post,postid-20078,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

PMCA Saturday 17:00 Python Homework 21.11.13.

18 Nov PMCA Saturday 17:00 Python Homework 21.11.13.

Continue with the pygame application. Write code to do the below tasks:

Write code such that the enemy can shoot a missile towards the player. Also, make sure that the game is over when the player gets hits by enemy missile
If you want you can use the image -> http://www.torontokidscomputer.com/wp-content/uploads/2020/08/new_weapon_2.png as your enemy missile
You can use the pygame.transform.flip function to flip the image either horizontally or vertically. You can find more information on the function as https://www.pygame.org/docs/ref/transform.html#pygame.transform.flip
No Comments

Sorry, the comment form is closed at this time.