Please sign in to comment.
Added a hitBounds member variable (Jfx Circle) for collision detectio…
…n. The initHitZone() method creates the collision bounded region of the ship. Also, I've scaled or translate the missile closer to the nose of the ship which is beyond the hit zone. If both regions are in the center you are shooting yourself. So beware when increasing the size of the hit zone. To make things better update the collide() method. Lastly, I've updated the shieldUp() method now called shieldToggle(). This method will swap the hitBounds or the shield.
- Loading branch information...
Showing with 35 additions and 7 deletions.