|
|
@ -174,7 +174,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
// act on it
|
|
|
|
// act on it
|
|
|
|
if(result=='retry') { |
|
|
|
if(result=='retry') { |
|
|
|
restart(); |
|
|
|
const {category, levelId, filename}=snek.userdata; |
|
|
|
|
|
|
|
startGame(category, levelId, filename); |
|
|
|
} else if(result=='menu') { |
|
|
|
} else if(result=='menu') { |
|
|
|
location.hash='menu'; |
|
|
|
location.hash='menu'; |
|
|
|
} else if(result=='next') { |
|
|
|
} else if(result=='next') { |
|
|
@ -208,7 +209,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
// act on it
|
|
|
|
// act on it
|
|
|
|
if(result=='retry') { |
|
|
|
if(result=='retry') { |
|
|
|
restart(); |
|
|
|
const {category, levelId, filename}=snek.userdata; |
|
|
|
|
|
|
|
startGame(category, levelId, filename); |
|
|
|
} else if(result=='menu') { |
|
|
|
} else if(result=='menu') { |
|
|
|
location.hash='menu'; |
|
|
|
location.hash='menu'; |
|
|
|
} |
|
|
|
} |
|
|
|