How would I go about making the functionality of a quit button for my game? Is there a built in exit application function I can use, or do i need to write one myself?
Your game works in browser tab, right?
Ya. I know I can just close the tab, but for aesthetic reasons I’d like to add a button to the in game UI.
Call window.close();
in your event listener.