Rocket Landing Simulator

Gate Check #2 - Basic Animation
Go Back to the Assignment Description

Part 1 (Overview) - Part 2 (Boat Animation) - Part 3 (Rocket Animation) - Part 4 (Thrusters)

Overview

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.

Estimated Workload

Big Picture

# 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)      

Expected Outcome

When you have completed this gate check, you should see the rocket taking off from the ground, and hurling itself wildly to the right.

Proceed to the next section.