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:
- Copy all your .h/.cpp files files from the
Lab03
folder to theLab04
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) - Open your repo in Visual Studio or Visual Studio Code as usual
- 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)
- Next, remove the following code:
- Any references to
Vehicle
,Log
,Frog
,DeadFrog
, orWrappingMove
in your game code.
- Any references to
- 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.