How to do it...

To create the simple 2D Space Girl mini-game, follow these steps:

  1. Create a new, empty 2D project.
  2. Import the supplied folder Sprites into your project.
  3. Since it's a 2D project, each sprite image should be of type Sprite (2D and UI). Check this by selecting the sprite in the Project panel, then, in the Inspector, check property Texture Type. If you need to change the type, change it from this drop-down menu, then click the Apply button.
  4. Set the Unity Player screen size to 800 x 600: choose this resolution from the drop-down menu on the Game panel. If 800 x 600 isn't an offered resolution, the click the plus sign + button and create this as a new resolution for the panel.
  5. Display the Tags and Layers properties for the current ...

Get Unity 2018 Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.