-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
25 lines (22 loc) · 930 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html >
<html>
<head>
<title>Tim's world</title>
<script src="./jscex.jscexRequire.min.js" type="text/javascript"></script>
</head>
<body>
<h1>贪吃蛇大战</h1>
<h3>比赛规则: 长度先到达9的一方胜利(可以咬掉对方尾巴)</h3>
<h4>红方: 方向键控制方向; 蓝方: wsad控制方向</h4>
<canvas id="myCanvas" width="320" height="320" style="border: solid 1px #222; background-color: #111; color: #CCC;">
Your browser does not support the canvas element.
</canvas>
<input id="Button1" type="button" value="开始游戏" onclick="return begin()" />
<input id="btnReset" disabled="disabled" type="button" value="重新开始" onclick="return reSet()" />
<p/>
<input id = "snake1" type = "context" value = "">红方长度</input>
<p/>
<input id = "snake2" type = "context" value = "">蓝方长度</input>
<script src="./MySnake_2.js" type="text/javascript"></script>
</body>
</html>