From c01bcad47e59da0e00e3bf09bd598fea52a3ab42 Mon Sep 17 00:00:00 2001 From: LDMLN <104784903+LDMLN@users.noreply.github.com> Date: Fri, 3 Jan 2025 18:55:05 +0900 Subject: [PATCH] "first 2D game" - minor additions, clarification when areas of the editor are first mentioned (#10378) * "First 2D game" - minor additions, clarification Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com> --------- Co-authored-by: Max Hilbrunner Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com> --- getting_started/first_2d_game/01.project_setup.rst | 3 ++- getting_started/first_2d_game/02.player_scene.rst | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/getting_started/first_2d_game/01.project_setup.rst b/getting_started/first_2d_game/01.project_setup.rst index e04972128..7269ae14d 100644 --- a/getting_started/first_2d_game/01.project_setup.rst +++ b/getting_started/first_2d_game/01.project_setup.rst @@ -41,7 +41,8 @@ Your project folder should look like this. This game is designed for portrait mode, so we need to adjust the size of the game window. Click on *Project -> Project Settings* to open the project settings window, in the left column open the *Display -> Window* tab. There, set -"Viewport Width" to ``480`` and "Viewport Height" to ``720``. +"Viewport Width" to ``480`` and "Viewport Height" to ``720``. You can see the +"Project" menu on the upper left corner. .. image:: img/setting-project-width-and-height.webp diff --git a/getting_started/first_2d_game/02.player_scene.rst b/getting_started/first_2d_game/02.player_scene.rst index d6f23467b..37f4e7d75 100644 --- a/getting_started/first_2d_game/02.player_scene.rst +++ b/getting_started/first_2d_game/02.player_scene.rst @@ -15,8 +15,8 @@ Node structure To begin, we need to choose a root node for the player object. As a general rule, a scene's root node should reflect the object's desired functionality - -what the object *is*. Click the "Other Node" button and add an :ref:`Area2D -` node to the scene. +what the object *is*. In the upper-left corner, in the "Scene" tab, click the +"Other Node" button and add an :ref:`Area2D ` node to the scene. .. image:: img/add_node.webp @@ -68,8 +68,8 @@ Click on the ``Player`` node and add (:kbd:`Ctrl + A` on Windows/Linux or appearance and animations for our player. Notice that there is a warning symbol next to the node. An ``AnimatedSprite2D`` requires a :ref:`SpriteFrames ` resource, which is a list of the animations it can -display. To create one, find the ``Sprite Frames`` property under the ``Animation`` tab in the Inspector and click -"[empty]" -> "New SpriteFrames": +display. Make sure ``AnimatedSprite2D`` is selected and then find the ``Sprite Frames`` property under +the ``Animation`` section in the Inspector and click "[empty]" -> "New SpriteFrames": .. image:: img/new_spriteframes.webp