Player and enemy shots

Before we add player or enemy ships, let's turn our attention to the shots that they will be firing. We will build the ShotManager class first, because both the player and enemy ships will need to use it to fire projectiles at each other. Instead of constructing the ship classes and then revisiting them, we can build the shots first and then build a way to utilize the manager in the ship classes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.77.71