Creating a simple 2D mini-game – SpaceGirl
This recipe presents the steps to create the 2DSpaceGirl mini-game, on which all the recipes of this chapter are based.
Getting ready
For this recipe, we have prepared the images you need in a folder named Sprites
in the 1362_02_01
folder. We have also provided the completed game as a Unity package in this folder named Simple2DGame_SpaceGirl
.
How to do it...
To create the simple 2D mini-game Space Girl follow these steps:
- Create a new, empty 2D project.
- Import supplied folder
Sprites
into your project. - Convert each sprite image to be of type Sprite (2D and UI). To do this, select the sprite in the Project panel, then, in the Inspector, change choose Sprite (2D and UI) from the drop-down menu Texture Type, and ...
Get Unity 5.x Cookbook 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.