Skip to main content Link Search Menu Expand Document (external link)

Theme: auto

Setup

This lab builds on the code in Lab 3. You need to have at least finished through implementing the GetMinOverlap function to be able to continue with Lab 4.

Do the following to prepare your Lab04 project:

  1. Copy all your .h/.cpp files files from the Lab03 folder to the Lab04 folder, EXCEPT do not copy the following:

    • DeadFrog.h/cpp
    • Frog.h/cpp
    • Goal.h/cpp
    • Log.h/cpp
    • Vehicle.h/cpp
    • WrapComponent.h/cpp

    Also, DO NOT copy the CMakeLists.txt file over or any other files other than the .cpp/.h files. (Make sure you copy files using Finder or Explorer, not in CLion)

  2. Now open your Lab04 folder in CLion. Keep in mind since you’re opening Lab04 for the first time, you will need to enable ClangFormat and format on save, as outlined in the “Configuration for EVERY Project” instructions

  3. Next, remove the following code:
    • Any references to Vehicle, Log, Frog, DeadFrog, or WrappingMove in your game code.
  4. Set the window size to 600x448

Your code should now compile, though it won’t work just yet.

Now you’re ready for part 1 of the lab.