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 Vehicle.h/cpp, Log.h/cpp, Frog.h/cpp, DeadFrog.h/cpp, and WrappingMove.h/cpp, as you won’t use those in this lab. (Make sure you copy using Finder or Explorer to copy files, don’t drag-and-drop within Visual Studio/Visual Studio Code as this will not copy properly)
  2. Open your repo in Visual Studio or Visual Studio Code as usual
  3. Now you need to change the build target from “Lab03” to “Lab04.” In Visual Studio (PC) this is via the dropdown near the play button. For Visual Studio Code (Mac), you should change both instances of “Lab03” on the bottom toolbar (one for the build target and the other for the run target)
  4. Next, remove the following code:
    • Any references to Vehicle, Log, Frog, DeadFrog, or WrappingMove in your game code.
  5. 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.