How do I make node-webkit un-windowed?

Get help using Construct 2

Post » Tue Jun 17, 2014 6:45 am

I'm sure someone has figured out how to make a game un-windowed using the fullscreen of Node-Webkit. All my forum searches come up empty.

I'm using Windows 8.1, my game is 1920x1080 and I've tried everything in the Configuration Settings with no luck.

am I supposed to do something to the .exe?
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Tue Jun 17, 2014 8:08 am

Hi! Do you mean just a normal full screen mode for node webkit or "un-windowed" like a window app without the borders?
If you just want a normal fullscreen you can use the Browser Plugin actions. Just doubleclick on your layout, add Platform Specific "Browser" object and then you can use the following actions:
Request fullscreen
Request that the browser enter fullscreen mode. Note the browser may ignore this request unless the action is in a user-initiated event, such as a mouse click, key press, touch event or button press. There are three different fullscreen modes that can be entered:
Center - center the game viewport in the fullscreen view
Stretch (crop) - extend the game viewport to fill the fullscreen view
Stretch (scale) - scale (zoom) the game viewport to fill the fullscreen view

Cancel fullscreen
Return to windowed mode if the browser is currently in fullscreen mode.

This works in node-webkit exports. I use this for my new game. :)

Full details in the Construct Manual: https://www.scirra.com/manual/110/browser
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
58
S
18
G
6
Posts: 756
Reputation: 9,591

Post » Tue Jun 17, 2014 10:13 pm

or if you meant without the borders ('frame-less')

Before export: ...make edits to exporters\html5\node-webkit\package.json
Code: Select all
"window": { ....
 ,"frame": false
}

OR

After export :
windows or linux : package.json is inside package.nw (it's a zip file)
mac : ... osx\newproject.app\Contents\Resources\app.nw\package.json
B
11
S
2
G
1
Posts: 202
Reputation: 1,580

Post » Wed Jun 18, 2014 7:38 am

Bl4ckSh33p wrote:then you can use the following actions:
Request fullscreen
Request that the browser enter fullscreen mode. Note the browser may ignore this request unless the action is in a user-initiated event, such as a mouse click, key press, touch event or button press. There are three different fullscreen modes that can be entered:
Center - center the game viewport in the fullscreen view
Stretch (crop) - extend the game viewport to fill the fullscreen view
Stretch (scale) - scale (zoom) the game viewport to fill the fullscreen view

Cancel fullscreen
Return to windowed mode if the browser is currently in fullscreen mode.


Not sure if I'm not seeing it correctly, but the only action I see that has the word "Request" in it is Request Attention from User.

The only thing there that suggests Windowing is "Maximize" but that still leaves the Windows border around the game.
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Wed Jun 18, 2014 7:41 am

Noncentz705 wrote:or if you meant without the borders ('frame-less')

Before export: ...make edits to exporters\html5\node-webkit\package.json
Code: Select all
"window": { ....
 ,"frame": false
}

OR

After export :
windows or linux : package.json is inside package.nw (it's a zip file)
mac : ... osx\newproject.app\Contents\Resources\app.nw\package.json



I didn't have the line "frame" in my json, so I added it. But it did not work.

I'm talking about the Windows border around the game. Currently when I run the game.exe it makes it look like a windows program is running. If I were in Chrome I'd hit F11 to go fullscreen to get rid of the border.
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Wed Jun 18, 2014 7:43 am

Just have a button that says something like 'Press ENTER to Start' and this covers the user request. You can then go fullscreen for the game.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,545
Reputation: 60,434

Post » Wed Jun 18, 2014 8:14 am

the Browser:"Request fullscreen" will enable fullscreen and remove the windowborder of your node webkit export. It works fine for my new game, just try it.
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
58
S
18
G
6
Posts: 756
Reputation: 9,591

Post » Thu Jun 19, 2014 11:48 pm

ahh the Browser Object.. okay.. I was looking in the NodeWebKit Object.

in here:
https://www.dropbox.com/s/8zke3d9ohypyi ... .24.24.png

Thanks!
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], R0J0hound and 4 guests