COMP5241-2324-Project / Simpsyber

0 stars 0 forks source link

[FEATURE] Adding page leaving alert dialogue in browser to prevent possbile mistakenly close of the page #52

Open stanlipohong opened 8 months ago

stanlipohong commented 8 months ago

Description: Once, before I capture some screen, I dragged the browser to some position for convenience. However, for the last move, I accidently hit the close button of the browser tab, then the page of Simpsyber just closed directly, without any prompt of alert, then I lost all progress of the game. This makes me really sad.

image

Then here I propose the feature that enabling the game to create a detection of user leave page event, whenever there is a leave event, it will pop up an alert dialogue in browser to warn the user about the leaving action, to advoid encountering the same problem.

image

Vinnagement commented 8 months ago

Yes, it's a good idea to prevent accidentally closing the tab. In addition to that, I suggest implementing a feature that allows the game progress to be saved, so that the players can close the game and resume playing from where they left off, making it more convenient for those who may not have the time to play until the end.

Buitender commented 8 months ago

Yes, it's a good idea to prevent accidentally closing the tab. In addition to that, I suggest implementing a feature that allows the game progress to be saved, so that the players can close the game and resume playing from where they left off, making it more convenient for those who may not have the time to play until the end.

The issues regarding game saving have been extensively discussed in @ #12