EECS 494 Metroid Tutorials

Project Setup

For any game you’ll create in this class, the first thing you’re going to need to do is setup the project with version control and setup your first scene. You may find it helpful to come back to this page on future projects as a reference.

Creating the Project

Open Unity and click the “New” button to create a new project.

UnityStartup

On the next screen give your project a name. It should follow the format “eecs-494-p1-<uniqname>“ where <uniqname> is your uniqname.

Next select 2D as Metroid is a 2D game.

Finally hit “Create project”.

UnityNewConfig

After Unity finishes setting up your project, you will be greeted with the Unity Editor.

UnityEditor

Importing Unity Packages

At any point when developing your project you can import a Unity Package to your game. For this project, we will be using a Unity package the instructors have developed to jump-start the project.

First download the Unity Package from the canvas website. You can find it in the “Files” tab inside the “p1” folder with the name “494-p1-templatePackage.unitypackage”.

CanvasSite

Once downloaded double click the .unitypackage and it should open up into your current Unity project.

ImportPackage

A list of assets will appear. From here you can choose what you want and don’t want to import. In this case, we don’t want the Zelda assets so feel free to uncheck those. Once that’s done hit Import.

PostImport

Thanks to the Unity package, we now have a number of new assets in our project. It isn’t important to know what all of these are right now, but as we go through the tutorial we will use all of these.

Note that this isn’t a complete set of assets that you’ll need for your game, it’s up to you to find the rest!

Setting up version control

Before we initialize a git repository, we need to configure our project settings to be compatible with version control.

We do this by going through Edit->Project Settings->Editor Settings and settings Version Control Mode: Visible Meta Files and Asset Serialization Mode: Force Text. Note that some of these settings may already be defaulted for you.

ProjectSettings

We’ll also need a .gitignore. You can find one online or just use this one (remember to rename it to “.gitignore” though!.

Once you have one, drop it into the root of your project (next to your Asset folder, ProjectSettings folder, etc…).

Next we need to set up our repo online. In this case we will be using GitLab. Create a new project, give it a fitting name and make sure the repository is set to private.

Once it’s setup GitLab will have further instructions on setting up the project. As we already have a project, follow the instructions for an existing folder.

GitInstructions

Disable Anti-Aliasing

The last thing we need to do for our project is disable anti-aliasing. Go to Edit->Project Settings->Quality. Unity defaults to having 6 quality options that users can choose between, so we’ll need to update all of them. Set Anti Aliasing to Disabled for all settings.

AntiAliasing

Conclusion

And that’s it for this section. When you’re ready to move on, go to 02-Scene Setup.