We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03ef1ee commit 59651f3Copy full SHA for 59651f3
repo.js
@@ -82,15 +82,15 @@ function repo_escape(){
82
if(!entity_entities['negative-0']
83
&& !entity_entities['positive-0']
84
&& !core_menu_open){
85
- canvas_setmode();
+ start();
86
}
87
88
89
function repo_init(){
90
core_repo_init({
91
'events': {
92
'start': {
93
- 'onclick': canvas_setmode,
+ 'onclick': start,
94
},
95
96
'globals': {
@@ -178,3 +178,11 @@ function repo_init(){
178
179
});
180
181
+
182
+function start(){
183
+ if(score !== 0
184
+ && !globalThis.confirm('Start new game?')){
185
+ return;
186
+ }
187
+ canvas_setmode();
188
+}
0 commit comments