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
EasyMake the robot say hello when the game starts.
- In
_ready(), type a message between the quotes ofprint(""), for exampleHello, Godot!. - 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
1Your First Godot Game
What Is Godot?Ready Runs OncePrint in GodotThe Scene TreeSet a PositionMove a Node OncePractice on your own: Godot playground