Change the width / height of the game screen. On Desktop, this will change the size of the window.
Config.stageWidth = [INT];
Config.stageHeight = [INT];
engine.reloadScreen();
Returns the game's screen width/height.
getScreenWidth()
getScreenHeight()
Enter or exit fullscreen. On some platforms, enter fullscreen must be in response to user input.
engine.setFullScreen([BOOLEAN]);
Returns true if the game is currently in fullscreen mode.
engine.isInFullScreen()
Set the window scale if playing in windowed mode.
Config.gameScale = [NUMBER];
engine.reloadScreen();
Returns the game scale which applies if playing in windowed mode.
Config.gameScale
Set the scaling mode used by the game in fullscreen mode.
Config.scaleMode = [INT];
Returns the scaling mode used by the game in fullscreen mode.
Config.scaleMode
Use this block with the set / get scale mode blocks.
ScaleMode.NO_SCALING
ScaleMode.FULLSCREEN
ScaleMode.STRETCH_TO_FIT
ScaleMode.SCALE_TO_FIT_LETTERBOX
ScaleMode.SCALE_TO_FIT_FILL
ScaleMode.SCALE_TO_FIT_FULLSCREEN
Returns the current scale of the game. Either 1, 1.5, 2, 3 or 4.
Engine.SCALE