Skip to content

Commit fed7aa3

Browse files
Merge branch 'develop'
2 parents 5d55f57 + 55509f4 commit fed7aa3

14 files changed

+106
-2
lines changed

CHANGELOG.MD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## v3.36.0 - Nov 15, 2022
4+
5+
* Animations Editor: allows compiling the animation constans.
6+
* The Keyboard Key section.
7+
38
## v3.35.2 - Nov 10, 2022
49

510
Update version.

animations-editor/compiler.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.. include:: ../_header.rst
2+
3+
Compiling animation key constants
4+
---------------------------------
5+
6+
You can enable compiling a code file with constant definitions for the animation keys.
7+
8+
For each animation, the compiler will generate a constant declaration. Like this:
9+
10+
.. image:: ../images/animtions-editor-compiler-20221114.webp
11+
:alt: Animations constants compiler.
12+
13+
If you have a lot of animations in your game, we recommend using this feature. You can reference animations using constants (and auto-completion) instead of writing the key names "by hand".
14+
15+
By default, the compiler is disabled. You can enable it in the **Compiler Settings** section. This section shows when no animation is selected:
16+
17+
.. image:: ../images/animations-editor-compiler-settings-20221114.webp
18+
:alt: Compiler settings.
19+
20+
This a table with the parameters:
21+
22+
* **Generate Code**: Enable the code generation.
23+
* **Output Language**: Choose between JavaScript and TypeScript.
24+
* **ES Module**: If selected, it generates an ES module file.
25+
* **Output Folder**: Choose the parent folder for the output file. If you are using a WebPack or similar bundler, you may want to generate the code in a sub-directory of the `src` folder.
26+
27+
.. image:: ../images/animations-editor-select-output-folder-20221114.webp
28+
:alt: Select the output folder.

animations-editor/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Animations Editor
1212
auto-build-animations
1313
edit-animations-properties
1414
adding-deleting-frames
15+
compiler
1516

1617
`Sprite animations <https://photonstorm.github.io/phaser3-docs/Phaser.Animations.Animation.html>`_ are the most frequent option to animate characters in Phaser_ games. The principle of this animation technique is the displaying of a sequence of images (frames), at a given "speed" or frame rate.
1718

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
# built documents.
5757
#
5858
# The short X.Y version.
59-
version = u'v3.35.2'
59+
version = u'v3.36.0'
6060
# The full version, including alpha/beta/rc tags.
61-
release = u'v3.35.2'
61+
release = u'v3.36.0'
6262

6363
# The language for content autogenerated by Sphinx. Refer to documentation
6464
# for a list of supported languages.
15 KB
Loading
34 KB
Loading
110 KB
Loading
23.3 KB
Loading
13.9 KB
Loading
26.7 KB
Loading

0 commit comments

Comments
 (0)