使用html+css+js实现以前神墓逃亡小游戏,不需要下载,只需要点击链接就可以体验,手机电脑都可以运行,源码链接在文章末尾,需要的请自取
效果图:
编辑
编辑
目录结构:
编辑
html部分:
css部分:
#container {
background: #000000;
width: 100%;
height: 100%;
}
html,
body {
background: #000000;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
touch-action: none;
user-select: none;
-ms-touch-action: none;
-moz-user-select: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
overflow: hidden;
}
canvas {
touch-action-delay: none;
touch-action: none;
-ms-touch-action: none;
}
#info {
position: absolute;
top: 0px;
width: 100%;
color: #ffffff;
padding: 5px;
font-family: Monospace;
font-size: 13px;
font-weight: bold;
text-align: center;
}
a {
color: #ffffff;
}
其他代码太多了,需要的请自行下载源码:
https://download.csdn.net/download/qq_27939089/86262113
留言与评论(共有 0 条评论) “” |