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