Learn › Godot 2D Beginner

Lesson 5 of 6 · About 4 min

Colours and mood

The same wave feels like another place under a different sky.

Star Salvo's first wave in a teal sky, with an orange ship.

Each wave has its own sky colours. Change the first wave's sky and the ship's colour.

A sky for each wave

STAGES holds one set of colours per wave: the top and bottom of the sky, the tint of the stars, and the glow of the clouds. The game draws a gradient between top and bottom, and moving to the next wave changes the mood.

Colours are written as Color(red, green, blue), each from 0 to 1.

Keep the bullets readable

In a shoot-em-up the player must see every bullet at a glance. Dark skies with bright bullets and a ship in a colour of its own keep everything readable. Change colours with that in mind.

A teal nebula

In the session you will give the first wave a teal sky and the ship an orange body.

Star Salvo under a teal sky with an orange ship, with the AI's reply in the chat.
Recolour

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 row of STAGES is the first wave's sky. HERO_COL is the ship's main colour.
  2. Make the first wave's sky a teal nebula and the ship orange.
  3. The orange ship stands out against the teal sky, and the pink and orange bullets still read clearly.
Start makingDownload on the App StoreGet it on Google Play