In Part 7 of our 2d space shooter tutorial series we’ll create some UI elements including a Play button and a player Lives UI to display the player lives. Also, we’ll implement a game manager for our game.
The game manager will display the Play button when the game starts, it will display the player ship and start the enemy spawner when the user clicks on the Play button, it will display Game Over when the player dies and stop the enemy spawner, and then display the Play button again.
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.
Watch in HD by Clicking in the video settings.
We created the UI sprites in Photoshop for this part of the tutorial,
you can download them at: UI Sprites.zip
Feel free to use these sprites in you game (even if it’s commercial).
The Lives UI sprite doesn’t include the small space ship icon because of its license, but feel free to add it yourself using Photoshop or other image editing program.