A GameMaker Studio 2 plugin for adding full screen (with respect to aspect ratio) to HTML games (Example)
Free to use and do whatever you want with it. Credit is appreciated but not necessary.
Open your GameMaker project and go to Tools > Import Local Package. Select the downloaded .yymps file, Import All, then Import.
If you get an error when importing it you probably downloaded it wrong. Make sure to download it with the download button, not save link as.
At the very start of your game add this to the create event
if (os_browser != browser_not_a_browser && !instance_exists(obj_HTML_FS)) { instance_create_depth(x,y,depth,obj_HTML_FS); }
You can now press F to call HTML_FS_canvas_fullscreen() which is included in the script scr_HTML_FS already.
If you make web games and don't put them on Newgrounds you're a FOOL! It's the best place for creatives to be!
GO MAKE GAMES ON NEWGROUNDS RIGHT NOW!
Shoutout to myself for being epic @plufmot
I ripped off the formatting of this from https://github.com/Dungeonation/ngio-gms2-api
Shoutout @Dungeonation and Nick Pasto (@DetermDungeon) for pointing me in the right direction to getting this done.
Shoutout @Stepford for hosting the Newgrounds Mobile Game Jam. My game looking like crap on mobile is what made me finally decide to give this a crack.