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 download the background images from below:
The size of the...
Posted at 20:41h
in
archives
by admin
Question 1.
Use float() to create a number from a string like '12.34'. Make sure the result is really a number!
Question 2.
Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up or down?
Question 3.
Try using int() to create...
Problem DescriptionYour new cellphone plan charges you for every character you send from your phone. Since you tend to send sequences of symbols in your messages, you have come up with the following compression technique: for each symbol, write down the number of times it...
Posted at 01:38h
in
Uncategorized
by admin
Question:
Modify the program we made in the class to:
Create Missile class
Add one missile to your program
missile will automatically move from your spaceship to the top of the screen
once missile reach the top of the screen, it will re-appear from the location...
Posted at 13:52h
in
Uncategorized
by admin
Question:
Print the following 3 patterns using loop :
*
**
***
****
*****
*****
*****
*****
*****
1010101
0101010
10101
0101...
Posted at 13:17h
in
Uncategorized
by admin
Question 1:
In the class, you have tried to add a starting screen for your pygame. Continue write your program:
The game window will become black background after click the "play" button at the the starting screen
Challenge Question:
Do you remember how you created the beach...