Unity Guide

A quick review of new features added to a space shooter game in Unity

Objective: Implement a new system to spawn enemies in a space shooter game with Unity.

In the previous post I implemented a new movement behavior for the enemies in my space shooter game with Unity. Now it’s time to implement a new system to spawn the enemies in different waves.

Wave warning

In an older post, I covered how to make a retro game over behavior, which gives the game over warning a blinking behavior when the player gets destroyed:

I used coroutines to do that effect, but now, I’ll use another method to achieve the same behavior and make it possible…


Unity Guide

A quick review of new features added to a space shooter game in Unity

Objective: Implement new movement behavior in a space shooter game with Unity.

In the previous post I implemented a new type of shot in my space shooter game with Unity. Now it’s time to implement new movement behavior for the enemies to make the game harder.

New classes

If you have been following my posts, then you’ll remember that we were just using one class to control the enemy behavior. In order to accomplish a new behavior, let’s create new classes, which will use inheritance to make new behaviors scalable and modular when we try to make new enemies in the future.


Unity Guide

A quick review of new features added to a space shooter game in Unity

Objective: Implement a new type of shot for a space shooter game with Unity.

In the previous post I implemented a camera shake effect in my space shooter game with Unity. Now it’s time to implement a new type of shot for the player spaceship.

New Assets

To start, let’s get the new sprites to implement the new shot. If you don’t have any edition software to create them you can always use a free one like the one I use:

Also, if you don’t know how to create shots, power-ups or animations you can check these older posts to get a…


Unity Guide

A quick review of new features added to a space shooter game in Unity

Objective: Implement a camera shake effect for a space shooter game with Unity.

In the previous post I implemented a system to limit the ammunition of the player in my space shooter game with Unity. Now it’s time to implement a camera shake effect to display it every time that the player receives damage.

Creating the shake effect

In order to create the shake effect, let’s create a new script and attach it to the main camera:


Unity Guide

A quick review of new features added to a space shooter game in Unity

Objective: Implement a system to limit the ammunition that the player shoots in a space shooter game with Unity.

In the previous post I implemented a health power-up item in my space shooter game with Unity. Now it’s time to implement a system to limit the ammunition, display its stats and provide a way to refill it.

Limiting the ammo

In order to limit the ammunition, let’s start by opening the Player script:


Unity Guide

A quick review of new features added to a space shooter game in Unity

Objective: Implement a health power-up item for a space shooter game with Unity.

In the previous post I implemented a strength visualizer for the player’s shield in my space shooter game with Unity. Now it’s time to implement a new power-up item that provides health or an extra life.

First, like we did in an older post, let’s create the power-up item by dragging the respective sprite into the scene:


Unity Guide

A quick review of new features added to a space shooter game in Unity

Objective: Implement a strength visualizer for shields in a space shooter game with Unity.

In the previous post I implemented a boost behavior with a HUD for my space shooter game with Unity. Now it’s time to implement a way to display the strength of the player’s shield.

Shield strength visualizer

In order to create a strength visualizer for the shield let’s add a new C# script to handle the shield prefab:


Unity Guide

A quick review of new features added to a space shooter game in Unity

Objective: Implement a boost behavior and its head-up display (HUD) for a space shooter game with Unity.

Thruster boost behavior

In an older post I covered how to create a power-up for your game and then animate it. One of the power-ups implemented was a speed boost that lasted for 5 seconds, but let’s make the speed boost a feature for the player.

In several games, a speed boost or running animation is triggered while the left shift key is pressed, so I’m going to do the same for my player.

To start, let’s create a new variable in the Player script that…


Unity Guide

A quick guide about how to use sound effects in Unity

Objective: Implement sound effects in a space shooter game in Unity.

In the last post I covered how to start using audio in Unity, and now it’s time to implement sound effects for the space shooter game.

Laser sound effect

In order to implement a laser sound effect every time the player spaceship shoots, we need to add an Audio Source component in the player gameobject. Let’s make sure that the Play on Awake property is disabled so that it only plays the sound whenever it shoots:


Unity Guide

A quick guide about how to start using audio in Unity

Objective: Set up a scene in a space shooter game to start using background music with Unity.

In order to show how to start using audio with Unity, we’ll implement background music in a space shooter game.

Fernando Alcantara Santana

A passionate computer technology engineer and Unity developer that is always looking to grow in every aspect of life :).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store