Esempio n. 1
0
  /** Updates entity position and logic. */
  public void update() {
    super.update();
    this.xPos -= speed * Game.delta;

    if (this.xPos < ScreenHelper.widthNeg(this)) {
      this.setDead();
    }
  }