Skip to content

plufmot/GMS2-HTML-FULLSCREEN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

GameMaker Studio 2 HTML FULLSCREEN

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.

How to Import Plugin

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.

How to Use It

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.

NEWGROUNDS

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!

Newgrounds

https://www.newgrounds.com/

Video Tutorial

YouTube Link

Credits

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.

About

A GameMaker Studio 2 plugin for adding full screen to HTML games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published