提交 97aa8447 编写于 作者: 6 62734f01072d6f2fb9e3f9db

202210231230

上级 9759606f
<!--游戏效果地址-->
## 游戏效果地址(游戏难度<font color='yellow'>★</font>)
<a href="https://preview-62734f01072d6f2fb9e3f9db-6354212178a0a92e29958af8-3000.datasea.cn/" target="_blank">游戏效果链接</a>
<!--使用说明-->
<!--本游戏为了训练玩家的反应速度而萌生的想法-->
<!--点击【start Game】开始游戏,根据上W下S左A右D的方式进行快速反应。-->
<!--【★】号每次出现并停留500-1000毫秒内-->
<!--反应成功并在500-1000毫秒内按下对应的按键即可得分-->
<!--开始游戏后会出现【out Game】退出游戏-->
使用说明
本游戏为了训练玩家的反应速度而萌生的想法
点击【start Game】开始游戏,根据上W下S左A右D的方式进行快速反应。
【★】号每次出现并停留500-1000毫秒内
反应成功并在500-1000毫秒内按下对应的按键即可得分
开始游戏后会出现【out Game】退出游戏
![](https://file.iviewui.com/cloud-ide/1024game-cover.png)
......
......@@ -9,21 +9,21 @@ $(function() {
$(".bottom_top").css("background-color", "gray");
if ($(".top").text() == "") {
score += 100;
$(".bottom_center").text("分数:" + score);
$(".bottom_center").text("score:" + score);
}
setTimeout("clearStyle('119')", 100);
} else if (event.keyCode == 97) {
$(".bottom_left").css("background-color", "gray");
if ($(".left").text() == "") {
score += 100;
$(".bottom_center").text("分数:" + score);
$(".bottom_center").text("score:" + score);
}
setTimeout("clearStyle('97')", 100);
} else if (event.keyCode == 100) {
$(".bottom_right").css("background-color", "gray");
if ($(".right").text() == "") {
score += 100;
$(".bottom_center").text("分数:" + score);
$(".bottom_center").text("score:" + score);
}
setTimeout("clearStyle('100')", 100);
} else if (event.keyCode == 115) {
......@@ -38,7 +38,7 @@ $(function() {
$(".center").click(function() {
if ($(".center").text() == "start Game") {
score = 0;
$(".info").text("score");
$(".bottom_center").text("score");
gameTime = 0;
startText = $(".title").text();
$(".center").text("out Game");
......
......@@ -113,6 +113,7 @@ ul {
}
.bottom_center {
left: -5%;
background-color: lightblue;
font-size: 1rem;
width:30%;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册