Final boss' minigun

 Author: Daniel Jackson


  The final boss can use any weapon currently in the game and improve them while in use. For the minigun, because it is already a very powerful weapon, rather than do some major improvement to it the final boss can spawn turrets that will track the player while firing and will add to the chaos during the fight. Correctly creating the turrets, making them behave as intended, and allowing the boss to spawn them at will is what made this take the longest.


  The first thing I did was spawn a basic enemy which I would convert to a turret. I gave it a lesser version of the minigun and set it so it would constantly fire. I removed its ability to walk and made it rotate to face the player exclusively which already effectively made it a turret. Then I put up a safety net, typically when a basic enemy dies they are removed from the game. With the turrets, so that we would not have to spawn them during the fight, all the turrets are created outside of the level as it is generated and instead of being destroyed at zero health they are reset so they stop firing, are set to full health, and moved outside the level again waiting to be respawned. Finally, I created a function for the boss that will allow it to find an inactive turret and place it at a point it chooses within the level and will switch it on.

Comments

Popular posts from this blog

Adding assets to every enemy -- Owen Meyers

Sphere to AABB collision