19 Apr Friday Python Practice 19:30 – 23.04.14
Question 1: Use TKinter to create 6 buttons as following picture: Question 2: Continue the coding we made with TKinter to create login window as following picture: ...
Question 1: Use TKinter to create 6 buttons as following picture: Question 2: Continue the coding we made with TKinter to create login window as following picture: ...
Question: How to restart the game 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: We have made class explosion and weapon which showed you how to load different image to switch costumes. 1. Please made a class Planet, it will contains following methods: __init__(self) - It initials the Planet from a random centerx position, and top = -1000 Since planets has 3...
Question: We have made class explosion and weapon which showed you how to load different image to switch costumes. 1. Please made a class Planet, it will contains following methods: __init__(self) - It initials the Planet from a random centerx position, and top = -1000 Since planets has 3...
Question: Continue modify the program we made in the class: use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase ...
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...
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: 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 by creating Enemy class, so we can create an enemy object in the main program, the enemy spaceship could complete the following tasks: the enemy could appear at the top of the screen and bounce back and forth when it...