dome icon indicating copy to clipboard operation
dome copied to clipboard

Scale dome.html viewport

Open ayuloid opened this issue 3 years ago • 3 comments

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

ayuloid avatar Apr 21 '22 12:04 ayuloid

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 avatar May 03 '22 06:05 avivbeeri

And can I get the screen max height and width?

ayuloid avatar May 03 '22 11:05 ayuloid

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

avivbeeri avatar May 03 '22 12:05 avivbeeri

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.

avivbeeri avatar Mar 15 '23 08:03 avivbeeri