Progress on implementing unit teams

This commit is contained in:
Anuken
2018-03-15 00:19:05 -04:00
parent 0b2a933faa
commit 155f3945a6
12 changed files with 74 additions and 33 deletions

View File

@@ -104,7 +104,7 @@ public class Weapon extends Upgrade{
p.timer.reset(t2, reload/2f);
}
float ang = Angles.mouseAngle(p.x, p.y);
tr.trns(ang - 90, 3f * Mathf.sign(left), length);
tr.trns(ang - 90, 4f * Mathf.sign(left), length + 1f);
shoot(p, p.x + tr.x, p.y + tr.y, Angles.mouseAngle(p.x + tr.x, p.y + tr.y));
}
}