Today my objective is to create what I’m calling “Common Collectables”, health and ammo that will be handled separately from my ‘powerups’, but I’m going to make health rarer than ammo. I’m setting up the variables in the SpawnManager.cs first, then adding StartCoroutine(HealthAndAmmoRoutine()); to my StartSpawning method.
Today my objective is to set an ammo count and display it. I’ll set up a _currentAmmo int and _outOfAmmo audioclip in my Player to start with. Then I’ll update the FireLaser() method to subtract one from the current ammo if TripleShot isn’t active, since I want to give the…
Today my goal is to give Shields 3 hits, and add a UI element to track its health. First I’m going to create three parent objects, each with the correct number of shield sprites in them, position them over my Player lives, then toggle their active state to false.
The Escape Button is a Feature
Simple objective today, just adding the ability for Escape to exit my game. It’s not something that’s default, it has to be coded in yourself! Easily done though, just going to my GameManager.cs and adding another if-then statement for Escape and setting it to Application.Quit(); when pressed. That’s all! It won’t work in the Editor though, you have to Build to test it out.
Building and testing my Unity game
My goal is to build my Unity game as a standalone product. Luckily, Unity makes this incredibly easy! Just by going to build settings in the file menu, you have plenty of options to choose from. Even more if you downloaded support for them. For now though, I just want…
Finishing up sound design in my game
Today my goal is to set up explosion sounds for the asteroid and enemies, as well as powerup pickup sounds. Just like with the Player, we’re going to want to make sure an Audio Source component is installed on the enemy, For this one though, we’ll want to ensure Play…
Making my game more immersive with sound
Today my goal is to add sound to my game! I’m going to start with background music. The first step is to add an Audio Manager object, beneath it I’ll place another empty GameObject named Background. On this Object I’ll stick an Audio Source component which will allow me to…