keeper: small value tweaking
parent
9c8091851e
commit
95a601f030
|
@ -13,7 +13,7 @@
|
|||
#define KEEPER_POINT_CENTER_C CAMERA_GOAL_X
|
||||
#define KEEPER_POINT_RIGHT_C CAMERA_GOAL_MAX_X
|
||||
#endif
|
||||
#define KEEPER_ATTACK_DISTANCE 120
|
||||
#define KEEPER_ATTACK_DISTANCE 100
|
||||
|
||||
class Keeper : public Game{
|
||||
|
||||
|
|
|
@ -40,9 +40,9 @@ void Keeper::keeper()
|
|||
return;
|
||||
}
|
||||
|
||||
if(CURRENT_DATA_READ.ballAngle >= 330 || CURRENT_DATA_READ.ballAngle <= 30) currentPosition = currentPosition; //Unneeded, just here for clarity
|
||||
else if(CURRENT_DATA_READ.ballAngle > 30 && CURRENT_DATA_READ.ballAngle < 90) currentPosition ++;
|
||||
else if(CURRENT_DATA_READ.ballAngle > 270 && CURRENT_DATA_READ.ballAngle < 330) currentPosition --;
|
||||
if(CURRENT_DATA_READ.ballAngle >= 340 || CURRENT_DATA_READ.ballAngle <= 20) currentPosition = currentPosition; //Unneeded, just here for clarity
|
||||
else if(CURRENT_DATA_READ.ballAngle > 20 && CURRENT_DATA_READ.ballAngle < 90) currentPosition ++;
|
||||
else if(CURRENT_DATA_READ.ballAngle > 270 && CURRENT_DATA_READ.ballAngle < 340) currentPosition --;
|
||||
else{
|
||||
shouldStrike = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue