Personally I'd just leave it as-is. Pretty sure it's common for full-screen games to launch with a temporarily-not-full-screen window.
😴
To answer the question: I'm not sure how well it'd work, but it should be possible to have the window start hidden, then use a short plugin to reveal the window when everything is ready. E.g.
- Save this as a .js file and import it via the Plugin Manager:
JavaScript:
/*:
* @target MZ
* @plugindesc Show the game window (standalone) when this plugin loads.
* @author Caethyril
* @url https://forums.rpgmakerweb.com/posts/1526449/
* @help Designed for use with the manifest (package.json) option:
* window.show = false;
* See link for details.
*
* Free to use and/or modify for any project, no credit required.
*/
if (Utils.isNwjs()) nw.Window.get().show();
If that shows the window prematurely, you can try replacing this line:
JavaScript:
if (Utils.isNwjs()) nw.Window.get().show();
...with this:
JavaScript:
;void (alias => {
Scene_Boot.prototype.start = function() {
alias.apply(this, arguments);
if (Utils.isNwjs()) nw.Window.get().show();
};
})(Scene_Boot.prototype.start);
I.e. show the window after the initial loading time is done (rather than when this plugin loads). This should occur immediately before the core splash screen shows, or the title screen if you have splash disabled.
- Add the
window.show = false option to your project's manifest file (package.json) to change the app's initial appearance. Here's the default manifest with that option added:
JSON:
{
"name": "rmmz-game",
"main": "index.html",
"chromium-args": "--force-color-profile=srgb",
"window": {
"title": "Example",
"width": 816,
"height": 624,
"position": "center",
"icon": "icon/icon.png",
"show": false
}
}
Note that when you save your project (e.g. to apply Plugin Manager changes) the editor will overwrite the manifest file, removing custom settings. You can avoid this by:
- Only applying the changes between save and playtest (or after deploying); or
- Flagging the
package.json file as "Read-only". This will cause an annoying but harmless warning when saving your project, and will ensure that RPG Maker doesn't nuke your edits.