O'Reilly logo

Unity 4 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a 2D level and collider

In this section, we will begin with setting up all sprite assets including the character sprite sheet, background, platform, door, and key sprite. Then, we will create a custom tag and layer to use in our game. Next, we will set up our level by using the sprite game object and attaching the 2D collider including BoxCollider2D and PolygonCollider2D.

Prepare for lift off

Before we start creating this project, we will create the project in Unity by performing the following steps:

  1. Create a new project by going to File | New Project to bring up the Project Wizard window. Next, click on the Create new Project tab and set the Project Directory as you want, as we can see in the following screenshot:

    As we can see from the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required