forceOrientation(forceLandscape, forcePortrait)
Force the game to run in only one orientation. This enables generation of incorrect orientation signals and affects resizing but does not otherwise rotate or lock the orientation. Orientation checks are performed via the Screen Orientation API, if available in browser. This means it will check your monitororientation on desktop, or your device orientation on mobile, rather than comparing actual game dimensions. If you need to check theviewport d