Hi all - I am trying to get my HTML5 game to automatically adapt to browser window size changes or aspect ration changes (i.e. portrait to landscape).
It works fine on Browser refresh app reload, but is not adapting to browser window changes in real-time.
This is my code:
CREATE
Browser window/aspect auto-resize issue
It works fine on Browser refresh app reload, but is not adapting to browser window changes in real-time.
This is my code:
CREATE
GML:
view_enabled = true;
view_visible[0] = true;
view_xport[0] = 0;
view_yport[0] = 0;
view_wport[0] = browser_width;
view_hport[0] = browser_height;
window_set_size(browser_width,browser_height)...