Script fixes, padding improvements

This commit is contained in:
Anuken
2018-11-14 17:14:22 -05:00
parent e004e540d7
commit 568e43cf3d
9 changed files with 965 additions and 951 deletions

View File

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 70 B

View File

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 68 B

View File

Before

Width:  |  Height:  |  Size: 883 B

After

Width:  |  Height:  |  Size: 883 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

View File

Before

Width:  |  Height:  |  Size: 200 B

After

Width:  |  Height:  |  Size: 200 B

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 343 KiB

After

Width:  |  Height:  |  Size: 338 KiB

View File

@@ -69,7 +69,7 @@ public class Control extends Module{
content.initialize(Content::init); content.initialize(Content::init);
Core.atlas = new Atlas("sprites.atlas"); Core.atlas = new Atlas("sprites.atlas");
scaling = 1f / Draw.region("blank").getRegionWidth(); scaling = 1f / Draw.region("scale_marker").getRegionWidth();
Core.atlas.setErrorRegion("error"); Core.atlas.setErrorRegion("error");
content.initialize(Content::load); content.initialize(Content::load);

View File

@@ -112,6 +112,7 @@ task scaleSprites(){
task pack(){ task pack(){
dependsOn 'cleanSprites', 'scaleSprites' dependsOn 'cleanSprites', 'scaleSprites'
finalizedBy 'cleanup'
doLast{ doLast{
@@ -121,9 +122,15 @@ task pack(){
} }
TexturePacker.process("core/assets-raw/sprites_out/", "core/assets/sprites/", "sprites.atlas") TexturePacker.process("core/assets-raw/sprites_out/", "core/assets/sprites/", "sprites.atlas")
}
delete{ }
// delete outFolder
task cleanup(){
doLast {
delete {
delete genFolder
delete outFolder
} }
} }
} }