Package com.badlogic.gdx.math

Examples of com.badlogic.gdx.math.Rectangle


    private Vector2 mouse;
    Rectangle rectHotZone;

    public HotZone( Rectangle hotZone ) {
      mouse = new Vector2();
      rectHotZone = new Rectangle();
      setHotZone( hotZone );
      reset();
    }
View Full Code Here


  public PursuerEnemy(float x, float y, float speed) {
    super(x, y, speed);
   
    animation = ResourceManager.getAnimation("pursuer_enemy");
   
    setRect(new Rectangle(x, y, Constants.ENEMY_WIDTH, Constants.ENEMY_HEIGHT));
    setValue(10);
    setLives(1);
  }
View Full Code Here

   */
  public BigEnemy(float x, float y, float speed) {
    super(x, y, speed);
   
    animation = ResourceManager.getAnimation("big_enemy");
    setRect(new Rectangle(x, y, Constants.ENEMY_WIDTH * 2, Constants.ENEMY_HEIGHT * 2));
    setValue(10);
    setLives(4);
  }
 
View Full Code Here

  public ShooterBullet(float x, float y, float speed, BulletDirection bulletDirection) {
    super(x, y, speed);
   
    this.bulletDirection = bulletDirection;
    texture = ResourceManager.getTexture("shooter_bullet");
    setRect(new Rectangle(x, y, texture.getWidth(), texture.getHeight()));
  }
View Full Code Here

   */
  public SmallEnemy(float x, float y, float speed) {
    super(x, y, speed);
   
    animation = ResourceManager.getAnimation("small_enemy");
    setRect(new Rectangle(x, y, Constants.ENEMY_WIDTH, Constants.ENEMY_WIDTH));
    setValue(5);
    setLives(1);
  }
View Full Code Here

 
  public SmartEnemy(float x, float y, float speed) {
    super(x, y, speed);
   
    animation = ResourceManager.getAnimation("pursuer_enemy");
    setRect(new Rectangle(x, y, Constants.ENEMY_WIDTH, Constants.ENEMY_HEIGHT));
    setValue(3);
    setLives(1);
   
    y0 = y;
    arc = 250;
View Full Code Here

   
    missileRate = 0.5f;
    bombRate = 0.5f;
   
    animation = ResourceManager.getAnimation("ship");
    setRect(new Rectangle(x, y, Constants.SHIP_WIDTH, Constants.SHIP_HEIGHT));
   
    this.configurationManager = configurationManager;
  }
View Full Code Here

   */
  public ShooterEnemy(float x, float y, float speed, BulletDirection bulletDirection) {
    super(x, y, speed);
   
    animation = ResourceManager.getAnimation("shooter_enemy");
    setRect(new Rectangle(x, y, Constants.ENEMY_WIDTH, Constants.ENEMY_HEIGHT));
    setValue(5);
    setLives(1);
   
    this.bulletDirection = bulletDirection;
    elapsedTimeBetweenBullets = 0;
View Full Code Here

   */
  public ShipBullet(float x, float y, float speed) {
    super(x, y, speed);
   
    texture = ResourceManager.getTexture("ship_bullet");
    setRect(new Rectangle(x, y, texture.getWidth(), texture.getHeight()));
  }
View Full Code Here

  public Missile(float x, float y, float speed) {
    super(x, y, speed);
   
    animation = ResourceManager.getAnimation("missile");
    acceleration = 0;
    setRect(new Rectangle(x, y, Constants.MISSILE_WIDTH, Constants.MISSILE_HEIGHT));
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.math.Rectangle

Copyright © 2018 www.massapicom. 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.