Project 1: Space Shooter

The Boss part 2

The Lasers, the homing missiles and the beam weapons

Staged gameplay showing all the weapons and their patterns when the boss has taken damage.
All the weapons and their patterns when the boss has taken damage.

Next up are the offensive capabilities of the boss enemy. The lasers and the homing missiles are nothing new, although there will be a twist for this, but the beam weapon is something new. This one can destroy everything on its path, except for the player that is.

The basis for the lasers and the missiles is the previously done weapons, they are just assigned with the enemy status, the same as for the normal enemies.

Showing the boss’s laser firing method.
The boss’s laser firing method.

The difference will be that both of them will have a spread type shooting pattern. One to the left and one to the right. For both weapons and sides the spread is degrees.

Staged gameplay showing the lasers on their own and how the pattern changes when the boss’s health drops.
The lasers on their own.

At the minimum the angle between the lasers is degrees, and for the missiles degrees. But this will change depending on the amount of health the boss has, that is the actual angle will be determined by multiplying the minimum angle by the current health.

Showing the method for firing the missiles.
The method for firing the missiles.

The same applies for how often these weapons are shot, less health more often the shots will come. Done this way the boss enemy will become gradually harder.

Staged gameplay showing the missiles on their own with the changes to the attack pattern when the boss’s health drops.
The missiles on their own.

The beam weapon will have one beam on the left and one on the right side, but these ones will sweep the whole degrees. The direction, from bottom to the sides or vice versa, will be determined randomly.

Showing the method for firing the beam weapons.
The method for firing the beam weapons.

The Random.value method produces a value between and , with both extremes included. This value is then rounded to be either or with the RoundToInt method. If the value is then the sweep is from the bottom to the side, and if it’s the sweep is to the opposite direction.

Staged gameplay showing the beam weapons and their attack pattern on their own.
The beam weapons on their own.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store