Unit gun tweaks
|
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
@@ -95,8 +95,9 @@ public class UnitTypes implements ContentList{
|
||||
weapon = new Weapon("artillery"){{
|
||||
length = 1f;
|
||||
reload = 60f;
|
||||
width = 10f;
|
||||
roundrobin = true;
|
||||
recoil = 5f;
|
||||
recoil = 4f;
|
||||
shake = 2f;
|
||||
ejectEffect = Fx.shellEjectMedium;
|
||||
bullet = Bullets.artilleryUnit;
|
||||
@@ -120,7 +121,7 @@ public class UnitTypes implements ContentList{
|
||||
ejectEffect = Fx.none;
|
||||
bullet = Bullets.eruptorShot;
|
||||
recoil = 1f;
|
||||
width = 5f;
|
||||
width = 7f;
|
||||
}};
|
||||
}};
|
||||
|
||||
@@ -135,7 +136,7 @@ public class UnitTypes implements ContentList{
|
||||
weapon = new Weapon("chaos"){{
|
||||
length = 8f;
|
||||
reload = 50f;
|
||||
width = 17.5f;
|
||||
width = 17f;
|
||||
roundrobin = true;
|
||||
recoil = 3f;
|
||||
shake = 2f;
|
||||
@@ -156,14 +157,16 @@ public class UnitTypes implements ContentList{
|
||||
rotatespeed = 0.06f;
|
||||
health = 80000;
|
||||
weapon = new Weapon("eradication"){{
|
||||
length = 9f;
|
||||
length = 13f;
|
||||
reload = 30f;
|
||||
width = 20f;
|
||||
width = 22f;
|
||||
roundrobin = true;
|
||||
recoil = 4f;
|
||||
recoil = 3f;
|
||||
shake = 2f;
|
||||
inaccuracy = 3f;
|
||||
shots = 4;
|
||||
shotDelay = 2;
|
||||
spacing = 0f;
|
||||
shotDelay = 3;
|
||||
ejectEffect = Fx.shellEjectMedium;
|
||||
bullet = Bullets.standardThoriumBig;
|
||||
}};
|
||||
|
||||
@@ -676,16 +676,6 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean touchDown(float x, float y, int pointer, KeyCode button){
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean fling(float velocityX, float velocityY, KeyCode button){
|
||||
return false;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
class PlaceRequest{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||