summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-06-27 00:28:49 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-06-28 16:24:48 +0200
commit926ff7439cb4298f482e6c73de393550f4827a31 (patch)
tree276c5d23a6f8c1c468266765a9fafdaebe8b8d49 /assets
parentb6f07387af85687bf957e3e75e664be5ce972bd4 (diff)
downloadgdx-boardgame-926ff7439cb4298f482e6c73de393550f4827a31.zip
gdx-boardgame-926ff7439cb4298f482e6c73de393550f4827a31.tar.gz
build ./android/assets from ./assets
Diffstat (limited to 'assets')
-rw-r--r--assets/build.gradle33
-rw-r--r--assets/data/corner.pngbin0 -> 1513 bytes
-rw-r--r--assets/data/map_00.pngbin0 -> 3880220 bytes
-rw-r--r--assets/loading/bar.pngbin0 -> 621 bytes
-rw-r--r--assets/loading/border.pngbin0 -> 2299 bytes
-rw-r--r--assets/loading/loaded.pngbin0 -> 5898 bytes
-rw-r--r--assets/loading/loading.pngbin0 -> 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
new file mode 100644
index 0000000..7b9e8f4
--- /dev/null
+++ b/assets/data/corner.png
Binary files differ
diff --git a/assets/data/map_00.png b/assets/data/map_00.png
new file mode 100644
index 0000000..d2c6961
--- /dev/null
+++ b/assets/data/map_00.png
Binary files differ
diff --git a/assets/loading/bar.png b/assets/loading/bar.png
new file mode 100644
index 0000000..0e707de
--- /dev/null
+++ b/assets/loading/bar.png
Binary files differ
diff --git a/assets/loading/border.png b/assets/loading/border.png
new file mode 100644
index 0000000..8354e38
--- /dev/null
+++ b/assets/loading/border.png
Binary files differ
diff --git a/assets/loading/loaded.png b/assets/loading/loaded.png
new file mode 100644
index 0000000..d7df58f
--- /dev/null
+++ b/assets/loading/loaded.png
Binary files differ
diff --git a/assets/loading/loading.png b/assets/loading/loading.png
new file mode 100644
index 0000000..e609553
--- /dev/null
+++ b/assets/loading/loading.png
Binary files differ