-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (27 loc) · 888 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
26
27
28
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>打地鼠</title>
<canvas></canvas>
<script type="text/javascript" src="js/atom.js"></script>
<script type="text/javascript" src="js/game.js"></script>
// <script>
// atom.canvas=document.getElementsByTagName('canvas')[0];
// atom.context=atom.canvas.getContext('2d');
// game.draw()=function()
// {
// atom.context.beginPath();//新建一条路径,防止上一次绘制所用形状干扰后续绘制。
// atom.context.fillStyle='#00FFFF';
// atom.context.fillRect(0,0,atom.width,atom.height/2);
// atom.context.fillStyle='#8F4586';
// atom.context.arc(140,atom.height/2-30,100,Math.PI*2,0);
// atom.context.fill();
// atom.context.fillStyle='#53FF53';
// atom.context.fillRect(0,atom.height/2,atom.width,atom.height/2);
// }
// </script>
</head>
<body>
</body>
</html>