There is going to be an in class text based on the readings this far. There will be a written and programming component to this test.
Also, complete the mini-game Whompa.
1 - Complete the review. Check your answers. There will be a test.
2 - Create the text based Whompa.py game according to the specifications and hand it in. Make sure to put your name in a comment at the top of your program!
enemy_distance
variable is set to -20. This is because the enemies start 20km behind the player. When you are checking to see if the enemy has caught up to the player, it will be necessary to determine the difference between the enemy_distance
and km_travelled
. Once they are the same (or the enemy has traveled farther than the player), the enemy has caught up to the player and the game is lost. You also use this difference when prompting the player with the appropriate warning when the enemy gets close.