Fallback atlas / Bugfixes / Cleanup
This commit is contained in:
@@ -367,8 +367,20 @@ task pack(dependsOn: classes){
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
||||
println("\n\nPacking normal 4096 sprites...\n\n")
|
||||
|
||||
//pack normal sprites
|
||||
TexturePacker.process("core/assets-raw/sprites_out/", "core/assets/sprites/", "sprites.atlas")
|
||||
|
||||
println("\n\nPacking fallback 2048 sprites...\n\n")
|
||||
|
||||
//replace config file contents
|
||||
fileTree(dir: '../core/assets-raw/sprites_out/', include: "**/*.json").visit{ file ->
|
||||
if(!file.isDirectory()) file.file.text = file.file.text.replace("4096", "2048")
|
||||
}
|
||||
|
||||
//pack fallback 2048x2048 sprites
|
||||
TexturePacker.process("core/assets-raw/sprites_out/", "core/assets/sprites/fallback/", "sprites.atlas")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user