private void FlashNew() { lerp = new HackGameForwardLerpDrawHelper(0.66f, 0.9f, 1.0f, 0.66f, Color.Azure, Color.White, 0.66f, Vector2.Zero, Vector2.Zero, 2.0f); }
private void FlashNew() { lerp = new HackGameForwardLerpDrawHelper(3.0f, 2.0f, 1.0f, 2.0f, Color.Yellow, Color.White, 2.0f, new Vector2(0, 5.0f), Vector2.Zero, 2.0f); }
public void ToColor(Color color, float seconds) { Color oldColor = colorLerp != null ? colorLerp.CurrentColor() : defaultStartColor; colorLerp = new HackGameForwardLerpDrawHelper(seconds, 1.0f, 1.0f, seconds, oldColor, color, seconds, Vector2.Zero, Vector2.Zero, seconds); }
public HackGameBoard_BackgroundTextItem(StringBuilder stringToPrint, float timeAfterLast, Color startColor, Color endColor, float colorTime) { textString = stringToPrint; timeUntilActivate = timeAfterLast; lerpHelper = new HackGameForwardLerpDrawHelper(colorTime, 1.0f, 1.0f, colorTime, startColor, endColor, colorTime, Vector2.Zero, Vector2.Zero, colorTime); }
public void FadeOut(float seconds) { Color oldAlpha = alphaLerp != null ? alphaLerp.CurrentColor() : Color.White; alphaLerp = new HackGameForwardLerpDrawHelper(seconds, 1.0f, 1.0f, seconds, oldAlpha, new Color(0, 0, 0, 0), seconds, Vector2.Zero, Vector2.Zero, seconds); }
public HackGameAgent_AI_StateData_SpawningIn() { dropInLerp = new HackGameForwardLerpDrawHelper(AISpawnInTotalLerpTime, 10.0f, 1.0f, AISpawnInTotalLerpTime, Color.White, Color.White, AISpawnInTotalLerpTime, Vector2.Zero, Vector2.Zero, AISpawnInTotalLerpTime); totalTimer = AISpawnInTotalTime; }
public HackGameAgent_Projectile_MortarFragment(HackGameBoard b, Point p, float timeToStartFalling) : base(b) { ourBoard = b; setCurrentBoardLocation(p, b); SetCurrentState(HackGameAgent_State.HackGameAgent_State_SpawningIn); timeToStart = timeToStartFalling; lerp = new HackGameForwardLerpDrawHelper( lerpOutTime, 10.0f, 1.0f, lerpOutTime, Color.White, Color.White, lerpOutTime, Vector2.Zero, Vector2.Zero, lerpOutTime); }
public HackGameAgent_Projectile_Mortar(HackGameBoard b) : base(b) { ourBoard = b; setCurrentBoardLocation(ourBoard.GetPlayer().getCurrentBoardLocation(), b); SetCurrentState(HackGameAgent_State.HackGameAgent_State_Active); lerp = new HackGameForwardLerpDrawHelper( lerpOutTime, 1.0f, 10.0f, lerpOutTime, Color.White, Color.White, lerpOutTime, Vector2.Zero, Vector2.Zero, lerpOutTime); }
public void StartLerping() { flyOutLerp = new HackGameForwardLerpDrawHelper(playerExitOutTotalLerpTime, 1.0f, 10.0f, playerExitOutTotalLerpTime, Color.White, Color.White, playerExitOutTotalLerpTime, Vector2.Zero, Vector2.Zero, playerExitOutTotalLerpTime); lerping = true; }