const godot gdscript

Language: C and GDScript

For C language, the const keyword is used to define constants. It specifies that the value of the variable cannot be modified after initialization.

For GDScript, the const keyword is used similarly to C. It is used to define constants and the value of a const variable cannot be changed after it has been assigned.

In C:

const int MAX_VALUE = 100;

In GDScript:

const MAX_VALUE = 100