Learn › Godot 2D Beginner

Lesson 2 of 6 · About 5 min

Waves of enemies

Every enemy here arrives on a timetable, and you are about to edit it.

Dart ships dive toward the player in Star Salvo.

A shoot-em-up's pacing is a timetable. How Star Salvo's WAVES table schedules every enemy.

A timetable of enemies

A wave in Star Salvo is a list of groups. Each group says when it starts (t, in seconds from the start of the wave), which kind of enemy, how many (n), where the first one enters (x), how far apart the next ones are (dx), and how many seconds between them (gap). A group may carry a power-up that the last kill drops.

The last wave holds the boss.

Pacing

Good waves alternate pressure and rest. A line of slow drones, a quick dive of darts, a moment to breathe, then something bigger. The numbers t and gap are where that rhythm lives: closer groups mean more pressure.

One more group

In the session you will add a fast dive of darts at the end of the first wave.

Star Salvo in the editor, with the AI's reply about the new group of darts in the chat.
Add a dive

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 first wave has four groups: drones, darts, a carrier with a power-up, and more drones.
  2. Add a fast dive of six darts across the screen at the end of the first wave.
  3. Play the first wave to the end to see the dive. Darts dive straight down, so a line of them sweeps the whole width.
Start makingDownload on the App StoreGet it on Google Play