You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/03-custom-characters/03-02-creating-a-character.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -118,17 +118,17 @@ The available fields are:
118
118
Health Icon data is structured like so:
119
119
-`id`: The ID to use for the health icon, defaults to character's ID.
120
120
-`scale`: Specify the size of the health icon relative to the original size. For example, `2.0` makes the sprite twice as big. Optional, defaults to `1.0`.
121
-
-`flipX`: Whether to flip the whole sprite horizontally in-game.
121
+
-`flipX`: Whether to flip the whole sprite horizontally in-game. Optional, defaults to `false`.
122
122
-`isPixel`: Specify whether to disable texture smoothing for this characters health icon. Optional, defaults to `false`.
123
-
-`offsets`:
123
+
-`offsets`: The offset of the health icon, in pixels. Optional, defaults to `[0, 0]`.
124
124
- Use an array of two decimal values, the first for horizontal position and the second for vertical position.
125
125
126
126
Death data is structured like so:
127
-
-`cameraOffsets`: The amount to offset the camera by while focusing on this character as they die.
127
+
-`cameraOffsets`: The amount to offset the camera by while focusing on this character as they die. Optional, defaults to `[0, 0]`.
128
128
- Default value focuses on the character's graphic midpoint.
129
129
- Use an array of two decimal values, the first for horizontal position and the second for vertical position.
130
-
-`cameraZoom`: The amount to zoom the camera by while focusing on this character as they die.
131
-
-`preTransitionDelay`: The delay between when the character reaches `0` health and when the death animation plays.
130
+
-`cameraZoom`: The amount to zoom the camera by while focusing on this character as they die. Optional, defaults to `1`.
131
+
-`preTransitionDelay`: The delay between when the character reaches `0` health and when the death animation plays. Optional, defaults to `0`.
132
132
133
133
Animation data is structured like so:
134
134
-`name`: The internal animation name for the game to use.
0 commit comments