Day 11 with GameDevHQ

Eric Hankins
2 min readDec 15, 2020

“Music gives a soul to the universe, wings to the mind, flight to the imagination and life to everything”.

-Plato

You know what would be nice to have while traversing through space destroying enemy spaceships? Some Space Jams! Let’s turn up that space radio and tune in to those looneys out deep in space. I have to say, they did not drop the ball on good taste. Maybe we’ll make a pit stop to “Moron Mountain” on the way to fight the Martians.

Okay well enough of that. Today we applied some audio to our game. This started out easy breezy, with a background some. We simply added a Audio Source Component and attached our audio clip provided to us by GameDevHQ. Then set it on an endless loop and now we have a theme song to our game! The intensity of our game has increased sevenfold! Now, we’re slaying across the galaxy in rhythm and style. Of course, then we had to add some “pewpew’s” to our lasers.

The destruction of our enemy was exciting with the explosion, but with no explosive audio, we’re missing the feel of impact. I’ll say, it makes sense that you can’t hear anything in space. It is one giant airless vacuum; noise wouldn’t exactly travel far. But let’s not concern ourselves with physics and reality, we’re making a game here! So we added some explosion audio to our asteroid and enemy prefabs. This part was a bit of a curve ball, as the enemy has a completely different animation from the explosion. I initially couldn’t figure out why my enemy wasn’t exploding. The “explosion” prefab was working, for sure! So why weren’t the enemies making any noise? Well I had to throw in the towel and look at the next video. I was slightly disappointed in myself for not catching that one. Goes to show, sometimes taking a step back and going through the whole picture can help assess the problem. Rather than looking through a straw and focusing on making something work, try a different path. In computer programming, I’ve learned there’s many roads that lead to success.

Inching closer to completion, today I completed the “Audio” portion of the curriculum. I started trying to build my project as a playable game, but I keep getting this critical error. I believe it may have something to do with the assets from “filebase” and the folding I’m saving into. I’m also having unity say my script isn’t utilizing one of my bools. Which is strange because it’s not true at all; and I wasn’t getting these errors the other day when I created that portion of the script. I wonder if maybe we cleaned up the code a little bit and I didn’t delete a portion I should have. I’ll be sure to go back around and check the code again Jonathan’s. I’ll likely reach out for help on this, as I don’t want to spend too much time on something that should be an easy, straight shot. I want to focus more on the coding of my game and accomplishing the play, feel, and progression of the game.

--

--