ForgeableSum Posted June 13, 2015 Share Posted June 13, 2015 Right now the camera view resizes automatically (i think) when the user changes the window width by dragging the window to a different dimension. But it doesn't auto-size in the following scenarios: * If the browser developer tools is open on page load, the view isn't resized when dev tool is closed* If a dialog box from the browser, such as the downloads notification area in Chrome, is there on page load and is closed* when the user zooms out (CTRL +/- in windows) Is there anyway to get resizing in the above scenarios? It's quit a pain to have to reload the browser to get the full camera view in the above scenarios. Link to comment Share on other sites More sharing options...
drhayes Posted June 15, 2015 Share Posted June 15, 2015 You're probably looking for the ScaleManager's resize callback. Link to comment Share on other sites More sharing options...
ForgeableSum Posted September 5, 2015 Author Share Posted September 5, 2015 You're probably looking for the ScaleManager's resize callback.That's great that there's a callback for that but how does one actually change the width/height of the game world in realtime (upon resize)? I'm talking about the area of the game world rendered in the browser (not the actual game world width/height). Link to comment Share on other sites More sharing options...
VitaZheltyakov Posted September 6, 2015 Share Posted September 6, 2015 If I understood you correctly, you need to "camera.bounds" Link to comment Share on other sites More sharing options...
Recommended Posts