Unit gun tweaks

This commit is contained in:
Anuken
2019-02-05 19:05:41 -05:00
parent 20529d3ebc
commit 6217ae78e3
9 changed files with 1413 additions and 1422 deletions

View File

@@ -103,21 +103,19 @@ public class Generators {
Image image = ImagePacker.get(type.region);
if(!type.isFlying){
image.draw(type.baseRegion);
image.draw(type.legRegion);
image.draw(type.legRegion, true, false);
image.draw(type.region);
image.draw(type.baseRegion);
image.draw(type.legRegion);
image.draw(type.legRegion, true, false);
image.draw(type.region);
image.draw(type.weapon.region,
-(int)type.weapon.width + (image.width() - type.weapon.region.getWidth())/2,
(int)type.weaponOffsetY - (image.height() - type.weapon.region.getHeight())/2 + 1,
false, false);
image.draw(type.weapon.region,
(int)type.weapon.width + (image.width() - type.weapon.region.getWidth())/2,
(int)type.weaponOffsetY - (image.height() - type.weapon.region.getHeight())/2 + 1,
true, false);
}
image.draw(type.weapon.region,
-(int)type.weapon.width + (image.width() - type.weapon.region.getWidth())/2,
(int)type.weaponOffsetY - (image.height() - type.weapon.region.getHeight())/2 + 1,
false, false);
image.draw(type.weapon.region,
(int)type.weapon.width + (image.width() - type.weapon.region.getWidth())/2,
(int)type.weaponOffsetY - (image.height() - type.weapon.region.getHeight())/2 + 1,
true, false);
image.save("unit-icon-" + type.name);
}