From 96d83a01cf45f63f7ee1ca15d2f9d2c1cd8133ad Mon Sep 17 00:00:00 2001 From: "Mark J. Easton" Date: Sat, 6 May 2023 21:52:03 +0100 Subject: [PATCH] Update description of scenes' use of declarative code Tighten language mentioning scenes' use of declarative code and scripts use of imperative code. --- tutorials/best_practices/scenes_versus_scripts.rst | 4 ++-- tutorials/best_practices/what_are_godot_classes.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/best_practices/scenes_versus_scripts.rst b/tutorials/best_practices/scenes_versus_scripts.rst index 63f13c925..66a3a5730 100644 --- a/tutorials/best_practices/scenes_versus_scripts.rst +++ b/tutorials/best_practices/scenes_versus_scripts.rst @@ -11,8 +11,8 @@ declarative code. Each system's capabilities are different as a result. Scenes can define how an extended class initializes, but not what its -behavior actually is. Scenes are often used in conjunction with a script so -that the scene acts as an extension of the scripts declarative code. +behavior actually is. Scenes are often used in conjunction with a script, +the scene declaring a composition of nodes, and the script adding behaviour with imperative code. Anonymous types --------------- diff --git a/tutorials/best_practices/what_are_godot_classes.rst b/tutorials/best_practices/what_are_godot_classes.rst index 5b1e9ee91..82e464511 100644 --- a/tutorials/best_practices/what_are_godot_classes.rst +++ b/tutorials/best_practices/what_are_godot_classes.rst @@ -54,8 +54,8 @@ The behavior of scenes has many similarities to classes, so it can make sense to a class. Scenes are reusable, instantiable, and inheritable groups of nodes. Creating a scene is similar to having a script that creates nodes and adds them as children using ``add_child()``. -We often pair a scene with a scripted root node that makes use of the scene's nodes. As such, the -scene is often an extension of the script's declarative code. +We often pair a scene with a scripted root node that makes use of the scene's nodes. As such, +the script extends the scene by adding behavior through imperative code. The content of a scene helps to define: