Learn › Godot 2D Beginner

Lesson 3 of 6 · About 5 min

Weapons and power levels

Each power-up gives your ship a wider spread of shots.

The ship of Star Salvo fires a wide spread of shots.

Each power-up moves the ship to the next row of WEAPONS. Make the spread wider.

One row per power level

The ship's weapon gets stronger with each power-up. WEAPONS has one row per level: its name, the seconds between shots (interval), the damage of each shot, its speed and colour, and its shots. Each shot is an offset to the side and an angle in degrees from straight up; a third number 1 makes it homing.

Balance

More shots per row means more damage per second, so each row lowers dmg a little as the shots grow. Spread, the third level, fires three shots: one straight and two angled 9 degrees out. A wider spread is easier to aim but spreads the damage thin.

A wider spread

In the session you will give the Spread level two more shots, angled wider.

Star Salvo in the editor, with the AI's reply about the wider spread in the chat.
Widen the spread

Try it yourself

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

  1. WEAPONS has four rows: Blaster, Twin Blaster, Spread and Storm.
  2. Give the Spread weapon two more shots, angled wider.
  3. Pick up two power-ups to reach Spread and see the fan. The first wave's carrier drops one.
Start makingDownload on the App StoreGet it on Google Play