public void stageBounds(final Sprite sprite, final Scene scene) {
    double _x = sprite.getX();
    double _width = sprite.getWidth();
    double _plus = (_x + _width);
    double _width_1 = scene.getWidth();
    double _minus = (_width_1 - this.stageBoundary);
    boolean _greaterThan = (_plus > _minus);
    if (_greaterThan) {
      double _width_2 = scene.getWidth();
      double _minus_1 = (_width_2 - this.stageBoundary);
      double _width_3 = sprite.getWidth();
      double _minus_2 = (_minus_1 - _width_3);
      sprite.setX(_minus_2);
      sprite.setVx(0);
    } else {
      double _x_1 = sprite.getX();
      boolean _lessThan = (_x_1 < this.stageBoundary);
      if (_lessThan) {
        sprite.setX(this.stageBoundary);
        sprite.setVx(0);
      }
    }
    double _y = sprite.getY();
    double _height = sprite.getHeight();
    double _plus_1 = (_y + _height);
    double _height_1 = scene.getHeight();
    double _minus_3 = (_height_1 - this.stageBoundary);
    boolean _greaterThan_1 = (_plus_1 > _minus_3);
    if (_greaterThan_1) {
      double _height_2 = scene.getHeight();
      double _minus_4 = (_height_2 - this.stageBoundary);
      double _height_3 = sprite.getHeight();
      double _minus_5 = (_minus_4 - _height_3);
      sprite.setY(_minus_5);
      sprite.setVy(0);
    } else {
      double _y_1 = sprite.getY();
      boolean _lessThan_1 = (_y_1 < this.stageBoundary);
      if (_lessThan_1) {
        sprite.setY(this.stageBoundary);
        sprite.setVy(0);
      }
    }
  }