Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
红目香薰
1024云IDE应用挑战赛
提交
97aa8447
1024云IDE应用挑战赛
项目概览
红目香薰
/
1024云IDE应用挑战赛
与 Fork 源项目一致
Fork自
Cloud IDE / 1024云IDE应用挑战赛
通知
18
Star
21
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
1024云IDE应用挑战赛
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
97aa8447
编写于
10月 23, 2022
作者:
6
62734f01072d6f2fb9e3f9db
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
202210231230
上级
9759606f
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
12 addition
and
11 deletion
+12
-11
README.md
README.md
+7
-7
src/js.js
src/js.js
+4
-4
src/style.css
src/style.css
+1
-0
未找到文件。
README.md
浏览文件 @
97aa8447
<!--游戏效果地址-->
## 游戏效果地址(游戏难度<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
)
...
...
src/js.js
浏览文件 @
97aa8447
...
...
@@ -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
"
);
...
...
src/style.css
浏览文件 @
97aa8447
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录