jquery实现走迷宫游戏代码
代码语言:html
所属分类:游戏
代码描述:jquery实现走迷宫游戏代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
html,body {
width: 100vw;
height: 100vh;
position: fixed;
padding: 0;
margin: 0;
top: 0;
bottom: 0;
left: 0;
right: 0
}
#mazeContainer {
transition-property: opacity;
transition-duration: 1s;
transition-timing-function: linear;
top: 75px;
opacity: 0;
display: inline-block;
background-color: rgba(0,0,0,0.3);
margin: auto
}
#mazeContainer #mazeCanvas {
margin: 0;
display: block;
border: solid 1px black
}
input,select {
transition-property: background-color opacity;
transition-duration: .2s;
transition-timing-function: ease-in-out;
cursor: pointer;
background-color: rgba(0,0,0,0.3);
height: 45px;
width: 150px;
padding: 10px;
border: 0;
border-radius: 5px;
color: white;
display: inline-block;
font-size: 15px;
text-align: center;
text-decoration: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none
}
input:hover,select:hover {
background-color: rgba(0,0,0,0.7)
}
input:active,select:active {
background-color: black
}
input:focus,select:focus {
outline: 0
}
.custom-select {
display: inline-block
}
.custom-select select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAh0lEQVQ4T93TMQrCUAzG8V9x8QziiYSuXdzFC7h4AcELOPQAdXYovZCHEATlgQV5GFTe1ozJlz/kS1IpjKqw3wQBVyy++JI0y1GTe7DCBbMAckeNIQKk/BanALBB+16LtnDELoMcsM/BESDlz2heDR3WePwKSLo5eoxz3z6NNcFD+vu3ij14Aqz/DxGbKB7CAAAAAElFTkSuQmCC");
background-repeat: no-repeat;
background-position: 125px center
}
#Message-Container {
visibility: hidden;
color: white;
display: block;
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba(0,0,0,0.3);
z-index: 1
}
#Message-Container #message {
width: 300px;
heig.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0