You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the DisplayMode.FullScreen does not match the browser fullscreen api where the aspect ratio is preserved while scaling to the available space.
Proposal
Change DisplayMode.FullScreen to match the browser api behavior, move existing functionality to a new DisplayMode.Dynamic
The text was updated successfully, but these errors were encountered:
![fullscreen](https://user-images.githubusercontent.com/612071/102927569-d7045f00-445c-11eb-92d9-4126a301e937.gif)
Closes#1733Closes#1734
## Changes:
- Breaking change: `DisplayMode.FullScreen` will now scale the game to fit the available space, preserving the `aspectRatio`. This matches the browser "FullScreen" api behavior
- New: `DisplayMode.Dynamic` now does what `DisplayMode.FullScreen` used to do, the resolution and viewport dynamically adjust to fit the available space, DOES NOT preserve `aspectRatio`
- Fix: In the the browser "FullScreen" api, coordinates are now correctly mapped from page space to world space
- Added: Screen helpers for mapping between world, screen, and page space coordinates
- Deprecate: `DisplayMode.Position` CSS can accomplish this task better than Excalibur
- Tests!
Context
Currently the
DisplayMode.FullScreen
does not match the browser fullscreen api where the aspect ratio is preserved while scaling to the available space.Proposal
Change
DisplayMode.FullScreen
to match the browser api behavior, move existing functionality to a newDisplayMode.Dynamic
The text was updated successfully, but these errors were encountered: