Add gen 6-7 sprites and update icon set
This commit is contained in:
1 parent
0e366986b5
commit
b7687a9a30
4574 files changed
+90979
-517496
No files matched your search
@@ -0,0 +1,207 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<data version="1.0">
|
||||
<struct type="Settings">
|
||||
<key>fileFormatVersion</key>
|
||||
<int>6</int>
|
||||
<key>texturePackerVersion</key>
|
||||
<string>7.0.3</string>
|
||||
<key>autoSDSettings</key>
|
||||
<array>
|
||||
<struct type="AutoSDSettings">
|
||||
<key>scale</key>
|
||||
<double>1</double>
|
||||
<key>extension</key>
|
||||
<string></string>
|
||||
<key>spriteFilter</key>
|
||||
<string></string>
|
||||
<key>acceptFractionalValues</key>
|
||||
<false/>
|
||||
<key>maxTextureSize</key>
|
||||
<QSize>
|
||||
<key>width</key>
|
||||
<int>-1</int>
|
||||
<key>height</key>
|
||||
<int>-1</int>
|
||||
</QSize>
|
||||
</struct>
|
||||
</array>
|
||||
<key>allowRotation</key>
|
||||
<false/>
|
||||
<key>shapeDebug</key>
|
||||
<false/>
|
||||
<key>dpi</key>
|
||||
<uint>72</uint>
|
||||
<key>dataFormat</key>
|
||||
<string>phaser</string>
|
||||
<key>textureFileName</key>
|
||||
<filename></filename>
|
||||
<key>flipPVR</key>
|
||||
<false/>
|
||||
<key>pvrQualityLevel</key>
|
||||
<uint>3</uint>
|
||||
<key>astcQualityLevel</key>
|
||||
<uint>2</uint>
|
||||
<key>basisUniversalQualityLevel</key>
|
||||
<uint>2</uint>
|
||||
<key>etc1QualityLevel</key>
|
||||
<uint>70</uint>
|
||||
<key>etc2QualityLevel</key>
|
||||
<uint>70</uint>
|
||||
<key>dxtCompressionMode</key>
|
||||
<enum type="SettingsBase::DxtCompressionMode">DXT_PERCEPTUAL</enum>
|
||||
<key>ditherType</key>
|
||||
<enum type="SettingsBase::DitherType">NearestNeighbour</enum>
|
||||
<key>backgroundColor</key>
|
||||
<uint>0</uint>
|
||||
<key>libGdx</key>
|
||||
<struct type="LibGDX">
|
||||
<key>filtering</key>
|
||||
<struct type="LibGDXFiltering">
|
||||
<key>x</key>
|
||||
<enum type="LibGDXFiltering::Filtering">Linear</enum>
|
||||
<key>y</key>
|
||||
<enum type="LibGDXFiltering::Filtering">Linear</enum>
|
||||
</struct>
|
||||
</struct>
|
||||
<key>shapePadding</key>
|
||||
<uint>0</uint>
|
||||
<key>jpgQuality</key>
|
||||
<uint>80</uint>
|
||||
<key>pngOptimizationLevel</key>
|
||||
<uint>1</uint>
|
||||
<key>webpQualityLevel</key>
|
||||
<uint>101</uint>
|
||||
<key>textureSubPath</key>
|
||||
<string></string>
|
||||
<key>textureFormat</key>
|
||||
<enum type="SettingsBase::TextureFormat">png</enum>
|
||||
<key>borderPadding</key>
|
||||
<uint>0</uint>
|
||||
<key>maxTextureSize</key>
|
||||
<QSize>
|
||||
<key>width</key>
|
||||
<int>2048</int>
|
||||
<key>height</key>
|
||||
<int>2048</int>
|
||||
</QSize>
|
||||
<key>fixedTextureSize</key>
|
||||
<QSize>
|
||||
<key>width</key>
|
||||
<int>-1</int>
|
||||
<key>height</key>
|
||||
<int>-1</int>
|
||||
</QSize>
|
||||
<key>algorithmSettings</key>
|
||||
<struct type="AlgorithmSettings">
|
||||
<key>algorithm</key>
|
||||
<enum type="AlgorithmSettings::AlgorithmId">MaxRects</enum>
|
||||
<key>freeSizeMode</key>
|
||||
<enum type="AlgorithmSettings::AlgorithmFreeSizeMode">Best</enum>
|
||||
<key>sizeConstraints</key>
|
||||
<enum type="AlgorithmSettings::SizeConstraints">AnySize</enum>
|
||||
<key>forceSquared</key>
|
||||
<true/>
|
||||
<key>maxRects</key>
|
||||
<struct type="AlgorithmMaxRectsSettings">
|
||||
<key>heuristic</key>
|
||||
<enum type="AlgorithmMaxRectsSettings::Heuristic">Best</enum>
|
||||
</struct>
|
||||
<key>basic</key>
|
||||
<struct type="AlgorithmBasicSettings">
|
||||
<key>sortBy</key>
|
||||
<enum type="AlgorithmBasicSettings::SortBy">Best</enum>
|
||||
<key>order</key>
|
||||
<enum type="AlgorithmBasicSettings::Order">Ascending</enum>
|
||||
</struct>
|
||||
<key>polygon</key>
|
||||
<struct type="AlgorithmPolygonSettings">
|
||||
<key>alignToGrid</key>
|
||||
<uint>1</uint>
|
||||
</struct>
|
||||
</struct>
|
||||
<key>dataFileNames</key>
|
||||
<map type="GFileNameMap">
|
||||
<key>json</key>
|
||||
<struct type="DataFile">
|
||||
<key>name</key>
|
||||
<filename></filename>
|
||||
</struct>
|
||||
</map>
|
||||
<key>multiPackMode</key>
|
||||
<enum type="SettingsBase::MultiPackMode">MultiPackOff</enum>
|
||||
<key>forceIdenticalLayout</key>
|
||||
<false/>
|
||||
<key>outputFormat</key>
|
||||
<enum type="SettingsBase::OutputFormat">RGBA8888</enum>
|
||||
<key>alphaHandling</key>
|
||||
<enum type="SettingsBase::AlphaHandling">ClearTransparentPixels</enum>
|
||||
<key>contentProtection</key>
|
||||
<struct type="ContentProtection">
|
||||
<key>key</key>
|
||||
<string></string>
|
||||
</struct>
|
||||
<key>autoAliasEnabled</key>
|
||||
<true/>
|
||||
<key>trimSpriteNames</key>
|
||||
<false/>
|
||||
<key>prependSmartFolderName</key>
|
||||
<false/>
|
||||
<key>autodetectAnimations</key>
|
||||
<true/>
|
||||
<key>globalSpriteSettings</key>
|
||||
<struct type="SpriteSettings">
|
||||
<key>scale</key>
|
||||
<double>1</double>
|
||||
<key>scaleMode</key>
|
||||
<enum type="ScaleMode">Smooth</enum>
|
||||
<key>extrude</key>
|
||||
<uint>0</uint>
|
||||
<key>trimThreshold</key>
|
||||
<uint>1</uint>
|
||||
<key>trimMargin</key>
|
||||
<uint>1</uint>
|
||||
<key>trimMode</key>
|
||||
<enum type="SpriteSettings::TrimMode">Trim</enum>
|
||||
<key>tracerTolerance</key>
|
||||
<int>200</int>
|
||||
<key>heuristicMask</key>
|
||||
<false/>
|
||||
<key>defaultPivotPoint</key>
|
||||
<point_f>0.5,0.5</point_f>
|
||||
<key>writePivotPoints</key>
|
||||
<false/>
|
||||
</struct>
|
||||
<key>individualSpriteSettings</key>
|
||||
<map type="IndividualSpriteSettingsMap"/>
|
||||
<key>fileLists</key>
|
||||
<map type="SpriteSheetMap">
|
||||
<key>default</key>
|
||||
<struct type="SpriteSheet">
|
||||
<key>files</key>
|
||||
<array/>
|
||||
</struct>
|
||||
</map>
|
||||
<key>ignoreFileList</key>
|
||||
<array/>
|
||||
<key>replaceList</key>
|
||||
<array/>
|
||||
<key>ignoredWarnings</key>
|
||||
<array/>
|
||||
<key>commonDivisorX</key>
|
||||
<uint>1</uint>
|
||||
<key>commonDivisorY</key>
|
||||
<uint>1</uint>
|
||||
<key>packNormalMaps</key>
|
||||
<false/>
|
||||
<key>autodetectNormalMaps</key>
|
||||
<true/>
|
||||
<key>normalMapFilter</key>
|
||||
<string></string>
|
||||
<key>normalMapSuffix</key>
|
||||
<string></string>
|
||||
<key>normalMapSheetFileName</key>
|
||||
<filename></filename>
|
||||
<key>exporterProperties</key>
|
||||
<map type="ExporterProperties"/>
|
||||
</struct>
|
||||
</data>
|
||||
@@ -0,0 +1,91 @@
|
||||
$sourceDir = "."
|
||||
$outputDir = ".\output"
|
||||
|
||||
if (-not (Test-Path $outputDir -PathType Container)) {
|
||||
New-Item -ItemType Directory -Path $outputDir | Out-Null
|
||||
}
|
||||
|
||||
Get-ChildItem -Path $outputDir -Include *.* -File -Recurse | foreach { $_.Delete()}
|
||||
|
||||
Get-ChildItem -Path "$sourceDir\*.png" | ForEach-Object {
|
||||
$fileName = $_.BaseName
|
||||
$destinationDir = $outputDir
|
||||
|
||||
magick.exe convert -trim $_.FullName $_.FullName
|
||||
|
||||
if ($fileName -match "^[0-9]+sb-?") {
|
||||
$destinationDir = Join-Path $outputDir "back\shiny"
|
||||
}
|
||||
elseif ($fileName -match "^[0-9]+b-?") {
|
||||
$destinationDir = Join-Path $outputDir "back"
|
||||
}
|
||||
elseif ($fileName -match "^[0-9]+s-?") {
|
||||
$destinationDir = Join-Path $outputDir "shiny"
|
||||
}
|
||||
|
||||
if (-not (Test-Path $destinationDir -PathType Container)) {
|
||||
New-Item -ItemType Directory -Path $destinationDir | Out-Null
|
||||
}
|
||||
|
||||
Move-Item -Path $_.FullName -Destination $destinationDir
|
||||
Write-Host "Moved: $($_.FullName) to $destinationDir"
|
||||
}
|
||||
|
||||
$dirs = @(".\output\back\shiny", ".\output\back", ".\output\shiny")
|
||||
|
||||
foreach ($dir in $dirs) {
|
||||
Get-ChildItem -Path $dir -Filter *.png | ForEach-Object {
|
||||
$filename = $_.BaseName
|
||||
$extension = $_.Extension
|
||||
$newfilename = ""
|
||||
|
||||
$prefix, $suffix = $filename -split '-', 2
|
||||
|
||||
if ($suffix) {
|
||||
$suffix = '-' + $suffix
|
||||
}
|
||||
|
||||
$prefix = $prefix -replace 'b|s|sb'
|
||||
|
||||
$newfilename = "$prefix$suffix$extension"
|
||||
|
||||
if ($filename -ne $newfilename) {
|
||||
Rename-Item $_.FullName -NewName $newfilename
|
||||
Write-Host "Renamed: $($_.FullName) to $newfilename"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$env:PATH = "C:\Program Files\CodeAndWeb\TexturePacker\bin;$env:PATH"
|
||||
|
||||
$dirs = @(".\output", ".\output\shiny", ".\output\back", ".\output\back\shiny")
|
||||
|
||||
foreach ($dir in $dirs) {
|
||||
Get-ChildItem $dir -Filter *.png | ForEach-Object {
|
||||
$outputDir = Join-Path $_.Directory $_.BaseName
|
||||
New-Item -ItemType Directory -Path $outputDir | Out-Null
|
||||
ffmpeg -i $_.FullName "$outputDir\%04d.png"
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($dir in $dirs) {
|
||||
Get-ChildItem -Path $dir -Directory | Where-Object { $_.Name -match '^[0-9]+' } | ForEach-Object {
|
||||
$name = $_.BaseName
|
||||
Get-ChildItem -Path $_.FullName -Recurse -File | ForEach-Object {
|
||||
$imagePath = Join-Path $dir "$($name).png"
|
||||
$jsonPath = Join-Path $dir "$($name).json"
|
||||
& TexturePacker.exe .\configuration.tps --sheet $imagePath --data $jsonPath $_.FullName
|
||||
}
|
||||
}
|
||||
|
||||
$folders = Get-ChildItem -Path $dir -Directory
|
||||
|
||||
$foldersToKeep = @('back', 'shiny')
|
||||
|
||||
$foldersToDelete = $folders | Where-Object { $foldersToKeep -notcontains $_.Name }
|
||||
|
||||
foreach ($folder in $foldersToDelete) {
|
||||
Remove-Item -Path $folder.FullName -Recurse -Force
|
||||
Write-Host "Deleted folder: $($folder.FullName)"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user