subsoap / defos

Extra native OS functions for games written using the Defold game engine
Creative Commons Zero v1.0 Universal
115 stars 16 forks source link

Defos for dynamically scaling Defold game window in HTML5? #128

Open lonnietc opened 2 years ago

lonnietc commented 2 years ago

Hello,

I am still new to Defold engine and am trying to learn how I might be able to dynamically scale the game window in the browser so that in a type of fullscreen "stretch" mode then the game window will actually scale to larger, or smaller as needed.

Basically, I want to put a game in an iframe that can be of different sizes and then the game window will actually truly scale to the size of the iframe in the browser.

Can Defos help me with this?

If not, then is there some other way to do it?

subsoap commented 2 years ago

Could you post this request in the Defold forum too?

lonnietc commented 2 years ago

Yea, I am asking on there as well to see what solutions they might have in this regard but wanted to ask here too since this library seemed like it might offer a possible solution.