FPSControllerto navigate with in the scene.
Download the distro code for your first game from https://cdn.cs50.net/games/2019/x/assignments/10/assignment10.zip and unzip
assignment10.zip, which should yield a directory called
Then, in a terminal window (located in
/Applications/Utilities on Mac or by typing
cmd in the Windows task bar), move to the directory where you extracted
(recall that the
cd command can change your current directory), and run
Welcome to your tenth and final assignment! This assignment is going to be a fun conclusion to what’s been a challenging but hopefully exciting term! Rather than build upon Portal in this example, and to afford you some extra time for your final project (and hopefully save a little stress!), we’re going to leverage some of Unity’s brand-new tools to create a level! ProBuilder and ProGrids are a key feature that’s changed the game for Unity, and having them makes creating game worlds (and more!) all the easier.
Your goal this assignment:
FPSControllerto navigate with in the scene. This part’s probably the easiest; just import an FPSController from the Standard Assets! It should already be imported into the project in the distro, where you can find the prefabs under
Assets > Standard Assets > Characters > FirstPersonCharacter > Prefabs!
BoxColliderwill work). This one should be easy as well, just relying on the creation of an empty GameObject and giving it a
BoxCollidercomponent, which you can then resize via its resize button in the component inspector!
Textobject. Recall that
OnTriggerEnteris the function you’ll need to write in a script you also associate with the
BoxCollidertrigger, and ensure that the
BoxCollideris set to a trigger in the inspector as well! Then simply program the appropriate logic to toggle on the display of a
Textobject that you also include in your scene (for an example on how to do this, just see the Helicopter Game 3D project, specifically the
Using Git, push your work to
USERNAME is your GitHub username, on a branch called
games50/assignments/2019/x/10 or, if you’ve installed