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