Unity 2D Space Shooter Tutorial – Part 2

unity_2d_space_shooter_tutorial_02

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

 

In Part 2 of our 2d space shooter tutorial series will be covering how to get input from the keyboard to control the movement of the player’s spaceship.

 

About:

In this series of tutorials we’ll be making a 2D space shooter game made in Unity3D 5.1 and we’ll be programming in C#. This is a series of tutorials aimed for beginners who want to learn game development in Unity3D. We’ll assume you have some knowledge in a programming language, and that you are somewhat familiar with Unity’s interface.

 

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.

 

Watch in HD by clicking in the video settings.

 

Additional Notes:

Since our player spaceship sprites contain transparent space, we used photoshop to measure the width and height of the actual visible image of the spaceship. The width is 45 pixels and the height is 57 pixels. To calculate the spaceship half width and height we did the following:

Half width = 45 / 2 / PixelToUnits = 0.225

Half Height = 57 / 2 / PixelToUnits = 0.285

PixelToUnits = 100 (From tutorial Part 1)

 

blog comments powered by Disqus