Examples of SmoothMoveTo


Examples of com.palepail.TestGame.Actions.SmoothMoveTo

    SLOW = sLOW;
  }
  // ======================== Scripts
 
  private void setRespawnScript() {
    sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, -2 * Configuration.gameScale),
        100000));
    sequentialScript.add(new Wait(this, 50));
    sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 4 * Configuration.gameScale), 3));
    sequentialScript.add(new Wait(this, 20));
    sequentialScript.add(new Active(this, true));
  }
View Full Code Here

Examples of com.palepail.TestGame.Actions.SmoothMoveTo


  protected void setStage(int stage) {
    switch (stage) {
    case 3: {
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 18 * Configuration.gameScale),
          10));
      sequentialScript.add(new ToggleShooting(this, true, 1, 100));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(17 * Configuration.gameScale, 14 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 18 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(3 * Configuration.gameScale, 14 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
      break;
    }
    case 2: {
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 18 * Configuration.gameScale),
          10));
      sequentialScript.add(new ToggleShooting(this, true, 1, 100));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(17 * Configuration.gameScale, 14 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 18 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(3 * Configuration.gameScale, 14 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
      break;
    }
    case 1: {
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 18 * Configuration.gameScale),
          10));
      sequentialScript.add(new ToggleShooting(this, true, 1, 100));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(17 * Configuration.gameScale, 14 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 18 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
      sequentialScript.add(new SmoothMoveTo(this, new Vector2(3 * Configuration.gameScale, 14 * Configuration.gameScale),
          10));
      sequentialScript.add(new Wait(this, 100));
    }
    }
  }
View Full Code Here

Examples of com.palepail.TestGame.Actions.SmoothMoveTo

 
  public void setVictoryScript() {
    sequentialScript.clear();
    this.setActive(false);
    sequentialScript.add(new Wait(this, 150));
    sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 6 * Configuration.gameScale),
        10));
    sequentialScript.add(new Wait(this, 25));
    sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 4 * Configuration.gameScale),.5f));
    sequentialScript.add(new Wait(this, 10));
    sequentialScript.add(new SmoothMoveTo(this, new Vector2(10 * Configuration.gameScale, 26 * Configuration.gameScale), 3));
    sequentialScript.add(new Wait(this, 4000));
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.