The Language
Part of the Fundamentals section of Coddy's GDScript journey. Lesson 1 of 92.
GDScript is the programming language of the Godot game engine. Its syntax is close to Python: blocks of code are marked by indentation instead of curly braces.
You can use GDScript to learn programming from the ground up, and the same code runs inside real Godot games.
Challenge
BeginnerWelcome to your first GDScript program! The code is already written for you.
What to do:
- Look at the line
print("Hello GDScript!") - Press the "Run Code" button
- You should see
Hello GDScript!in the output
Try it yourself
extends Node
func _ready():
print("Hello GDScript!")
All lessons in Fundamentals
4Operators Part 1
Arithmetic OperatorsInteger DivisionModulo OperatorArithmetic ShortcutsRecap - Simple MathComparison Operators10Functions
Declare a FunctionArgumentsReturnReturn TypesRecap - Sigma FunctionRecap - Validation FunctionDefault Values5Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3Ternary OperatorPractice on your own: Online GDScript compiler