Game Dev in Progress… Day 35

Cristian Aspacio
2 min readDec 9, 2020
Photo by Headway on Unsplash

It is Day 35 and the story continues through the second week of working on the game project. Today, I was able to finish the wave system and have them set up to instantiate the enemies that we needed. Chris who worked on it made it really easy to modify and create the waves that we needed to reach MVP. We this, I will demo it tomorrow and do some testing to see if it works with everybody else’s code. Here is a short demo of what I was able to accomplish:

I have it randomly spawn a generic enemies but we will have more enemies as the other team members get finished with them. The spawning system spawns one randomized enemy from a list. I have a spawn point that is randomized to go up and down but we can also create more spawn points to have more control. The script that was created for the spawn manager is very modular and which will help the developers create there own unique waves. I have it set up to be randomized right now but the script can be modified to have more control over the waves. I also have it set up to spawn the mid boss and the final boss during specific waves.

One problem I had was that when I was spawning the Final Boss, it was in the wrong rotation. I am going to let Dylan fix it because I didn’t mess with his code. I also had the same problem for my implementation of mid boss but I solved it by hard coding the rotation I wanted when it instantiates. Another problem I was able to figure out was that the abstract class had an null pointer error. This is because with did not assign the components to the variable handlers we had setup. Abstract classes are really powerful and also really hard to use. We had modify it a bit more to add more functionalities that we forgot to add at the beginning.

Finishing up, I was lucky that Chris was able to make this script easy to understand and easy to modify. I didn’t want to add to much into it because of the time limit we had to finish. So right now I think we have a good system going that can be used by everybody. Now that is done, I await my next task for tomorrow. Thanks for reading!

_

Cristian Aspacio

--

--