Step 1 - Download the latest version of
You must be registered to see the links
.
Step 2 - Create a
package.json
file inside the root folder (the folder containing your
.html
file).
Note: While this step isn't necessary, but it allows you to customize the window size, without this file, nw.js will assume default settings.
Step 3 - Add the following content to
package.json
. Here’s an example for "Masters of Raana":
JSON:
{
"name": "MastersOfRaana",
"main": "start_game.html",
"version": "1.0.0p"
}
Alternatively, you can include a window configuration for auto-resizing:
JSON:
"window": {
"width": 3840,
"height": 2160
}
This makes the final
package.json
look like this:
JSON:
{
"name": "MastersOfRaana",
"main": "start_game.html",
"version": "1.0.0p",
"window": {
"width": 3840,
"height": 2160
}
}
Step 4 - Extract the contents of the NW.js zip file into the root folder and launch
nw.exe
.
Step 5 - Pet the one-eyed pet snake.