Gate Check #2 - Basic Animation
Go Back to the Assignment Description
In this gate check, you will animate the game. You will write the code to make the boat move, and animate the rocket during the Boost and Landing phases.
When you have completed this gate check, you will see the rocket boost from the launch pad, travel upwards, and begin moving towards the landing boat. Since we have not yet implemented thrusters or player controls, the rocket will end up crashing into the ground or flying off of the screen). Don't worry about it! We will tackle this problem later.
# Initializes the Simulation At Least Once
initialize_simulation(True)
# Main "Game Loop"
while pythonGraph.window_not_closed():
if is_simulation_over() == False:
erase_objects()
draw_objects()
get_input()
update_objects() # <----- WE WILL BE MODIFYING THIS
else:
analyze_results()
initialize_simulation(False)
When you have completed this gate check, you should see the rocket taking off from the ground, and hurling itself wildly to the right.