Learn › Godot 2D Beginner

Lesson 6 of 6 · About 5 min

The boss

The last wave is a boss with three ways to attack.

The boss of Star Salvo fires at the ship.

The last wave is a boss with three phases. How its health splits the fight, and how to shorten it.

Three phases

The boss is a row in ENEMIES with hp 230 and a list of phases. Each phase starts when the boss's health falls below a share (above 0.66, above 0.33, above 0) and brings its own fire patterns: aimed shots, fans, rings and finally a spiral.

So the fight gets harder as it goes, and the player can feel each third of the boss's health.

How long a fight lasts

A boss's health decides how long the fight lasts. The phases are shares of it, so lowering hp shortens every phase evenly and keeps the shape of the fight.

A shorter fight

In the session you will lower the boss's health from 230 to 180.

Star Salvo in the editor, with the AI's reply about the shorter boss fight in the chat.
Shorten the fight

Try it yourself

In the app this lesson opens a real game for you, with a guide that walks you through these steps:

  1. The boss is the last row of ENEMIES. Its phases are shares of its health.
  2. Make the boss fight shorter.
  3. Press Make this my game to keep this game in your games, where you can play it and keep changing it.
Start makingDownload on the App StoreGet it on Google Play