/*:
* @plugindesc Resize window size & content size to 1280*720.
* @author LazyKnight
*
* @help This plugin does not provide plugin commands.
*
* - Set "{RMMV_ROOT_DIRECTORY}\nwjs-win\package.json" width & height to 1296 & 758 for fit new window size.
* - Didn't test on Android & iOS yet.
*/
Esh_Crow.ScrRes.SceneManager_run = SceneManager.run;
SceneManager.run = function(sceneClass) {
Esh_Crow.ScrRes.SceneManager_run.call(this, sceneClass);
if (Utils.isMobileDevice()) return;
if (Utils.isMobileSafari()) return;
if (Utils.isAndroidChrome()) return;
var resizeWidth = Graphics.boxWidth - window.innerWidth;
var resizeHeight = Graphics.boxHeight - window.innerHeight;
window.moveBy(-1 * resizeWidth / 2, -1 * resizeHeight / 2);
window.resizeBy(resizeWidth, resizeHeight);
};
//=============================================================================
// End of File
//=============================================================================
[/fold]
Automatically resize the game window in an HTML5 project. https://forums.rpgmakerweb.com/i ... .99548/#post-897397