Skip to content

Commit 6603adc

Browse files
Doc: almost complete.
1 parent 4787684 commit 6603adc

10 files changed

+4
-4
lines changed

docs/canvas.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,13 +547,13 @@ For now, the scene editor only supports Arcade physics. It does not mean that yo
547547
To enable Arcade physics on a sprite you have two options:
548548

549549
- Set ``true`` the ``physicsGroup`` property of the parent group of the sprite. Physics bodies are automatically enabled in objects added to a physics group.
550-
- Select the object and open the context menu, in the ``Sprite → Arcade`` menu there are two commands: ``Set Arcade Body - Rectangular`` and ``Set Arcade Body - Circular``, both commands enable a physics body (rectangular or circular) in the selected object.
550+
- Select the object and open the context menu, in the ``Sprite → Arcade`` menu there are two commands: ``Set Arcade Body - Rectangular`` and ``Set Arcade Body - Circular``, both commands enable a physics body (rectangular or circular) in the selected object. In addition, you can press the ``B`` key, it shows a context menu with all the type of physics bodies, like in the following image:
551551

552552

553553
.. image:: images/SpriteArcadeMenu.png
554554
:alt: Set Arcade physics body to sprite.
555555

556-
When you add a body to a sprite, a new section ``Arcade`` is added to the Property Grid. This section contains many properties related to the Arcade physics body of the sprite and can be edited. In addition, you can visually edit the size and offset of the body, just right click on the sprite and select ``Sprite → Arcade → Edit Body`` or press the ``B`` key.
556+
When you add a body to a sprite, a new section ``Arcade`` is added to the Property Grid. This section contains many properties related to the Arcade physics body of the sprite and can be edited. In addition, you can visually edit the size and offset of the body, just right click on the sprite and select ``Sprite → Arcade → Edit Body`` or press the ``B`` key. Look a shortcuts pane is shown, there you can perform certain actions like change the body type or set the body size "manually":
557557

558558
.. image:: images/EditArcadeBody.png
559559
:alt: Edit Arcade body size and offset.
@@ -818,7 +818,7 @@ There are special properties that are not directly related to any Phaser API, el
818818
========================== ======================================================
819819
Parameter Documentation
820820
========================== ======================================================
821-
``varName`` Used as var name in the generated code and label in the Outline window. Do not confuse it with the **name** parameter, which is part of the Phaser API.
821+
``varName`` Used as var name in the generated code and label in the Outline window. Do not confuse it with the **name** parameter, which is part of the Phaser API. You can change this value by pressing ``F2``.
822822
``public`` To make public an object in the generated code. By default the objects variables are declared is local in the creation method, however public objects will be referenced by instance fields, so they are accessible from any other context.
823823
``pick`` If set to ``false`` then it cannot be selected in the scene.
824824
``generate`` Set to ``false`` if you need to keep the object in the scene but exclude it from the generated code.
@@ -1150,7 +1150,7 @@ Objects alignment and depth order
11501150
Position commands are always a powerful resource to build the layout of scenes. In Canvas we support some basic commands for alignment (left, right, top, bottom, center, and middle) and for depth order (rise, rise to top, lower and lower to bottom).
11511151

11521152
Alignment
1153-
~~~~~~~~-
1153+
~~~~~~~~~
11541154

11551155
The alignment commands are available in the context menu and the Canvas toolbar:
11561156

docs/images/EditArcadeBody.png

62.2 KB
Loading

docs/images/ManipulatorAnchor.png

-13.3 KB
Loading

docs/images/ManipulatorMenu.png

-5.21 KB
Loading

docs/images/ManipulatorMove.png

-13.6 KB
Loading

docs/images/ManipulatorPivot.png

-5.49 KB
Loading

docs/images/ManipulatorRotate.png

-8.3 KB
Loading

docs/images/ManipulatorScale.png

-9.12 KB
Loading

docs/images/ResizeTile.png

24.6 KB
Loading

docs/images/SpriteArcadeMenu.png

-38.9 KB
Loading

0 commit comments

Comments
 (0)