-
Notifications
You must be signed in to change notification settings - Fork 6
/
buildTexture.bat
27 lines (25 loc) · 1.37 KB
/
buildTexture.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
rem Set this to the location of LibGDX texture packer
set TexturePacker=C:\Users\User\Documents\Programs\runnable-texturepacker.jar
rem Set this to the location of Python 2.7.x
set Python=C:\Python27\python.exe
rem go to the project folder
cd %~dp0
echo 1. Packing texture
java -jar %TexturePacker% assets/shapes img shapes textureSettings.json
java -jar %TexturePacker% assets/shapes8bit img shapes8bit textureSettings.json
java -jar %TexturePacker% assets/number img number textureSettings.json
java -jar %TexturePacker% assets/number8bit img number8bit textureSettings.json
java -jar %TexturePacker% assets/ui img ui textureSettings.json
echo 2. Convert format
%python% atlasConvert.py img/shapes_big.atlas > img/shapes_big.json
%python% atlasConvert.py img/shapes_small.atlas > img/shapes_small.json
%python% atlasConvert.py img/shapes8bit_big.atlas > img/shapes8bit_big.json
%python% atlasConvert.py img/shapes8bit_small.atlas > img/shapes8bit_small.json
%python% atlasConvert.py img/number_big.atlas > img/number_big.json
%python% atlasConvert.py img/number_small.atlas > img/number_small.json
%python% atlasConvert.py img/number8bit_big.atlas > img/number8bit_big.json
%python% atlasConvert.py img/number8bit_small.atlas > img/number8bit_small.json
%python% atlasConvert.py img/ui_big.atlas > img/ui_big.json
%python% atlasConvert.py img/ui_small.atlas > img/ui_small.json
pause