diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-06-27 00:28:49 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-06-28 16:24:48 +0200 |
commit | 926ff7439cb4298f482e6c73de393550f4827a31 (patch) | |
tree | 276c5d23a6f8c1c468266765a9fafdaebe8b8d49 /assets | |
parent | b6f07387af85687bf957e3e75e664be5ce972bd4 (diff) | |
download | gdx-boardgame-926ff7439cb4298f482e6c73de393550f4827a31.zip gdx-boardgame-926ff7439cb4298f482e6c73de393550f4827a31.tar.gz |
build ./android/assets from ./assets
Diffstat (limited to 'assets')
-rw-r--r-- | assets/build.gradle | 33 | ||||
-rw-r--r-- | assets/data/corner.png | bin | 0 -> 1513 bytes | |||
-rw-r--r-- | assets/data/map_00.png | bin | 0 -> 3880220 bytes | |||
-rw-r--r-- | assets/loading/bar.png | bin | 0 -> 621 bytes | |||
-rw-r--r-- | assets/loading/border.png | bin | 0 -> 2299 bytes | |||
-rw-r--r-- | assets/loading/loaded.png | bin | 0 -> 5898 bytes | |||
-rw-r--r-- | assets/loading/loading.png | bin | 0 -> 3727 bytes |
7 files changed, 33 insertions, 0 deletions
diff --git a/assets/build.gradle b/assets/build.gradle new file mode 100644 index 0000000..1ef0761 --- /dev/null +++ b/assets/build.gradle @@ -0,0 +1,33 @@ +configurations { + texturePacker +} + +dependencies { + texturePacker "com.badlogicgames.gdx:gdx-tools:$gdxVersion" +} + +defaultTasks 'build' + +task clean(type: Delete) { + delete '../android/assets' +} + +task copyData(type: Copy) { + from 'data' + into '../android/assets/data' +} + +task packLoading(type: JavaExec) { + main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker' + classpath = configurations.texturePacker + args = ['./loading', '../android/assets/data', 'loading'] +} + +/* task buildUI(dependsOn: ["processXHDPI"]) { */ +task build(dependsOn: clean) { + description "Builds the skin at various DPIs" +} + +build.dependsOn { + tasks.findAll { task -> (task.name.startsWith('pack') || task.name.startsWith('copy')) } +} diff --git a/assets/data/corner.png b/assets/data/corner.png Binary files differnew file mode 100644 index 0000000..7b9e8f4 --- /dev/null +++ b/assets/data/corner.png diff --git a/assets/data/map_00.png b/assets/data/map_00.png Binary files differnew file mode 100644 index 0000000..d2c6961 --- /dev/null +++ b/assets/data/map_00.png diff --git a/assets/loading/bar.png b/assets/loading/bar.png Binary files differnew file mode 100644 index 0000000..0e707de --- /dev/null +++ b/assets/loading/bar.png diff --git a/assets/loading/border.png b/assets/loading/border.png Binary files differnew file mode 100644 index 0000000..8354e38 --- /dev/null +++ b/assets/loading/border.png diff --git a/assets/loading/loaded.png b/assets/loading/loaded.png Binary files differnew file mode 100644 index 0000000..d7df58f --- /dev/null +++ b/assets/loading/loaded.png diff --git a/assets/loading/loading.png b/assets/loading/loading.png Binary files differnew file mode 100644 index 0000000..e609553 --- /dev/null +++ b/assets/loading/loading.png |