17 Oct Thursday 18:30 Python Practice 22.10.13.
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
Sorry, the comment form is closed at this time.