Merge branch 'master' into 3.2

This commit is contained in:
Rémi Verschelde
2020-09-22 08:59:08 +02:00
12 changed files with 94 additions and 22 deletions

View File

@@ -654,8 +654,12 @@ the scene tree::
Constants
~~~~~~~~~
Constants are similar to variables, but must be constants or constant
expressions and must be assigned on initialization.
Constants are values you cannot change when the game is running.
Their value must be known at compile-time. Using the
``const`` keyword allows you to give a constant value a name. Trying to assign a
value to a constant after it's declared will give you an error.
We recommend using constants whenever a value is not meant to change.
::