Creating a simple 2D mini-game – SpaceGirl
This recipe shows how to create the 2D Space Girl 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 03_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 Space Girl mini-game, follow these steps:
- Create a new, empty 2D project.
- Import the supplied folder
Sprites
into your project. - 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 TextureType. If you need to change the type, change it from this drop-down menu, then click the Apply button. - Set the Unity Player screen size to
800 x 600
: choose this resolution from the drop-down menu on the Game panel. If800 x 600
isn't an offered resolution, the click the plus sign...