Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In cocos2d images can be cropped in the sprites sheet but they keep their original size when using them in cocos2d. This feature is useful for animations.
When cropped, sprite’s need to be offset to ensure their texture is drawn in correct alignment to their original size. This PR implement offset for the cocos2d format.
PS: An option might be added to glue to actually crop the image or keep its original size.
For instance TexturePacker implements the following options:
--trim-mode=None (images are not cropped at all)
--trim-mode=Trim (transparency is removed but original size is kept)
--trim-mode=Crop (sprite appears in the sheet as if it never had any transparency)