Cannons and Generators


This week, I created the cannon and generator ship components, as well as cannon projectiles. Cannons shoot bullets into space, which check collision with any component as they travel. If they hit a ship component or the player ship, they inflict damage upon it and then die. Generators produce energy for the ship, so if all ship generators are destroyed, the ship will not be able to fire. In order for this mechanism to work, I had to create references to the ship in the generator Blueprint, which would then decrement a counter and trigger the “stop firing” event once it hits zero.

The cannon projectile needed some work as well. I had to test the damage output to all ship components except the one it is fired from, as well as the damage to the player ship.

Next week, I will make the first ship classes and figure out their movement capabilities.

Get Hammerhead

Leave a comment

Log in with itch.io to leave a comment.