This commit is contained in:
Pan 2019-05-26 08:40:19 +12:00
parent 0cdf560f09
commit 56648b5bdb
2 changed files with 3 additions and 3 deletions

View File

@ -603,7 +603,7 @@ public class mainThread extends JFrame implements KeyListener, ActionListener, M
if(capturedMouse && !mouseLeftScreen && !focusLost) { if(capturedMouse && !mouseLeftScreen && !focusLost) {
currentMouseX = MouseInfo.getPointerInfo().getLocation().x; currentMouseX = MouseInfo.getPointerInfo().getLocation().x;
currentMouseY = MouseInfo.getPointerInfo().getLocation().y; currentMouseY = MouseInfo.getPointerInfo().getLocation().y;
int deltaX = currentMouseX - centerScreenX; int deltaX = currentMouseX - centerScreenX;
int deltaY = currentMouseY - centerScreenY; int deltaY = currentMouseY - centerScreenY;

View File

@ -1067,7 +1067,7 @@ public class heavyTank extends solidObject{
if(targetObject.type == 6) if(targetObject.type == 6)
theDamage = 20; theDamage = myDamage/3*4;
firingPosition.set(0.022f, -0.4f, 0.2f); firingPosition.set(0.022f, -0.4f, 0.2f);
firingPosition.rotate_XZ(360 - attackAngle); firingPosition.rotate_XZ(360 - attackAngle);
@ -1091,7 +1091,7 @@ public class heavyTank extends solidObject{
if(attackCoolDown == myAttackCooldown - 8 && targetObject.currentHP >0 && hasLineOfSightToTarget){ if(attackCoolDown == myAttackCooldown - 8 && targetObject.currentHP >0 && hasLineOfSightToTarget){
if(targetObject.type == 6) if(targetObject.type == 6)
theDamage = 20; theDamage = myDamage/3*4;
firingPosition.set(-0.022f, -0.4f, 0.2f); firingPosition.set(-0.022f, -0.4f, 0.2f);
firingPosition.rotate_XZ(360 - attackAngle); firingPosition.rotate_XZ(360 - attackAngle);