Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in FlxAtlasFrames.hx #3323

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions flixel/graphics/frames/FlxAtlasFrames.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ class FlxAtlasFrames extends FlxFramesCollection
/**
* Parsing method for atlases generated from Aseprite's JSON export options. Note that Aseprite
* and Texture Packer use the same JSON format, however this method honors frames' `duration`
* whereas `fromTexturePackerJson` ignores it by default (for backwrds compatibility reasons).
* whereas `fromTexturePackerJson` ignores it by default (for backwards compatibility reasons).
*
* @param source The image source (can be `FlxGraphic`, `String`, or `BitmapData`).
* @param description Contents of JSON file with atlas description.
* You can get it with `FlxG.assets.getText(path/to/description.json)`.
* Or you can just a pass path to the JSON file in the assets directory.
* Or you can just pass a path to the JSON file in the assets directory.
* You can also directly pass in the parsed object.
* @return Newly created `FlxAtlasFrames` collection.
* @see [Exporting texture atlases with Aseprite](https://www.aseprite.org/docs/sprite-sheet/#texture-atlases)
Expand All @@ -56,10 +56,10 @@ class FlxAtlasFrames extends FlxFramesCollection
* @param source The image source (can be `FlxGraphic`, `String`, or `BitmapData`).
* @param description Contents of JSON file with atlas description.
* You can get it with `FlxG.assets.getText(path/to/description.json)`.
* Or you can just a pass path to the JSON file in the assets directory.
* Or you can just pass a path to the JSON file in the assets directory.
* You can also directly pass in the parsed object.
* @param useFrameDuration If true, any frame durations defined in the JSON will override the
* frameRate set in you `FlxAnimationController`.
* frameRate set in your `FlxAnimationController`.
* Note: You can also use `fromAseprite` which uses duration.
* @return Newly created `FlxAtlasFrames` collection.
*/
Expand Down
Loading