Cabin Crew Express · Lesson 01 of 50 · Beginner · About 25 min
The cabin is settled and the first practice service is about to start. Ari needs a briefing sign before learning the seat plan.

Download the projects from the course page. In Godot’s Project Manager, choose Import, select project.godot, and use Run Project (F5). Start from the blank cabin project in checkpoints/start. Keep the checkpoint ZIP intact and make edits in an extracted working copy.


Build it step by step
Language and tools in this lesson Control scene, script, _ready, Label.new, properties, add_child, print.
-
Make a Godot project
In Godot Project Manager, choose New Project, name it Cabin Crew Express Practice, choose an empty folder, select Compatibility, then choose Create & Edit.
Why it works The folder will hold the scene and script. Compatibility is suitable for the simple 2D game.
-
Set the practice screen
Open Project > Project Settings > Display > Window. Set Viewport Width to 960 and Viewport Height to 540. Set Stretch Mode to canvas_items if you want the game area to scale when resized.
Why it works The same virtual canvas makes the position numbers in each checkpoint easier to follow.
-
Create a Control scene
Choose User Interface under Create Root Node. Rename the root CabinBriefing. Save with Ctrl+S or Cmd+S as main.tscn.
Why it works User Interface creates a Control root. The scene starts with one object that can hold your sign.
-
Attach the starter code
Select CabinBriefing and click Attach Script above the scene tree. Choose GDScript and set the path to res://main.gd. Replace the generated template with the complete checkpoint.
extends ControlWhy it works The script extends Control, so Godot can use it on the root you chose. res:// points to the project folder.
-
Read how the sign appears
Find _ready. Follow it down from Label.new to add_child. Check the quoted text, the position, and the font size before running.
func _ready() -> void: board = Label.new() board.text = "Cabin Crew Express | Service briefing" board.position = Vector2(40, 48) board.add_theme_font_size_override("font_size", 30) add_child(board)Why it works Godot calls _ready when the node is ready. Label.new creates the object. add_child attaches it so Godot can display it.
-
Run and compare two outputs
Press F5. If asked for a main scene, choose Select Current. Read the sign in the game and open the Output panel in the editor.
print("Ari is ready.")Why it works Players see the Label in the game. print sends a message to the editor for checking when the script ran.
Watch the values change
-
Open the scene CabinBriefing enters the scene tree.
What you see. Godot calls _ready. -
Set up the Label A label has the briefing text, position and font size.
What you see. add_child makes the sign visible. -
Reach print The label stays on the screen.
What you see. The editor logs Ari is ready.
Predict before you run If you remove add_child(board), does the Output message still appear?
Reveal the answer
Yes. The print instruction still runs, while the Label is left outside the scene tree.
Complete checkpoint
The window shows Cabin Crew Express | Service briefing and Godot Output prints Ari is ready.
main.gd
extends Control
var board: Label
func _ready() -> void:
board = Label.new()
board.text = "Cabin Crew Express | Service briefing"
board.position = Vector2(40, 48)
board.add_theme_font_size_override("font_size", 30)
add_child(board)
print("Ari is ready.")
func _draw() -> void:
draw_rect(Rect2(Vector2.ZERO, get_viewport_rect().size), Color("#0a2138"))
draw_rect(Rect2(Vector2(40, 106), Vector2(850, 2)), Color("#8ce4ce"))
GDScript line by line
Follow the line numbers, including the indent at the start of each line. Find the code the game will run first, then look for the function that reacts when you tap or change something.
Read main.gd line by line
-
extends ControlAttach this script to a Control node so it can use labels and on-screen buttons. -
var board: LabelKeep the same briefing Label available both to the setup and later callback functions. -
func _ready() -> void:Godot calls this once when the starting cabin Control is ready to create its children. -
board = Label.new()Create the actual Label and store its reference in the script-wide board variable. -
board.text = "Cabin Crew Express | Service briefing"Updates board.text, which controls the words a player sees. The expression uses the text inside the quotes. -
board.position = Vector2(40, 48)Give the sign a small upper-left margin on the 960 × 540 practice screen. -
board.add_theme_font_size_override("font_size", 30)Make the status easy to read without changing every Label in the project. -
add_child(board)Attach the briefing to this Control so Godot can draw it in the active scene. -
print("Ari is ready.")Send a short check message to Godot’s Output panel, separate from the words on the visible sign. -
func _draw() -> void:Godot calls here when the screen needs repainting. Draw the background first, then the cells and marker. -
draw_rect(Rect2(Vector2.ZERO, get_viewport_rect().size), Color("#0a2138"))Paint over the whole viewport to provide the dark surface behind the cabin map. -
draw_rect(Rect2(Vector2(40, 106), Vector2(850, 2)), Color("#8ce4ce"))Paints a rectangle at the given position and size.
Find and fix a bug
If the editor asks for a main scene every time, save main.tscn first and choose Select Current when you press F5.
Try a change
Age 10–12: change the title text. Age 13–16: add a second Label at (40, 125) and confirm that each Label needs its own add_child call.