Full Speed Ahead
Alright! It’s day 11, and I am almost complete with my space shooter game. What a journey it has been so far. Lets go through my completions for today.
Since completing my audio for the background and laser, I figured I would test out my skill. I went ahead and added explosion sounds to the enemy, powerups, and player. It took my a while to get my powerup sound working. EUREKA!! I figured it out. Since I took the initiative to complete all sound items before my challenges, let the course run to critic myself. Wait a minute, I didn’t do mines that way. That’s the beauty of programming as there are multiple ways things will work, but its more of which way would be more optimal. I became Ecstatic, at the fact that things are sticking well. Lets take a look at what I did.
So I figured since all the sounds interact with the player whether its a power, a laser shot, or an explosion caused by player laser. Also if I needed to ad more sound effects connected to the player I can always add an additional element.
I grouped all the clips into an array of audio clips and assigned them.
created a handle to the audio source component and null checked to make sure I was grabbing the clips.
and attached the audio source number to the assigned object and play script.
each object also had a method for destroy which would stop the play as well. Everything ran smoothly so I left it as is.
Moving on I learned how to deploy the game to different platforms. Last we went into enemy fire. I’m not confident with this one and will have to go through some additional course challenges for “For loops”. Capping off night I added background music to the title screen and a custom explosion for when player has no lives left.
I have another day ahead of me and will update more on my progress at end of day tomorrow.
Good night!