Menu
CoddyTech

What Is Godot?

Part of the Nodes and Scenes section of Coddy's Godot journey. Lesson 1 of 28.

Godot is a free program for making games. A Godot game is made of nodes. The robot on the right is a node, and so are its body, its eyes and its antenna.

A node can have a script that tells it what to do. Scripts are written in GDScript, Godot's language. This is the robot's script, robot.gd:

extends Node2D

func _ready():
	print("Hello")

extends Node2D says the script belongs to a 2D node. The code inside _ready() runs when the game starts. print() writes a line in the Console, under the game.

Press Play to run the game.

challenge icon

Challenge

Easy

Make the robot say hello when the game starts.

  1. In _ready(), type a message between the quotes of print(""), for example Hello, Godot!.
  2. Keep the tab at the start of the line.

Press Play: the Console under the game shows your message. Then Check.

Try it yourself

extends Node2D

func _ready():
	print("")

All lessons in Nodes and Scenes

Practice on your own: Godot playground