home commit

This commit is contained in:
Pan 2019-01-21 22:27:32 +13:00
parent 525e28bfc3
commit 9386b1bbbc
2 changed files with 3 additions and 3 deletions

View File

@ -251,8 +251,8 @@ public class AssetManager {
for(int i = 0; i < 10; i ++){
for(int j = 0; j < 6; j++){
lightTank l = new lightTank(new vector(i*0.25f+ 1.125f,-0.3f, 17.375f - 0.25f*j), 90, 0);
addLightTank(l);
//lightTank l = new lightTank(new vector(i*0.25f+ 1.125f,-0.3f, 17.375f - 0.25f*j), 90, 0);
//addLightTank(l);
//l.hasMultiShotUpgrade = true;
//lightTank l = new lightTank(new vector(i*0.25f + 1.125f,-0.3f, 0.5f + 18.625f + j*0.25f), 90, 0);

View File

@ -214,7 +214,7 @@ public class combatManagerAI {
}
//check if defenceManager found a major threat
if(mainThread.ec.theDefenseManagerAI.majorThreatLocation.screenX != 0) {
if(mainThread.ec.theDefenseManagerAI.majorThreatLocation.x != 0) {
currentState = aggressing;
attackDirection.set(mainThread.ec.theDefenseManagerAI.majorThreatLocation.x - combatCenterX, 0, mainThread.ec.theDefenseManagerAI.majorThreatLocation.z - combatCenterZ);
attackDirection.unit();