parent
d325aa89e5
commit
abec5b3ec9
|
|
@ -272,10 +272,10 @@ function resumeGame(play) {
|
||||||
swipe: (directionLR, directionUD)=>{
|
swipe: (directionLR, directionUD)=>{
|
||||||
if (directionLR==-1) {
|
if (directionLR==-1) {
|
||||||
processing = true;
|
processing = true;
|
||||||
menu = showMainMenu();
|
showMainMenu();
|
||||||
} else if (directionLR==1) {
|
} else if (directionLR==1) {
|
||||||
processing = true;
|
processing = true;
|
||||||
menu = showLog();
|
showLog();
|
||||||
} else if (directionUD==-1) {
|
} else if (directionUD==-1) {
|
||||||
processing = true;
|
processing = true;
|
||||||
countDown(1);
|
countDown(1);
|
||||||
|
|
@ -332,7 +332,7 @@ function incrementWickets(inc) {
|
||||||
resumeGame();
|
resumeGame();
|
||||||
} else {
|
} else {
|
||||||
E.showPrompt();
|
E.showPrompt();
|
||||||
menu = showMainMenu();
|
showMainMenu();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -415,7 +415,7 @@ function newInnings() {
|
||||||
resumeGame();
|
resumeGame();
|
||||||
} else {
|
} else {
|
||||||
E.showPrompt();
|
E.showPrompt();
|
||||||
menu = showMainMenu();
|
showMainMenu();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else { // resume innings or start app
|
} else { // resume innings or start app
|
||||||
|
|
@ -431,4 +431,4 @@ E.on("kill", function() {
|
||||||
});
|
});
|
||||||
// start app
|
// start app
|
||||||
newInnings(); // prepare 1st innings
|
newInnings(); // prepare 1st innings
|
||||||
var menu = showMainMenu(); // ready to play
|
showMainMenu(); // ready to play
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue