Unity 2D Space Shooter Tutorial – Part 9

Unity 2D Space Shooter Tutorial

In Part 9 of our 2d space shooter tutorial series we’ll create a star prefab that scrolls down the screen and a star generator. The star generator will create many stars and put them randomly on the screen with different colors and random speed.

Also we’ll create a planet prefab that scrolls down the screen and a planet controller. The planet controller will contain an array of planet prefabs, it’ll pick a planet from the array of planets, set its position randomly between the left and right side of the screen, and make it scroll down the screen.

 

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:

The star and the planets sprites can be downloaded here: StarAndPlanets.zip

 

References:

Unity – Scripting API: Random.value

Unity – Scripting API: Random.Range

Unity – Scripting API: Bounds

 

blog comments powered by Disqus