Closed landgreen closed 4 months ago
I think it's a good idea, I've accidentally hit ctrl while playing several times, which closed out my game when I pressed W
Maybe this could be optional in the settings
yeah I think make it an option, but what should the default be? ON or OFF
What if it's off by default but there's a junk tech that enables it so people know it exists? A lot of people never even check the settings tab, so maybe if the tech says in the subtext that it's in settings more people will notice
A JUNK tech sounds good. Also I can run code when you try to exit. What should the JUNK tech do each time you cancel exiting the game?
For example I can spawn power ups when you try to exit but cancel. I'd want something fun and maybe strong in certain situations, but normally just dumb.
ok I'm thinking each time you cancel you get +20% damage but you have a 1 in 5 chance to close the game tab?
What about instead of a 20% chance to actually close when you cancel it it instead sends you to a different version? Or maybe to planetesimals?
Should I comfirm that you want to close or reload the page? Is this annoying or does it save your run when you accidentally close out?
window.onbeforeunload = function (e) { return "Please click 'Stay on this Page' if you did this unintentionally"; };