Question :
Your hero has 4850 gold and start with level 1. Write a program to ask if you would like to spend 200 gold to upgrade your hero to a new level each time. If you agree to upgrade your hero, show hero’s new level and gold left over after...
You could do the following homework using IDLE
Question 1
Make a variable and assign a number to it (any number you like). Then display your variable using print.
Question 2
Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display...
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 :
Your hero has 4850 gold and start with level 1. Write a program to ask if you would like to spend 200 gold to upgrade your hero to a new level each time. If you agree to upgrade your hero, show hero’s new level and gold left over after...
Question: (Hint: you could use stack to solve the question)
There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to establish only a surface...
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...