From cc388b5e5646429e9009f2c4157ecf213a3310b6 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Wed, 13 Dec 2023 20:39:01 +0800 Subject: [PATCH] feat: update game --- css/{game.css => qinshihuanggame.css} | 0 index.html | 13 +++- js/{game.js => qinshihuanggame.js} | 4 +- louisgame.html | 99 +++++++++++++++++++++++++++ lose.html => louiswin.html | 2 +- win.html => luoislose.html | 2 +- game.html => qinshihuanggame.html | 4 +- qinshihuanglose.html | 36 ++++++++++ qinshihuangwin.html | 36 ++++++++++ 9 files changed, 188 insertions(+), 8 deletions(-) rename css/{game.css => qinshihuanggame.css} (100%) rename js/{game.js => qinshihuanggame.js} (97%) create mode 100644 louisgame.html rename lose.html => louiswin.html (92%) rename win.html => luoislose.html (92%) rename game.html => qinshihuanggame.html (96%) create mode 100644 qinshihuanglose.html create mode 100644 qinshihuangwin.html diff --git a/css/game.css b/css/qinshihuanggame.css similarity index 100% rename from css/game.css rename to css/qinshihuanggame.css diff --git a/index.html b/index.html index 3f0b2aa..6d597de 100644 --- a/index.html +++ b/index.html @@ -31,8 +31,17 @@
+ +diff --git a/js/game.js b/js/qinshihuanggame.js similarity index 97% rename from js/game.js rename to js/qinshihuanggame.js index 34cabc2..701efad 100644 --- a/js/game.js +++ b/js/qinshihuanggame.js @@ -55,7 +55,7 @@ function handleClick(dishName) { console.log("恭喜,你选对了!"); if (currentIndex == 9){ setTimeout(function() { - window.location.href = 'win.html'; + window.location.href = 'qinshihuangwin.html'; }, 2000); }else{ @@ -90,7 +90,7 @@ function handleClick(dishName) { showElement(qinshihuangs[RandomQinShiHuangIndex]) // Delay for 2 seconds before redirecting setTimeout(function() { - window.location.href = 'lose.html'; + window.location.href = 'qinshihuanglose.html'; }, 2000); // 这里可以添加结束游戏或其他逻辑 break; diff --git a/louisgame.html b/louisgame.html new file mode 100644 index 0000000..4729a50 --- /dev/null +++ b/louisgame.html @@ -0,0 +1,99 @@ + + +
+ + +
+ + + +
+