"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 <mhilbrunner@users.noreply.github.com>
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
This commit is contained in:
LDMLN
2025-01-03 18:55:05 +09:00
committed by GitHub
parent 70a32c6950
commit c01bcad47e
2 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -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
<class_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 <class_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
<class_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