Automatically adapt to screen resolution

  • Try using Lib.window.config.width and Lib.window.config.height to get the original width/height.

  • If OpenFL doesn’t scale automatically (I thought it did, but that might have been an old version), you can use this.

  • If you want to avoid letterboxing, you’ll have to code it by hand or use a layout library.