-
-
Notifications
You must be signed in to change notification settings - Fork 918
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enhance TexturePackerSprite (#3224)
- Add feature to enable to use original size instead always to use packed size - Support trimmed/stripped whitespace with `useOriginalSize = true` - Fix issue when rendering rotated image (wrong size and position)
- Loading branch information
Showing
17 changed files
with
721 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
...es/flame_texturepacker/test/assets/legacy/multiplePages/MultipleTrimmedPageAtlasMap.atlas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
|
||
MultipleTrimmedPageAtlasMap.png | ||
size: 189, 502 | ||
format: RGBA8888 | ||
filter: Linear, Linear | ||
repeat: none | ||
robot_fall | ||
rotate: true | ||
xy: 0, 317 | ||
size: 185, 189 | ||
orig: 192, 256 | ||
offset: 6, 2 | ||
index: -1 | ||
robot_jump | ||
rotate: true | ||
xy: 0, 152 | ||
size: 163, 189 | ||
orig: 192, 256 | ||
offset: 17, 1 | ||
index: -1 | ||
robot_walk | ||
rotate: true | ||
xy: 0, 0 | ||
size: 150, 183 | ||
orig: 192, 256 | ||
offset: 14, 2 | ||
index: 0 | ||
|
||
MultipleTrimmedPageAtlasMap2.png | ||
size: 249, 469 | ||
format: RGBA8888 | ||
filter: Linear, Linear | ||
repeat: none | ||
robot_walk | ||
rotate: true | ||
xy: 0, 318 | ||
size: 151, 181 | ||
orig: 192, 256 | ||
offset: 13, 0 | ||
index: 4 | ||
robot_walk | ||
rotate: true | ||
xy: 0, 187 | ||
size: 129, 185 | ||
orig: 192, 256 | ||
offset: 23, 0 | ||
index: 7 | ||
robot_walk | ||
rotate: false | ||
xy: 0, 0 | ||
size: 129, 185 | ||
orig: 192, 256 | ||
offset: 23, 0 | ||
index: 3 | ||
robot_walk | ||
rotate: false | ||
xy: 131, 4 | ||
size: 118, 181 | ||
orig: 192, 256 | ||
offset: 34, 0 | ||
index: 2 | ||
|
||
MultipleTrimmedPageAtlasMap3.png | ||
size: 250, 492 | ||
format: RGBA8888 | ||
filter: Linear, Linear | ||
repeat: none | ||
robot_duck | ||
rotate: false | ||
xy: 132, 159 | ||
size: 116, 150 | ||
orig: 192, 256 | ||
offset: 34, 0 | ||
index: -1 | ||
robot_idle | ||
rotate: false | ||
xy: 0, 310 | ||
size: 130, 182 | ||
orig: 192, 256 | ||
offset: 31, 0 | ||
index: -1 | ||
robot_walk | ||
rotate: false | ||
xy: 0, 131 | ||
size: 130, 177 | ||
orig: 192, 256 | ||
offset: 23, 0 | ||
index: 5 | ||
robot_walk | ||
rotate: false | ||
xy: 132, 311 | ||
size: 118, 181 | ||
orig: 192, 256 | ||
offset: 34, 0 | ||
index: 6 | ||
robot_walk | ||
rotate: true | ||
xy: 0, 0 | ||
size: 129, 177 | ||
orig: 192, 256 | ||
offset: 24, 0 | ||
index: 1 |
Binary file added
BIN
+47.9 KB
..._texturepacker/test/assets/legacy/multiplePages/MultipleTrimmedPageAtlasMap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.5 KB
...texturepacker/test/assets/legacy/multiplePages/MultipleTrimmedPageAtlasMap2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.8 KB
...texturepacker/test/assets/legacy/multiplePages/MultipleTrimmedPageAtlasMap3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.