Script fixes, padding improvements
|
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 883 B After Width: | Height: | Size: 883 B |
BIN
core/assets-raw/sprites_replacement/shapes/clear.png
Normal file
|
After Width: | Height: | Size: 70 B |
|
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
|
Before Width: | Height: | Size: 343 KiB After Width: | Height: | Size: 338 KiB |
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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{
|
task cleanup(){
|
||||||
// delete outFolder
|
doLast {
|
||||||
|
delete {
|
||||||
|
delete genFolder
|
||||||
|
delete outFolder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||