code: public final void setScreenSize(int width, int height)
      {
          screenWidth = width;
          screenHeight = height;
          final double scaleH = width / (double) Scene.NATIVE.getWidth();
          final double scaleV = height / (double) Scene.NATIVE.getHeight();
          this.scaleH = scaleH;
          this.scaleV = scaleV;
          primary.updateMainY();
          secondary.updateMainY();
      }
docs: Called when the resolution changed.
  
  @param width The new width.
  @param height The new height.