Adding a boss in the final wave

Jaime
Jun 24, 2021

--

The final requirement is adding a boss to the spaceshooter game. Again, if I don’t have the time to make my own enemy boss, I can simply use GameDevHQ’s Filebase:

The boss needs to move down to the center and stay there. This can be accomplished by this code:

void Update()
{
if (transform.position.y >= 1.8f)
{
transform.Translate(new Vector3(0, -1, 0) * _speed * Time.deltaTime);
}
}

I just used the same homing missile and laser for the boss but with a faster fire rate. Now, I have an enemy boss!

Yehey! Now moving on to the next project.

--

--

Jaime
Jaime

No responses yet