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

Theme: auto

Setup

This lab requires that you’ve at least completed the first page of Lab 7.

Do the following to prepare your Lab08 project:

  1. Copy all your .h/.cpp files files from the Lab07 folder to the Lab08 folder, EXCEPT do not copy:

    • Block.h/cpp
    • Bullet.h/cpp
    • HUD.h/cpp
    • SideBlock.h/cpp

    (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 “Lab07” to “Lab08.” In Visual Studio (PC) this is via the dropdown near the play button. For Visual Studio Code (Mac), you should change both instances of “Lab07” on the bottom toolbar (one for the build target and the other for the run target)

  4. Next, do the following:

    1. Remove any code that references deleted classes
    2. Remove any PlaySound calls and/or SoundHandles you added for Lab 7 sounds
    3. Remove all the code in PlayerMove::ProcessInput
    4. Remove everything in PlayerMove::Update except for follow camera code
    5. For the follow camera code, change HDist = 60 and TargetOffset = 50 and set VDist = 70 (this is different from Lab 7, where we ignored VDist)
    6. Remove the line of code that forces the z-position of the camera to always be 0.0f
    7. Remove every member variable from PlayerMove.h that was needed for Lab 7 specifically
    8. In the Player constructor in Player.cpp:
      1. Change the mesh to "Assets/Kart.gpmesh"
      2. Don’t create a CollisionComponent (we won’t have collision in this lab)
      3. Set the scale of the actor to 0.75f

You should now just see a single kart (it doesn’t move yet): Kart and black screen

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