mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
"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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user