14 Nov Wednesday 17:00 Python Practice – 22.11.09.
Question: How to create ending screen shows the following 3 lines of information: Game Over Your score is: ?? press space to restart and the game will be restarted if you press the space. ...
Question: How to create ending screen shows the following 3 lines of information: Game Over Your score is: ?? press space to restart and the game will be restarted if you press the space. ...
Question: Continue modify the program we made in the class: create Shield class. A shield object will be created after the fighter is destroyed. The shield will last for 3 seconds(90 frames) with animation ...
Question: Continue modify the program we made in the class: Set fighter’s hp as 100 if the fighter received damage from enemy’s bullet, it will lose 10 hp. if the fighter received damage from boss’ bullet, it will lose 20 hp. please draw hp bar at...
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 use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase ...
Question: 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...
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 use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase ...
Question: Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the “PLAY” button. (Scroll down for more hint) You can choose and download one of the background images base...
Question: Make changes of the program we made in the class, so the enemy spaceship could complete the following tasks: more new enemies will keep entering the game at the random x position from the top of the screen. the enemy can bounce back when...
Question: Please refer to Pirateship class to create a class Enemy: Create one enemy on the screen The enemy will appear at the top of the screen when we start the game The enemy could bounce left-right The enemy will keep move down until to the...
Question: Make a pygame window with the following beach ball, the ball could bounce with gravity: ...