Have you thought the FPS being lowered is due to your PC?
For screen resizing, I made a plugin that made a new call to Graphics.initialize(width, height, type); for 720p resolution, I passed in 1280, 720, 'auto'. That just handles the window/client size; for the game size in the window, you need to assign new values to SceneManager._screenWidth and SceneManager._screenHeight, mine being set to match the 720p resolution. You may also change SceneManager._boxWidth and SceneManager._boxHeight; what these control is the area of the screen (starting in the epicenter) that the UI (user interface such as menus and pop-up boxes) are allowed to be in. Any UI piece that goes over the edge will be cropped and the outlying surface image will not be rastered to the screen.
I'm currently working on the FullScreen mode being disabled from the F4 key and the game forcing starting in FullScreen mode. I currently have a redefinition of the Graphics._onKeyDown that does not contain a case for the 115 (F4) keycode, and I make a call to Graphics._switchFullScreen. This being said, it still does not function properly. F4 does not enable FullScreen, but the client still attempts it and does a quick flash, and the game is not starting in FullScreen.
I will also say, make all changes in plugins; I feel like it is good practice to not edit the default scripts themselves. The plugin manager in the client is very handy.
Working on my Computer Science Bachelor.
Update:
I got the FullScreen by default working and it can not be exited.
What I did:
Removed case 115 from Graphics._onKeyDown
Removed else statement from Graphics._switchFullScreen
Redefined Graphics._swtichFullScreen to an empty function
Made a call to Graphics._requestFullScreen
It also seems like it scales the game size to fit FullScreen mode, at least for my display it removed the black around the edges.
The OP is asking for a plugin, not for help to write one.
Starting in fullscreen would be awesome, I'm so done with hitting F4 every single time I want to test anything. Plus I always hit F5 by accident and that resets the game and removes the controller as a usuable control method. 🙁
I'm curious about the auto-fullscreen as well, and maybe an in-game option to adjust the game's resolution.
Nice work. First time I play tested, my task bar was still up. Every other time though it didn't. Very cool.
I am looking for something that stretches the game screen to remove the black border, but allow me to keep my resolution dimension of 1024 x 576.
The auto full screen feature isn't really hard to do.
(function(){Graphics._switchFullScreen();})();I just discovered this thread now, so I am replying how to achieve it.
Bit of an old thread, but if you want it to look better just add your line (I use "Graphics._requestFullScreen()" in mine) into main.js as the first thing in the window.onload function. for me it doesn't even show the window before going fullscreen.