diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-08 23:41:44 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-08 23:41:44 +0100 |
commit | 88a0900bc5486da860580a108c2d13519573e85a (patch) | |
tree | f63ef03e79cd1f02b4f2000742a048334c8e84bb | |
parent | 9865592546a0dc191f6669a50c63fc36ac6d6127 (diff) | |
download | RustAndDust-88a0900bc5486da860580a108c2d13519573e85a.zip RustAndDust-88a0900bc5486da860580a108c2d13519573e85a.tar.gz |
Support 2 sets of pawns depending of Config.graphics
-rw-r--r-- | android/assets/data/unit-overlays0.atlas | 62 | ||||
-rw-r--r-- | android/assets/data/unit-overlays0.png | bin | 0 -> 61409 bytes | |||
-rw-r--r-- | android/assets/data/unit-overlays1.atlas (renamed from android/assets/data/unit-overlays.atlas) | 2 | ||||
-rw-r--r-- | android/assets/data/unit-overlays1.png (renamed from android/assets/data/unit-overlays.png) | bin | 71361 -> 71361 bytes | |||
-rw-r--r-- | android/assets/data/units.png | bin | 547895 -> 0 bytes | |||
-rw-r--r-- | android/assets/data/units0.atlas | 104 | ||||
-rw-r--r-- | android/assets/data/units0.png | bin | 0 -> 211475 bytes | |||
-rw-r--r-- | android/assets/data/units1.atlas (renamed from android/assets/data/units.atlas) | 50 | ||||
-rw-r--r-- | android/assets/data/units1.png | bin | 0 -> 537971 bytes | |||
-rw-r--r-- | assets/build.gradle | 21 | ||||
-rw-r--r-- | assets/raw/us-sherman-head.png (renamed from assets/units/us-sherman-head.png) | bin | 24591 -> 24591 bytes | |||
-rw-r--r-- | assets/raw/us-sherman-values.png (renamed from assets/units/us-sherman-values.png) | bin | 3923 -> 3923 bytes | |||
-rw-r--r-- | assets/unit-overlays0/00_move.png (renamed from assets/unit-overlays/00_move.png) | bin | 27747 -> 27747 bytes | |||
-rw-r--r-- | assets/unit-overlays0/01_target.png (renamed from assets/unit-overlays/01_target.png) | bin | 2869 -> 2869 bytes | |||
-rw-r--r-- | assets/unit-overlays0/02_fire.png (renamed from assets/unit-overlays/02_fire.png) | bin | 8137 -> 8137 bytes | |||
-rw-r--r-- | assets/unit-overlays0/03_may_fire.png (renamed from assets/unit-overlays/03_may_fire.png) | bin | 4550 -> 4550 bytes | |||
-rw-r--r-- | assets/unit-overlays0/04_ace.png | bin | 0 -> 837 bytes | |||
-rw-r--r-- | assets/unit-overlays0/05_hq.png | bin | 0 -> 1886 bytes | |||
-rw-r--r-- | assets/unit-overlays0/06_fired.png | bin | 0 -> 245 bytes | |||
-rw-r--r-- | assets/unit-overlays0/07_moved.png | bin | 0 -> 234 bytes | |||
-rw-r--r-- | assets/unit-overlays1/00_move.png | bin | 0 -> 27747 bytes | |||
-rw-r--r-- | assets/unit-overlays1/01_target.png | bin | 0 -> 2869 bytes | |||
-rw-r--r-- | assets/unit-overlays1/02_fire.png | bin | 0 -> 8137 bytes | |||
-rw-r--r-- | assets/unit-overlays1/03_may_fire.png | bin | 0 -> 4550 bytes | |||
-rw-r--r-- | assets/unit-overlays1/04_ace.png (renamed from assets/unit-overlays/04_ace.png) | bin | 8121 -> 8121 bytes | |||
-rw-r--r-- | assets/unit-overlays1/05_hq.png (renamed from assets/unit-overlays/05_hq.png) | bin | 1994 -> 1994 bytes | |||
-rw-r--r-- | assets/unit-overlays1/06_fired.png (renamed from assets/unit-overlays/06_fired.png) | bin | 361 -> 361 bytes | |||
-rw-r--r-- | assets/unit-overlays1/07_moved.png (renamed from assets/unit-overlays/07_moved.png) | bin | 353 -> 353 bytes | |||
-rw-r--r-- | assets/units0/ge-at-gun.png | bin | 0 -> 14865 bytes | |||
-rw-r--r-- | assets/units0/ge-head.png (renamed from assets/units/ge-head.png) | bin | 847 -> 847 bytes | |||
-rw-r--r-- | assets/units0/ge-infantry.png | bin | 0 -> 14905 bytes | |||
-rw-r--r-- | assets/units0/ge-kingtiger.png (renamed from assets/units/ge-kingtiger.png) | bin | 21611 -> 21611 bytes | |||
-rw-r--r-- | assets/units0/ge-panzer-iv.png | bin | 0 -> 21859 bytes | |||
-rw-r--r-- | assets/units0/ge-tiger.png | bin | 0 -> 17073 bytes | |||
-rw-r--r-- | assets/units0/ge-wespe.png | bin | 0 -> 22552 bytes | |||
-rw-r--r-- | assets/units0/us-at-gun.png | bin | 0 -> 13016 bytes | |||
-rw-r--r-- | assets/units0/us-head.png (renamed from assets/units/us-head.png) | bin | 1074 -> 1074 bytes | |||
-rw-r--r-- | assets/units0/us-infantry.png | bin | 0 -> 15621 bytes | |||
-rw-r--r-- | assets/units0/us-pershing.png | bin | 0 -> 19173 bytes | |||
-rw-r--r-- | assets/units0/us-priest.png | bin | 0 -> 18705 bytes | |||
-rw-r--r-- | assets/units0/us-sherman.png | bin | 0 -> 19272 bytes | |||
-rw-r--r-- | assets/units0/us-wolverine.png | bin | 0 -> 20044 bytes | |||
-rw-r--r-- | assets/units1/ge-at-gun.png (renamed from assets/units/ge-at-gun.png) | bin | 24241 -> 24241 bytes | |||
-rw-r--r-- | assets/units1/ge-head.png | bin | 0 -> 847 bytes | |||
-rw-r--r-- | assets/units1/ge-infantry.png (renamed from assets/units/ge-infantry.png) | bin | 24975 -> 24975 bytes | |||
-rw-r--r-- | assets/units1/ge-kingtiger.png | bin | 0 -> 21611 bytes | |||
-rw-r--r-- | assets/units1/ge-panzer-iv-hq.png (renamed from assets/units/ge-panzer-iv-hq.png) | bin | 24495 -> 24495 bytes | |||
-rw-r--r-- | assets/units1/ge-panzer-iv.png (renamed from assets/units/ge-panzer-iv.png) | bin | 23997 -> 23997 bytes | |||
-rw-r--r-- | assets/units1/ge-tiger.png (renamed from assets/units/ge-tiger.png) | bin | 22277 -> 22277 bytes | |||
-rw-r--r-- | assets/units1/ge-wespe.png (renamed from assets/units/ge-wespe.png) | bin | 23084 -> 23084 bytes | |||
-rw-r--r-- | assets/units1/us-at-gun.png (renamed from assets/units/us-at-gun.png) | bin | 24693 -> 24693 bytes | |||
-rw-r--r-- | assets/units1/us-head.png | bin | 0 -> 1074 bytes | |||
-rw-r--r-- | assets/units1/us-infantry.png (renamed from assets/units/us-infantry.png) | bin | 26139 -> 26139 bytes | |||
-rw-r--r-- | assets/units1/us-pershing-hq.png (renamed from assets/units/us-pershing-hq.png) | bin | 24763 -> 24763 bytes | |||
-rw-r--r-- | assets/units1/us-pershing.png (renamed from assets/units/us-pershing.png) | bin | 29109 -> 29109 bytes | |||
-rw-r--r-- | assets/units1/us-priest.png (renamed from assets/units/us-priest.png) | bin | 24587 -> 24587 bytes | |||
-rw-r--r-- | assets/units1/us-sherman-hq.png (renamed from assets/units/us-sherman-hq.png) | bin | 25383 -> 25383 bytes | |||
-rw-r--r-- | assets/units1/us-sherman.png (renamed from assets/units/us-sherman.png) | bin | 25072 -> 25072 bytes | |||
-rw-r--r-- | assets/units1/us-wolverine.png (renamed from assets/units/us-wolverine.png) | bin | 25188 -> 25188 bytes | |||
-rw-r--r-- | core/src/ch/asynk/tankontank/TankOnTank.java | 24 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/battles/Factory.java | 22 |
61 files changed, 235 insertions, 50 deletions
diff --git a/android/assets/data/unit-overlays0.atlas b/android/assets/data/unit-overlays0.atlas new file mode 100644 index 0000000..6eb726b --- /dev/null +++ b/android/assets/data/unit-overlays0.atlas @@ -0,0 +1,62 @@ + +unit-overlays0.png +size: 1024,256 +format: RGBA8888 +filter: Nearest,Nearest +repeat: none +00_move + rotate: false + xy: 2, 24 + size: 190, 217 + orig: 190, 217 + offset: 0, 0 + index: -1 +01_target + rotate: false + xy: 608, 151 + size: 90, 90 + orig: 90, 90 + offset: 0, 0 + index: -1 +02_fire + rotate: false + xy: 194, 91 + size: 100, 150 + orig: 100, 150 + offset: 0, 0 + index: -1 +03_may_fire + rotate: false + xy: 296, 91 + size: 100, 150 + orig: 100, 150 + offset: 0, 0 + index: -1 +04_ace + rotate: false + xy: 700, 106 + size: 29, 135 + orig: 29, 135 + offset: 0, 0 + index: -1 +05_hq + rotate: false + xy: 2, 2 + size: 60, 20 + orig: 60, 20 + offset: 0, 0 + index: -1 +06_fired + rotate: false + xy: 398, 120 + size: 112, 121 + orig: 112, 121 + offset: 0, 0 + index: -1 +07_moved + rotate: false + xy: 512, 122 + size: 94, 119 + orig: 94, 119 + offset: 0, 0 + index: -1 diff --git a/android/assets/data/unit-overlays0.png b/android/assets/data/unit-overlays0.png Binary files differnew file mode 100644 index 0000000..305012d --- /dev/null +++ b/android/assets/data/unit-overlays0.png diff --git a/android/assets/data/unit-overlays.atlas b/android/assets/data/unit-overlays1.atlas index fe8f966..b74fa43 100644 --- a/android/assets/data/unit-overlays.atlas +++ b/android/assets/data/unit-overlays1.atlas @@ -1,5 +1,5 @@ -unit-overlays.png +unit-overlays1.png size: 1024,256 format: RGBA8888 filter: Nearest,Nearest diff --git a/android/assets/data/unit-overlays.png b/android/assets/data/unit-overlays1.png Binary files differindex e581b78..e581b78 100644 --- a/android/assets/data/unit-overlays.png +++ b/android/assets/data/unit-overlays1.png diff --git a/android/assets/data/units.png b/android/assets/data/units.png Binary files differdeleted file mode 100644 index 35ddcb0..0000000 --- a/android/assets/data/units.png +++ /dev/null diff --git a/android/assets/data/units0.atlas b/android/assets/data/units0.atlas new file mode 100644 index 0000000..d2fef02 --- /dev/null +++ b/android/assets/data/units0.atlas @@ -0,0 +1,104 @@ + +units0.png +size: 1024,512 +format: RGBA8888 +filter: Nearest,Nearest +repeat: none +ge-at-gun + rotate: false + xy: 2, 272 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +ge-head + rotate: false + xy: 542, 73 + size: 25, 206 + orig: 25, 206 + offset: 0, 0 + index: -1 +ge-infantry + rotate: false + xy: 2, 137 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +ge-kingtiger + rotate: false + xy: 542, 281 + size: 124, 124 + orig: 124, 124 + offset: 0, 0 + index: -1 +ge-panzer-iv + rotate: false + xy: 137, 272 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +ge-tiger + rotate: false + xy: 2, 2 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +ge-wespe + rotate: false + xy: 137, 137 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +us-at-gun + rotate: false + xy: 272, 272 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +us-head + rotate: false + xy: 569, 73 + size: 25, 206 + orig: 25, 206 + offset: 0, 0 + index: -1 +us-infantry + rotate: false + xy: 137, 2 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +us-pershing + rotate: false + xy: 272, 137 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +us-priest + rotate: false + xy: 407, 272 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +us-sherman + rotate: false + xy: 272, 2 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 +us-wolverine + rotate: false + xy: 407, 137 + size: 133, 133 + orig: 133, 133 + offset: 0, 0 + index: -1 diff --git a/android/assets/data/units0.png b/android/assets/data/units0.png Binary files differnew file mode 100644 index 0000000..37b74f1 --- /dev/null +++ b/android/assets/data/units0.png diff --git a/android/assets/data/units.atlas b/android/assets/data/units1.atlas index 3f540e7..3bb8239 100644 --- a/android/assets/data/units.atlas +++ b/android/assets/data/units1.atlas @@ -1,138 +1,124 @@ -units.png +units1.png size: 1024,512 format: RGBA8888 filter: Nearest,Nearest repeat: none ge-at-gun rotate: false - xy: 2, 128 + xy: 2, 380 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 ge-head rotate: false - xy: 254, 113 + xy: 380, 46 size: 25, 206 orig: 25, 206 offset: 0, 0 index: -1 ge-infantry rotate: false - xy: 128, 195 + xy: 2, 254 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 ge-kingtiger rotate: false - xy: 280, 347 + xy: 128, 380 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 ge-panzer-iv rotate: false - xy: 2, 2 + xy: 2, 128 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 ge-panzer-iv-hq rotate: false - xy: 128, 69 + xy: 128, 254 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 ge-tiger rotate: false - xy: 406, 347 + xy: 254, 380 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 ge-wespe rotate: false - xy: 532, 347 + xy: 2, 2 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 us-at-gun rotate: false - xy: 658, 347 + xy: 128, 128 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 us-head rotate: false - xy: 407, 13 + xy: 407, 46 size: 25, 206 orig: 25, 206 offset: 0, 0 index: -1 us-infantry rotate: false - xy: 784, 347 + xy: 254, 254 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 us-pershing rotate: false - xy: 281, 221 + xy: 380, 380 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 us-pershing-hq rotate: false - xy: 407, 221 + xy: 128, 2 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 us-priest rotate: false - xy: 533, 221 + xy: 254, 128 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 us-sherman rotate: false - xy: 659, 221 + xy: 380, 254 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 -us-sherman-head - rotate: false - xy: 128, 321 - size: 150, 150 - orig: 150, 150 - offset: 0, 0 - index: -1 us-sherman-hq rotate: false - xy: 785, 221 + xy: 506, 380 size: 124, 124 orig: 124, 124 offset: 0, 0 index: -1 -us-sherman-values - rotate: false - xy: 2, 254 - size: 124, 217 - orig: 124, 217 - offset: 0, 0 - index: -1 us-wolverine rotate: false - xy: 281, 95 + xy: 254, 2 size: 124, 124 orig: 124, 124 offset: 0, 0 diff --git a/android/assets/data/units1.png b/android/assets/data/units1.png Binary files differnew file mode 100644 index 0000000..3210322 --- /dev/null +++ b/android/assets/data/units1.png diff --git a/assets/build.gradle b/assets/build.gradle index 674c38a..58843cf 100644 --- a/assets/build.gradle +++ b/assets/build.gradle @@ -48,16 +48,29 @@ task packHud(type: JavaExec) { args = ['../assets/hud', '../android/assets/data', 'hud'] } -task packUnits(type: JavaExec) { +task packUnits0(type: JavaExec) { + + main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker' + classpath = configurations.texturePacker + args = ['../assets/units0', '../android/assets/data', 'units0'] +} + +task packUnits1(type: JavaExec) { + main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker' + classpath = configurations.texturePacker + args = ['../assets/units1', '../android/assets/data', 'units1'] +} + +task packUnitOverlays0(type: JavaExec) { main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker' classpath = configurations.texturePacker - args = ['../assets/units', '../android/assets/data', 'units'] + args = ['../assets/unit-overlays0', '../android/assets/data', 'unit-overlays0'] } -task packUnitOverlays(type: JavaExec) { +task packUnitOverlays1(type: JavaExec) { main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker' classpath = configurations.texturePacker - args = ['../assets/unit-overlays', '../android/assets/data', 'unit-overlays'] + args = ['../assets/unit-overlays1', '../android/assets/data', 'unit-overlays1'] } task packHexOverlays(type: JavaExec) { diff --git a/assets/units/us-sherman-head.png b/assets/raw/us-sherman-head.png Binary files differindex 62a390e..62a390e 100644 --- a/assets/units/us-sherman-head.png +++ b/assets/raw/us-sherman-head.png diff --git a/assets/units/us-sherman-values.png b/assets/raw/us-sherman-values.png Binary files differindex 4d42c73..4d42c73 100644 --- a/assets/units/us-sherman-values.png +++ b/assets/raw/us-sherman-values.png diff --git a/assets/unit-overlays/00_move.png b/assets/unit-overlays0/00_move.png Binary files differindex 5303cce..5303cce 100644 --- a/assets/unit-overlays/00_move.png +++ b/assets/unit-overlays0/00_move.png diff --git a/assets/unit-overlays/01_target.png b/assets/unit-overlays0/01_target.png Binary files differindex 953151d..953151d 100644 --- a/assets/unit-overlays/01_target.png +++ b/assets/unit-overlays0/01_target.png diff --git a/assets/unit-overlays/02_fire.png b/assets/unit-overlays0/02_fire.png Binary files differindex 2344671..2344671 100644 --- a/assets/unit-overlays/02_fire.png +++ b/assets/unit-overlays0/02_fire.png diff --git a/assets/unit-overlays/03_may_fire.png b/assets/unit-overlays0/03_may_fire.png Binary files differindex 52b29dd..52b29dd 100644 --- a/assets/unit-overlays/03_may_fire.png +++ b/assets/unit-overlays0/03_may_fire.png diff --git a/assets/unit-overlays0/04_ace.png b/assets/unit-overlays0/04_ace.png Binary files differnew file mode 100644 index 0000000..a94d504 --- /dev/null +++ b/assets/unit-overlays0/04_ace.png diff --git a/assets/unit-overlays0/05_hq.png b/assets/unit-overlays0/05_hq.png Binary files differnew file mode 100644 index 0000000..308a5f7 --- /dev/null +++ b/assets/unit-overlays0/05_hq.png diff --git a/assets/unit-overlays0/06_fired.png b/assets/unit-overlays0/06_fired.png Binary files differnew file mode 100644 index 0000000..9107707 --- /dev/null +++ b/assets/unit-overlays0/06_fired.png diff --git a/assets/unit-overlays0/07_moved.png b/assets/unit-overlays0/07_moved.png Binary files differnew file mode 100644 index 0000000..7bd96e5 --- /dev/null +++ b/assets/unit-overlays0/07_moved.png diff --git a/assets/unit-overlays1/00_move.png b/assets/unit-overlays1/00_move.png Binary files differnew file mode 100644 index 0000000..5303cce --- /dev/null +++ b/assets/unit-overlays1/00_move.png diff --git a/assets/unit-overlays1/01_target.png b/assets/unit-overlays1/01_target.png Binary files differnew file mode 100644 index 0000000..953151d --- /dev/null +++ b/assets/unit-overlays1/01_target.png diff --git a/assets/unit-overlays1/02_fire.png b/assets/unit-overlays1/02_fire.png Binary files differnew file mode 100644 index 0000000..2344671 --- /dev/null +++ b/assets/unit-overlays1/02_fire.png diff --git a/assets/unit-overlays1/03_may_fire.png b/assets/unit-overlays1/03_may_fire.png Binary files differnew file mode 100644 index 0000000..52b29dd --- /dev/null +++ b/assets/unit-overlays1/03_may_fire.png diff --git a/assets/unit-overlays/04_ace.png b/assets/unit-overlays1/04_ace.png Binary files differindex 38d32b4..38d32b4 100644 --- a/assets/unit-overlays/04_ace.png +++ b/assets/unit-overlays1/04_ace.png diff --git a/assets/unit-overlays/05_hq.png b/assets/unit-overlays1/05_hq.png Binary files differindex d1dd2d8..d1dd2d8 100644 --- a/assets/unit-overlays/05_hq.png +++ b/assets/unit-overlays1/05_hq.png diff --git a/assets/unit-overlays/06_fired.png b/assets/unit-overlays1/06_fired.png Binary files differindex b03d25e..b03d25e 100644 --- a/assets/unit-overlays/06_fired.png +++ b/assets/unit-overlays1/06_fired.png diff --git a/assets/unit-overlays/07_moved.png b/assets/unit-overlays1/07_moved.png Binary files differindex bc01362..bc01362 100644 --- a/assets/unit-overlays/07_moved.png +++ b/assets/unit-overlays1/07_moved.png diff --git a/assets/units0/ge-at-gun.png b/assets/units0/ge-at-gun.png Binary files differnew file mode 100644 index 0000000..90eee00 --- /dev/null +++ b/assets/units0/ge-at-gun.png diff --git a/assets/units/ge-head.png b/assets/units0/ge-head.png Binary files differindex 2a540be..2a540be 100644 --- a/assets/units/ge-head.png +++ b/assets/units0/ge-head.png diff --git a/assets/units0/ge-infantry.png b/assets/units0/ge-infantry.png Binary files differnew file mode 100644 index 0000000..f03b508 --- /dev/null +++ b/assets/units0/ge-infantry.png diff --git a/assets/units/ge-kingtiger.png b/assets/units0/ge-kingtiger.png Binary files differindex e45171b..e45171b 100644 --- a/assets/units/ge-kingtiger.png +++ b/assets/units0/ge-kingtiger.png diff --git a/assets/units0/ge-panzer-iv.png b/assets/units0/ge-panzer-iv.png Binary files differnew file mode 100644 index 0000000..2e466b7 --- /dev/null +++ b/assets/units0/ge-panzer-iv.png diff --git a/assets/units0/ge-tiger.png b/assets/units0/ge-tiger.png Binary files differnew file mode 100644 index 0000000..3338d39 --- /dev/null +++ b/assets/units0/ge-tiger.png diff --git a/assets/units0/ge-wespe.png b/assets/units0/ge-wespe.png Binary files differnew file mode 100644 index 0000000..b429c1c --- /dev/null +++ b/assets/units0/ge-wespe.png diff --git a/assets/units0/us-at-gun.png b/assets/units0/us-at-gun.png Binary files differnew file mode 100644 index 0000000..f227228 --- /dev/null +++ b/assets/units0/us-at-gun.png diff --git a/assets/units/us-head.png b/assets/units0/us-head.png Binary files differindex fceed7a..fceed7a 100644 --- a/assets/units/us-head.png +++ b/assets/units0/us-head.png diff --git a/assets/units0/us-infantry.png b/assets/units0/us-infantry.png Binary files differnew file mode 100644 index 0000000..77896cd --- /dev/null +++ b/assets/units0/us-infantry.png diff --git a/assets/units0/us-pershing.png b/assets/units0/us-pershing.png Binary files differnew file mode 100644 index 0000000..196e8bc --- /dev/null +++ b/assets/units0/us-pershing.png diff --git a/assets/units0/us-priest.png b/assets/units0/us-priest.png Binary files differnew file mode 100644 index 0000000..de175c3 --- /dev/null +++ b/assets/units0/us-priest.png diff --git a/assets/units0/us-sherman.png b/assets/units0/us-sherman.png Binary files differnew file mode 100644 index 0000000..78f3baa --- /dev/null +++ b/assets/units0/us-sherman.png diff --git a/assets/units0/us-wolverine.png b/assets/units0/us-wolverine.png Binary files differnew file mode 100644 index 0000000..fe42d7b --- /dev/null +++ b/assets/units0/us-wolverine.png diff --git a/assets/units/ge-at-gun.png b/assets/units1/ge-at-gun.png Binary files differindex f81a4b1..f81a4b1 100644 --- a/assets/units/ge-at-gun.png +++ b/assets/units1/ge-at-gun.png diff --git a/assets/units1/ge-head.png b/assets/units1/ge-head.png Binary files differnew file mode 100644 index 0000000..2a540be --- /dev/null +++ b/assets/units1/ge-head.png diff --git a/assets/units/ge-infantry.png b/assets/units1/ge-infantry.png Binary files differindex ef4cee9..ef4cee9 100644 --- a/assets/units/ge-infantry.png +++ b/assets/units1/ge-infantry.png diff --git a/assets/units1/ge-kingtiger.png b/assets/units1/ge-kingtiger.png Binary files differnew file mode 100644 index 0000000..e45171b --- /dev/null +++ b/assets/units1/ge-kingtiger.png diff --git a/assets/units/ge-panzer-iv-hq.png b/assets/units1/ge-panzer-iv-hq.png Binary files differindex 2785941..2785941 100644 --- a/assets/units/ge-panzer-iv-hq.png +++ b/assets/units1/ge-panzer-iv-hq.png diff --git a/assets/units/ge-panzer-iv.png b/assets/units1/ge-panzer-iv.png Binary files differindex 35ab9c3..35ab9c3 100644 --- a/assets/units/ge-panzer-iv.png +++ b/assets/units1/ge-panzer-iv.png diff --git a/assets/units/ge-tiger.png b/assets/units1/ge-tiger.png Binary files differindex 72e7b6c..72e7b6c 100644 --- a/assets/units/ge-tiger.png +++ b/assets/units1/ge-tiger.png diff --git a/assets/units/ge-wespe.png b/assets/units1/ge-wespe.png Binary files differindex 566e5b3..566e5b3 100644 --- a/assets/units/ge-wespe.png +++ b/assets/units1/ge-wespe.png diff --git a/assets/units/us-at-gun.png b/assets/units1/us-at-gun.png Binary files differindex 9991ecf..9991ecf 100644 --- a/assets/units/us-at-gun.png +++ b/assets/units1/us-at-gun.png diff --git a/assets/units1/us-head.png b/assets/units1/us-head.png Binary files differnew file mode 100644 index 0000000..fceed7a --- /dev/null +++ b/assets/units1/us-head.png diff --git a/assets/units/us-infantry.png b/assets/units1/us-infantry.png Binary files differindex 9cea3c2..9cea3c2 100644 --- a/assets/units/us-infantry.png +++ b/assets/units1/us-infantry.png diff --git a/assets/units/us-pershing-hq.png b/assets/units1/us-pershing-hq.png Binary files differindex 10b9364..10b9364 100644 --- a/assets/units/us-pershing-hq.png +++ b/assets/units1/us-pershing-hq.png diff --git a/assets/units/us-pershing.png b/assets/units1/us-pershing.png Binary files differindex 605563f..605563f 100644 --- a/assets/units/us-pershing.png +++ b/assets/units1/us-pershing.png diff --git a/assets/units/us-priest.png b/assets/units1/us-priest.png Binary files differindex 0dd6623..0dd6623 100644 --- a/assets/units/us-priest.png +++ b/assets/units1/us-priest.png diff --git a/assets/units/us-sherman-hq.png b/assets/units1/us-sherman-hq.png Binary files differindex bf54ea6..bf54ea6 100644 --- a/assets/units/us-sherman-hq.png +++ b/assets/units1/us-sherman-hq.png diff --git a/assets/units/us-sherman.png b/assets/units1/us-sherman.png Binary files differindex 03306d8..03306d8 100644 --- a/assets/units/us-sherman.png +++ b/assets/units1/us-sherman.png diff --git a/assets/units/us-wolverine.png b/assets/units1/us-wolverine.png Binary files differindex 9ce6dc3..9ce6dc3 100644 --- a/assets/units/us-wolverine.png +++ b/assets/units1/us-wolverine.png diff --git a/core/src/ch/asynk/tankontank/TankOnTank.java b/core/src/ch/asynk/tankontank/TankOnTank.java index ac3e5ce..40e4240 100644 --- a/core/src/ch/asynk/tankontank/TankOnTank.java +++ b/core/src/ch/asynk/tankontank/TankOnTank.java @@ -87,10 +87,18 @@ public class TankOnTank extends Game manager.load("data/map_a.png", Texture.class); if (config.battle.getMapType() == Factory.MapType.MAP_B) manager.load("data/map_b.png", Texture.class); + switch (config.graphics) { + case MINE: + manager.load("data/units0.atlas", TextureAtlas.class); + manager.load("data/unit-overlays0.atlas", TextureAtlas.class); + break; + case ORIGINAL: + manager.load("data/units1.atlas", TextureAtlas.class); + manager.load("data/unit-overlays1.atlas", TextureAtlas.class); + break; + } manager.load("data/hex.png", Texture.class); manager.load("data/hud.atlas", TextureAtlas.class); - manager.load("data/units.atlas", TextureAtlas.class); - manager.load("data/unit-overlays.atlas", TextureAtlas.class); manager.load("data/hex-overlays.atlas", TextureAtlas.class); manager.load("data/dice.png", Texture.class); manager.load("data/infantry_fire.png", Texture.class); @@ -115,10 +123,18 @@ public class TankOnTank extends Game manager.unload("data/map_a.png"); if (config.battle.getMapType() == Factory.MapType.MAP_B) manager.unload("data/map_b.png"); + switch (config.graphics) { + case MINE: + manager.unload("data/units0.atlas"); + manager.unload("data/unit-overlays0.atlas"); + break; + case ORIGINAL: + manager.unload("data/units1.atlas"); + manager.unload("data/unit-overlays1.atlas"); + break; + } manager.unload("data/hex.png"); manager.unload("data/hud.atlas"); - manager.unload("data/units.atlas"); - manager.unload("data/unit-overlays.atlas"); manager.unload("data/hex-overlays.atlas"); manager.unload("data/dice.png"); manager.unload("data/infantry_fire.png"); diff --git a/core/src/ch/asynk/tankontank/game/battles/Factory.java b/core/src/ch/asynk/tankontank/game/battles/Factory.java index db81537..57328ad 100644 --- a/core/src/ch/asynk/tankontank/game/battles/Factory.java +++ b/core/src/ch/asynk/tankontank/game/battles/Factory.java @@ -61,9 +61,17 @@ public class Factory implements Board.TileBuilder, Disposable { if (assetsLoaded) return; this.hudAtlas = game.manager.get("data/hud.atlas", TextureAtlas.class); - this.pawnsAtlas = game.manager.get("data/units.atlas", TextureAtlas.class); - this.pawnOverlaysAtlas = game.manager.get("data/unit-overlays.atlas", TextureAtlas.class); this.tileOverlaysAtlas = game.manager.get("data/hex-overlays.atlas", TextureAtlas.class); + switch (game.config.graphics) { + case MINE: + this.pawnsAtlas = game.manager.get("data/units0.atlas", TextureAtlas.class); + this.pawnOverlaysAtlas = game.manager.get("data/unit-overlays0.atlas", TextureAtlas.class); + break; + case ORIGINAL: + this.pawnsAtlas = game.manager.get("data/units1.atlas", TextureAtlas.class); + this.pawnOverlaysAtlas = game.manager.get("data/unit-overlays1.atlas", TextureAtlas.class); + break; + } this.assetsLoaded = true; } @@ -122,7 +130,6 @@ public class Factory implements Board.TileBuilder, Disposable public Unit getUnit(UnitId id) { - boolean regular = game.config.regularPawns; Unit u = null; UnitType ut = UnitType.HARD_TARGET; UnitType utHq = UnitType.HARD_TARGET_HQ; @@ -142,7 +149,7 @@ public class Factory implements Board.TileBuilder, Disposable u = new Unit(Army.GE, id, ut, 2, 9, 2, "ge-panzer-iv", "ge-head", pawnsAtlas, pawnOverlaysAtlas); break; case GE_PANZER_IV_HQ: - u = new Unit(Army.GE, id, utHq, 2, 9, 2, "ge-panzer-iv-hq", "ge-head", pawnsAtlas, pawnOverlaysAtlas); + u = new Unit(Army.GE, id, utHq, 2, 9, 2, "ge-panzer-iv", "ge-head", pawnsAtlas, pawnOverlaysAtlas); break; case GE_TIGER: u = new Unit(Army.GE, id, ut, 3, 11, 1, "ge-tiger", "ge-head", pawnsAtlas, pawnOverlaysAtlas); @@ -163,20 +170,17 @@ public class Factory implements Board.TileBuilder, Disposable u = new Unit(Army.US, id, ut, 3, 10, 2, "us-pershing", "us-head", pawnsAtlas, pawnOverlaysAtlas); break; case US_PERSHING_HQ: - u = new Unit(Army.US, id, utHq, 3, 10, 2, "us-pershing-hq", "us-head", pawnsAtlas, pawnOverlaysAtlas); + u = new Unit(Army.US, id, utHq, 3, 10, 2, "us-pershing", "us-head", pawnsAtlas, pawnOverlaysAtlas); break; case US_PRIEST: ut = UnitType.ARTILLERY; u = new Unit(Army.US, id, ut, 5, 8, 1, "us-priest", "us-head", pawnsAtlas, pawnOverlaysAtlas); break; case US_SHERMAN: - if (regular) u = new Unit(Army.US, id, ut, 2, 9, 2, "us-sherman", "us-head", pawnsAtlas, pawnOverlaysAtlas); - else - u = new Unit(Army.US, id, ut, 2, 9, 2, "us-sherman-values", "us-sherman-head", pawnsAtlas, pawnOverlaysAtlas); break; case US_SHERMAN_HQ: - u = new Unit(Army.US, id, utHq, 2, 9, 2, "us-sherman-hq", "us-head", pawnsAtlas, pawnOverlaysAtlas); + u = new Unit(Army.US, id, utHq, 2, 9, 2, "us-sherman", "us-head", pawnsAtlas, pawnOverlaysAtlas); break; case US_WOLVERINE: u = new Unit(Army.US, id, ut, 3, 8, 3, "us-wolverine", "us-head", pawnsAtlas, pawnOverlaysAtlas); |