Week 1 - Player Control: Jul 13 - Jul 17

Exercise

·

Beginner

·

+60XP

·

180 mins

·

Unity Technologies

Week 1 - Player Control: Jul 13 - Jul 17

Join us Mondays, Wednesdays, and Fridays at 9:00am PT by registering here.

This week, you will program a car moving side-to-side on a floating road, trying to avoid (or hit) obstacles in the way. In addition to becoming familiar with the Unity editor and workflow, you will learn how to create new C# scripts and do some simple programming. By the end of the week, you will be able to call basic functions, then declare and tweak new variables to modify the results of those functions.

1. Overview

This week, you will complete Unit 1 from Create with Code, where you will learn the fundamentals of implementing Player as you create a third-person driving simulator game.

After the live session on Monday when we kick off the project together, use the links below to continue working through the Unit independently.

If you get stuck or have a question, send us your question or your broken project so that we can help you during Wednesday's live troubleshooting session.

For the best experience, you should aim to complete the essential content below before the live session on Friday, when we will show you how to take your finished projects to the next level.

Click on the links below to access the course content, but come back to this page to join in on our live sessions!

Essential content

  • 1.1 - Start your 3D Engines
    • You will have a vehicle and obstacle positioned on the road and the camera set up perfectly behind the vehicle. You will also have a new custom Unity layout, perfectly optimized for editing.
  • 1.2 - Pedal to the Metal
    • You will have a moving vehicle with its own C# script and a road full of objects, all of which may collide with each other using physics components.
  • 1.3 - High Speed Chase
    • The camera will follow the vehicle down the road through the scene, allowing the player to see where it’s going.
  • 1.4 - Step into the Driver's Seat
    • When the player presses the up/down arrows, the vehicle will move forward and backward. When the player presses the left/right arrows, the vehicle will turn.

Optional content

2. Before you begin

To participate in this session and follow along, you need:

If this is your first Create with Code live learning session, you can catch up by:

*Note - it is not necessary for you to catch up, but it is recommended for an ideal learning experience.

3. Live Session - Monday, July 13 - Prototype Preview

Recorded Live Session - 13th July - 9am PST

If you missed this session, you can catch up with the video below:

Bonus Features

Below are challenges at varying levels of difficulty for you to try and take your skills to the next level. Note that you may have to do a bit of Googling to figure out the Hard and Expert challenges.

  • Easy
    • Create stacks / piles / pyramids of obstacles for the vehicle to drive through.
  • Medium
    • Add a couple of other cars that are automatically driving down the road, which the player also has to avoid.
  • Hard
    • Allow the player to press a key on the keyboard to switch camera views (bonus if you can press the same key to cycle through them).
  • Expert
    • Transform this into a “local multiplayer” split-screen game with two cars where one car is controlled by WASD and the other is controlled by the arrow keys. As an extra bonus, there could be some kind of celebration for the winning vehicle.

4. Live Session - Wednesday July 15 - Troubleshooting & FAQ

Recorded Live Session - 15th July - 9am PST

If you missed this session, you can catch up with the video below:

Want help with your broken project during the live session?

  • Export your unity package:
    1. In the Project window, right-click on the "Assets" folder and click Export Package
    2. In the "Exporting package" window that pops up, click Export
    3. Save your package as "[Your-First-Name] - Prototype #" (e.g. "Aaron - Prototype 2")
  • Send us your unity package
    1. Go to share.unity.com/u/createwithcode
    2. Verify your email address
    3. Upload your .unitypackage and write a detailed message describing the problem you are having with your project

Note: Please make sure to submit your project in advance of Wednesday's session if you want us to help you troubleshoot your issues live.

5. Live Session - Friday, July 17 - Bonus Feature walkthrough

Recorded Live Session - 17th July - 9am PST

If you missed this session, you can catch up with the video below:

Download links

WARNING - downloading and importing the assets below into your existing Prototype 1 project will OVERWRITE your project. To view these projects, create a new project from the Unity Hub and import them into that new empty project.

6. Share your Modified Challenge or Prototype

If you went above and beyond and modified the challenge or prototype from this week, take a screenshot or screen-recording and post it here to share what you made!

To upload your project online as a WebGL build so others can play it, you can:

  1. Follow the instructions to build your project for WebGL
  2. Go to Unity Connect and click the Post Project button in the top-right corner
  3. Follow the instructions to upload your WebGL project
  4. Share a link in your submission description below so other people know where to find it

Please also share any "behind-the-scenes" info about how you made your project!

Please login to submit