Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale dome.html viewport #236

Closed
whmsft opened this issue Apr 21, 2022 · 4 comments
Closed

Scale dome.html viewport #236

whmsft opened this issue Apr 21, 2022 · 4 comments
Labels
enhancement New feature or request on hold Consideration for future implementation

Comments

@whmsft
Copy link

whmsft commented Apr 21, 2022

This sounds reasonable to be able to scale/stretch the viewport/canvas of the experimental dome.html

@avivbeeri
Copy link
Collaborator

The reason this doesn't work right now is that SDL behaves very strangely when the canvas is resized. If I remember correctly, it would desynchronize the mouse position from the view, leading to weird input behaviour, so for the moment, dynamic scaling isn't supported.

You can set the "window size" during your Game.init(), but that size is then fixed for the duration of the game session.

Perhaps this will improve in the future?

@avivbeeri avivbeeri added enhancement New feature or request on hold Consideration for future implementation labels May 3, 2022
@whmsft
Copy link
Author

whmsft commented May 3, 2022

And can I get the screen max height and width?

@avivbeeri
Copy link
Collaborator

Not right now, but I'll make a note to add that in the future.

@avivbeeri avivbeeri mentioned this issue Mar 13, 2023
@avivbeeri
Copy link
Collaborator

The new web engine features a scalable web canvas, which will allow the browser to slot it into whatever space you need.
Therefore, I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request on hold Consideration for future implementation
Projects
None yet
Development

No branches or pull requests

2 participants