February 9th, 2015 | by Carlos_B | Posted in Unity3D Tutorials

Update Oct/26/2017: All assets needed for the tutorial can be downloaded in one zip file here: AllAssetsNeededForTutorial.zip

Welcome to our first Unity game development video tutorial. This is a beginners tutorial aimed at people with some programming knowledge who want to start learning game development in Unity3D. We’ll assume you are somewhat familiar with Unity’s interface. We’ll be making a 2D space shooter in Unity 5.1 and we’ll be programming in C#.

Unity 2D Space Shooter Tutorial Part 1. (Project Setup and Player Animation)

Unity 2D Space Shooter Tutorial Part 2. (Player Input Movement)

Unity 2D Space Shooter Tutorial Part 3. (Player Bullet and Player Shooting)

Unity 2D Space Shooter Tutorial Part 4. (Enemy Animation and Enemy Spawner)

Unity 2D Space Shooter Tutorial Part 5. (Enemy Bullet and Enemy Shooting)

Unity 2D Space Shooter Tutorial Part 6. (Explosion Animation and Collision Detection)

Unity 2D Space Shooter Tutorial Part 7. (Lives UI, Play Button, and Game Manager)

Unity 2D Space Shooter Tutorial Part 8. (Score UI, SFX, and Bg Music)

Unity 2D Space Shooter Tutorial Part 9. (Game Scrolling Background)

Unity 2D Space Shooter Tutorial Part 10. (Timer UI and Game Title)

If you like to try/play the final game click here.

Additional Optional Tutorials To Expand On The Space Shooter Tutorial.

Unity 2D Space Shooter Tutorial Extra – IOS/Android Accelerometer Input and Shoot Virtual Button.

In Part 1 of this tutorial will be covering:

Creating a new Unity 2D project.

Creating the player animation.

Watch in HD by clicking in the video settings.

Additional Notes:

The sprite assets for this tutorial can be downloaded from the Unity asset store at:

https://www.assetstore.unity3d.com/en/#!/content/18684

The sprite assets were resized 50% bigger before importing them to the project.

Also, opengameart.org is a good resource for game sprites.

The camera size was calculated in the following form:

Camera Size = Screen Height / PixelToUnits / 2

Screen Height – is the game target height.

PixelToUnits – when you import a sprite, by default Pixel To Units is set to 100.

We divide by 2 to get half height of the screen since the camera is at the center of the screen at 0,0.

Our game target height for this tutorial is 640 pixels (having in mind the landscape height of the iPhone is 640 pixels), so we computed the camera size as follows:

Camera Size = 640 / 100 / 2

Camera Size = 3.2

Feel free to post any questions or comments at the bottom of the page.

References:

https://www.assetstore.unity3d.com/en/#!/content/18684