Skip to content

Commit 8c34d97

Browse files
authored
Merge pull request #10466 from Calinou/first-2d-game-player-scene-name
Mention the expected file name for the player scene in Your first 2D game
2 parents 68d4c35 + 4f70dc1 commit 8c34d97

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

getting_started/first_2d_game/02.player_scene.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ Node structure
1515

1616
To begin, we need to choose a root node for the player object. As a general
1717
rule, a scene's root node should reflect the object's desired functionality -
18-
what the object *is*. In the upper-left corner, in the "Scene" tab, click the
18+
what the object *is*. In the upper-left corner, in the "Scene" tab, click the
1919
"Other Node" button and add an :ref:`Area2D <class_Area2D>` node to the scene.
2020

2121
.. image:: img/add_node.webp
2222

23-
When you add the ``Area2D`` node, Godot will display the following **warning icon**
23+
When you add the ``Area2D`` node, Godot will display the following **warning icon**
2424
next to it in the scene tree:
2525

2626
.. image:: img/no_shape_warning.webp
2727

28-
This warning tells us that the ``Area2D`` node requires a shape to detect collisions or overlaps.
29-
We can **ignore the warning temporarily** because we will first set up the player's visuals
30-
(using an animated sprite). Once the visuals are ready, we will add a collision shape as a child
31-
node. This will allow us to accurately size and position the shape based on the sprites appearance.
28+
This warning tells us that the ``Area2D`` node requires a shape to detect collisions or overlaps.
29+
We can **ignore the warning temporarily** because we will first set up the player's visuals
30+
(using an animated sprite). Once the visuals are ready, we will add a collision shape as a child
31+
node. This will allow us to accurately size and position the shape based on the sprite's appearance.
3232

3333

3434
With ``Area2D`` we can detect objects that overlap or run into the player.
@@ -44,8 +44,8 @@ node is clicked in 2D and 3D view."
4444

4545
.. image:: img/lock_children.webp
4646

47-
Save the scene. Click Scene -> Save, or press :kbd:`Ctrl + S` on Windows/Linux
48-
or :kbd:`Cmd + S` on macOS.
47+
Save the scene as ``player.tscn``. Click **Scene > Save**, or press :kbd:`Ctrl + S`
48+
on Windows/Linux or :kbd:`Cmd + S` on macOS.
4949

5050
.. note:: For this project, we will be following the Godot naming conventions.
5151

@@ -68,7 +68,7 @@ Click on the ``Player`` node and add (:kbd:`Ctrl + A` on Windows/Linux or
6868
appearance and animations for our player. Notice that there is a warning symbol
6969
next to the node. An ``AnimatedSprite2D`` requires a :ref:`SpriteFrames
7070
<class_SpriteFrames>` resource, which is a list of the animations it can
71-
display. Make sure ``AnimatedSprite2D`` is selected and then find the ``Sprite Frames`` property under
71+
display. Make sure ``AnimatedSprite2D`` is selected and then find the ``Sprite Frames`` property under
7272
the ``Animation`` section in the Inspector and click "[empty]" -> "New SpriteFrames":
7373

7474
.. image:: img/new_spriteframes.webp
@@ -110,7 +110,7 @@ When you're finished, your ``Player`` scene should look like this:
110110

111111
.. image:: img/player_scene_nodes.webp
112112

113-
Once this is done, the warning on the ``Area2D`` node will disappear, as it now has
113+
Once this is done, the warning on the ``Area2D`` node will disappear, as it now has
114114
a shape assigned and can interact with other objects.
115115

116116
Make sure to save the scene again after these changes.

0 commit comments

Comments
 (0)