14 Dec Saturday 16:30 Python Practice – 22.12.10.
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
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