Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I updated the Electron.js files and pushed a new build to steam, but the behavior still persists.

Well, let me ask... Did you also replace/update the resources\app\index.js file? The main changes I made were in index.js.

Alternatively, if you need help, you can send me your project at rabbitrabbitteaparty@gmail.com. You can remove some of your original assets/content first and send me a simplified version of the project containing only the plugins and other necessary files for testing.

I checked out the index.js file noticed you set F4 to toggle fullscreen (which I had actually disabled in my game). Pressing F4 causes fullscreen to work as intended.

I have a custom options menu which I use to toggle fullscreen, which uses an event that triggers a script (Graphics._requestFullScreen), and when I use that it minimizes when pressing escape. 

Can I call your functions in index.js directly from an event?

Regarding the F4 toggle: if you want to disable the F4 key from toggling fullscreen mode, you can remove the following code from index.js:

const isF4 =     input.key === "F4" &&     !input.alt &&     !input.control &&     !input.meta;  if (isF4) {     event.preventDefault();     toggleGameFullscreen();     return; } 

Then, if you want to trigger fullscreen yourself, you can use the following code:

require("electron").ipcRenderer.send("setFullscreen"); 

or:

require("electron").ipcRenderer.send("toggleFullscreen");