Let your Player Heal!!


Create a PowerUp that heals the player.


Similar to our Ammo PowerUp, we will need to add the PowerUp as a Spawnable object, make it collectible by the Player, and add functionality to the Player and UI once the PowerUp is collected.



Since we just limited Ammo give the Player a chance to recover


We need to create a new PowerUp that refills the ammo of the Player.


On collection of the PowerUp, refill ammo count and the UI.


We will need a Prefab to collect as well…

Adding limits on how much the Player can shoot


We want to add a limit to how many times the Player can shoot at enemies.


We will need to implement a counter variable to keep track of the current ammo left. On fire of laser we will need…

Making the power up a more powerful power up


When the Player collects a shield power up, we will allow 3 hits on the shield before it is disabled.


We will need to add a life counter to our shield. This counter will start at 3 on collection of the shield. The shield currently expires with time…

Implementing an enemy fire system

So, we have pretty slick game with random speeds, and spawns, and power ups.

Let’s add a little more challenge by letting the enemy shoot back.

EnemyLaser Prefab

Let’s start by making an EnemyLaser Prefab.

Start with an empty GameObject and add a Laser Prefab to it. Position it inline with the…

And a few clean up items

Build Naming Oops

Committing to git frequently is a good idea. In this commit round I discovered an oops. Out .gitignore file is setup to ignore the build and builds folder. However, we created our builds in there own folders under the project.

Build and Test Your Game!!

PC Build

Let’s get our build setup.

First from Build Settings go to Player Settings. This allows you to change how to launch the compiled application. By default it is set to full screen. One thing we have not implemented yet is the exit command.

We need to change the Fullscreen Mode…

Let’s sound it out!!

Background Music

To add background music lets add an AudioSource to our Main Camera game object. Then drag the music_background asset to the AudioClip slot. When adding background music it is ok to attach it to a permanent object like the camera.

Unfortunately, gifs don’t share audio. …

Daniel Jennings

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